Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #749
| From | Charlie <charlieDOTd@verEYEzon.net> |
|---|---|
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: Dual 65C816/65C02 programs |
| Date | 2013-07-15 20:47 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ks24io$h97$1@dont-email.me> (permalink) |
| References | <dog_cow-1373769303@macgui.com> <krvn55$d6t$1@news.xmission.com> <dog_cow-1373924063@macgui.com> |
On 7/15/2013 5:34 PM, D Finnigan wrote: > Egan Ford wrote: >> On 7/13/13 9:35 PM, D Finnigan wrote: >>> Thinking about Universal Mach-O binaries on OS X which could have PPC, >>> i386, >>> and x86_64 code got me wondering whether anyone has ever written a >>> program >>> that will run on the 6502 or 65C02, but will also get enhanced 16-bit >>> instructions when run on the IIgs. >>> >>> I know there are some assemblers that will run on both CPUs, even the >>> 65802, >>> but how many other programs have been written this way? >>> >>> Is it possible to have one program binary that will run under ProDOS 8 on >>> the IIe and ProDOS 16 on the IIgs? >>> >> >> I can think of one reason why you wouldn't want to do that--code size. >> The code segment would most likely take 2x RAM. > > Good point; I hadn't considered that. > > What about this: a stub program that detects the current operating system, > then seeks in the file to load the correct code into RAM? > > Now I know why we don't do this: operating system support is a must! > Maybe I'm misunderstanding but I believe ProDOS 8 can load 65816 code and run it on a IIgs. In fact I don't see why DOS 3.3 couldn't. Of course it would have to be in a recognized file format (binary). Anyway, I believe Sneeze V2.2 (a program launcher & file utility) by Karl Bunker is an example of a ProDOS 8 program that runs both 65c02 and 65c816 code (when it is needed) depending on whether it is running on a //e or a IIgs. Charlie
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dual 65C816/65C02 programs D Finnigan <dog_cow@macgui.com> - 2013-07-14 02:35 +0000
Re: Dual 65C816/65C02 programs Egan Ford <datajerk@gmail.com> - 2013-07-14 21:35 -0500
Re: Dual 65C816/65C02 programs D Finnigan <dog_cow@macgui.com> - 2013-07-15 21:34 +0000
Re: Dual 65C816/65C02 programs Charlie <charlieDOTd@verEYEzon.net> - 2013-07-15 20:47 -0400
Re: Dual 65C816/65C02 programs gbody4@bigpond.com - 2013-07-15 18:52 -0700
Re: Dual 65C816/65C02 programs Dagen Brock <DagenBrock@gmail.com> - 2013-07-19 07:49 -0700
Re: Dual 65C816/65C02 programs Egan Ford <datajerk@gmail.com> - 2013-07-19 10:55 -0600
Re: Dual 65C816/65C02 programs Dagen Brock <DagenBrock@gmail.com> - 2013-07-19 13:21 -0700
Re: Dual 65C816/65C02 programs Egan Ford <datajerk@gmail.com> - 2013-07-20 11:52 -0600
Re: Dual 65C816/65C02 programs D Finnigan <dog_cow@macgui.com> - 2013-07-20 22:47 +0000
Re: Dual 65C816/65C02 programs Egan Ford <datajerk@gmail.com> - 2013-07-21 11:19 -0600
Re: Dual 65C816/65C02 programs D Finnigan <dog_cow@macgui.com> - 2013-07-21 17:35 +0000
Re: Dual 65C816/65C02 programs gids.rs@sasktel.net - 2013-07-25 08:25 -0700
Re: Dual 65C816/65C02 programs Egan Ford <datajerk@gmail.com> - 2013-07-27 15:04 -0600
csiph-web