Machine Code Converters: 6502 to 68000

Anything QL Software or Programming Related.
User avatar
Outsoft
Super Gold Card
Posts: 644
Joined: Sat Apr 19, 2014 1:30 pm
Location: Italy
Contact:

Machine Code Converters: 6502 to 68000

Postby Outsoft » Sun Jan 07, 2018 7:34 pm

I've read, on Facebook, that there are guys that have developed some machine code converters from 6502 to 68000 processors like the great Ergon do for the Famous Speccy Emulator of the 1993 (ZMht).

I've a friend that program on C-64 that would like to convert is games, easily, on the QL.

If someone know something about that please reply me gently.

Best regards.


User avatar
Zarchos
Trump Card
Posts: 152
Joined: Mon May 08, 2017 11:49 am

Re: Machine Code Converters: 6502 to 68000

Postby Zarchos » Sun Jan 07, 2018 9:43 pm

No idea at all if that can help you, but you could also ask on the stardot forum.
After all the early Acorns use a 6502, and there are some really talented geeks on this forum.

Please keep us informed.
If it can be more than a converter, but some sort of resourcer, that could be interesting.
I doubt automatic conversion from 6502 to 68000 can be as good as direct 68000 programming, but who knows the level of optimisation put into this converter, after all ?
If the 68000 code produced is sourced, and well sourced with comments, that can certainly help for an optimised conversion.


Owner of various QLs including accelerated beasts, and also a happy Q68 owner ;)
Now porting SOTB to the Archies, to then port it to the Q68.
https://www.youtube.com/user/Archimedes75009/search?query=Acorn+Archimedes+Shadow+Of+The+Beast+%28100%25
Derek_Stewart
QL Wafer Drive
Posts: 1026
Joined: Mon Dec 20, 2010 11:40 am
Location: Runcorn, Cheshire, UK

Re: Machine Code Converters: 6502 to 68000

Postby Derek_Stewart » Sun Jan 07, 2018 9:46 pm

Hi,

Many years ago in the 1990s I thought the 68000 could run 6502 assembler source code. To implement this I starting writing a macro library file for the QMAC assembler.

The idea was to define the 6502 op codes with QMAC macros and 68000 assembley op codes.

Since the 6502 CPU is 8 bit, the 68000 CPU could easily handle the 8 bit 6502 registers.

Another idea was to write the 6502 op codes in Turbo compiled basic.

But the main problem with these approaches is the 6502 code will be specific to the hardware it runs on.

The NES console has software to help convert the 6502 to 68000 see this list:

http://nes.goondocks.se/software.php

This might help.

Maybe with alot of effort 6502 or 68000 console games could be converted to the QL or Q68...


Regards,

Derek
User avatar
Zarchos
Trump Card
Posts: 152
Joined: Mon May 08, 2017 11:49 am

Re: Machine Code Converters: 6502 to 68000

Postby Zarchos » Mon Jan 08, 2018 6:01 am

Yes Derek.

This is why a resourcer, with comments for the areas too specific to the 6502 machine (chipset or system routines) could help.
Now all functions are documented on the various retro machines, you could imagine appearing in the source a link to a section of a database storing descriptive, technical infos.


Owner of various QLs including accelerated beasts, and also a happy Q68 owner ;)
Now porting SOTB to the Archies, to then port it to the Q68.
https://www.youtube.com/user/Archimedes75009/search?query=Acorn+Archimedes+Shadow+Of+The+Beast+%28100%25
User avatar
Outsoft
Super Gold Card
Posts: 644
Joined: Sat Apr 19, 2014 1:30 pm
Location: Italy
Contact:

Re: Machine Code Converters: 6502 to 68000

Postby Outsoft » Tue Jan 16, 2018 9:49 pm

Derek_Stewart wrote:Hi,

Many years ago in the 1990s I thought the 68000 could run 6502 assembler source code. To implement this I starting writing a macro library file for the QMAC assembler.

The idea was to define the 6502 op codes with QMAC macros and 68000 assembley op codes.

Since the 6502 CPU is 8 bit, the 68000 CPU could easily handle the 8 bit 6502 registers.

Another idea was to write the 6502 op codes in Turbo compiled basic.

But the main problem with these approaches is the 6502 code will be specific to the hardware it runs on.

The NES console has software to help convert the 6502 to 68000 see this list:

http://nes.goondocks.se/software.php

This might help.

Maybe with alot of effort 6502 or 68000 console games could be converted to the QL or Q68...


Thanks Derek!!!


User avatar
Dave
SandySuperQDave
Posts: 1981
Joined: Sat Jan 22, 2011 6:52 am
Location: Austin, TX
Contact:

Re: Machine Code Converters: 6502 to 68000

Postby Dave » Wed Jan 17, 2018 6:11 am

Honestly, my ears prick up any time someone suggests we port QDOS (or SMSQ/E) to ARM. Now, there's some room for growth!


User avatar
XorA
Gold Card
Posts: 486
Joined: Thu Jun 02, 2011 11:31 am
Location: Shotts, North Lanarkshire, Scotland, UK

Re: Machine Code Converters: 6502 to 68000

Postby XorA » Wed Jan 17, 2018 5:47 pm

Dave wrote:Honestly, my ears prick up any time someone suggests we port QDOS (or SMSQ/E) to ARM. Now, there's some room for growth!


If it can be done with AmigaOS then it certainly can be done for QDOS :-)



Return to “Software & Programming”

Who is online

Users browsing this forum: No registered users and 1 guest