6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Oct 05, 2024 2:21 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 28, 2018 8:30 am 
Offline

Joined: Wed Mar 02, 2016 12:00 pm
Posts: 343
E.g. macros that can replace 65C816 opcode instructions if one wants to run a 65C816 program on 6502 or 65C02. Has anyone made or seen such?


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 28, 2018 8:37 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8521
Location: Southern California
I put some stack-related ones in section 13 of the 6502 stacks treatise, at http://wilsonminesco.com/stacks/816newinst.html .

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 28, 2018 10:08 am 
Offline
User avatar

Joined: Tue Mar 02, 2004 8:55 am
Posts: 996
Location: Berkshire, UK
It could be tricky. The 8-/16-bit register size switching means that almost every 6502 instruction could require simulation. Anything that accesses memory or A/X/Y could be affected.

You might be better off emulating a 65C816 on a 6502 or translating the code entirely. Or find a 65C802.

_________________
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 28, 2018 4:21 pm 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1948
Location: Sacramento, CA, USA
I believe the 65c802 is the only reasonable general-purpose solution. It's quite a shame that they aren't being produced anymore. I had a bit of fun with mine many years ago, before I lost it in a move.

Mike B.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: