Re: converting assembler from one cpu to another ?




"proteanthread" <rtdos@rtdos> wrote in message
news:mrOdnX_u5bTRLUnYnZ2dnUVZ_rXinZ2d@xxxxxxxxxxxxxx

ok, my thought process is this:
launch os then to launch a 6502 based application (from an atari or
commodore machine) a VM would launch and then exit when the program is
done (somewhat similiar to dos protected mode in windoze).

It's an interesting thing to do, for sure. However, you might run into
problems. You'll need a lot more than just the CPU emulation - very often
applications relied on certain hardware being present (screen memory, audio
hardware etc) that you would also need to emulate. You should also bear in
mind that applications written for older 8bit hardware weren't written to
have a specific "close and exit" system, as they tended to run in
single-task environments and it was generally taken that you'd hit the reset
button when you were done. How would you be able to tell when your
application needed to close?

There's probably something akin to the halting problem there, but I'm no
expert.

D.


.