6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Sep 22, 2024 2:36 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Sep 16, 2015 6:56 pm 
Offline

Joined: Wed Jan 22, 2003 6:54 am
Posts: 56
Location: Estados Unidos
Sometimes I look at the 65c02 opcode map and don't always like how the designers allocated unused opcodes from the 6502 map to support the new 65c02 instructions.

If one were to make a 65c02-ish soft core which included the same 65c02-specific instructions assigned different locations in the opcode matrix, what would break? It seems to me that most of the software libraries I see for 6502 and friends are distributed as source code. (For example, EhBASIC and the source code repository on this webpage.) So, a simple reassemble (with a compatible assembler, there's the rub) would solve the problem.

Are there any must-have libraries or programs which come in binary only?
Is this a horribly horrible idea?

_________________
Thanks for playing.
-- Lord Steve


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 16, 2015 7:16 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10938
Location: England
It could be done, but it does seem like it only makes for more work! Making up an assembler - and disassembler perhaps - is the first stumbling block. At present, there must be half a different assemblers in common use, each with a slightly different syntax. So, source compatibility is something of an approximate idea. It's handy that one can pick up a source, and use the author's preferred aassembler.

As for running binaries as-is, that would happen very commonly with games. Moderately commonly with monitors, although as you say source might be available. I will often use a BBC Basic ROM on any given emulator, or at least try to. Or maybe load an EhBasic binary. Although source is available, binary is immediately usable.


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 16, 2015 7:16 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8510
Location: Southern California
I don't know of anyone using Jeff's tricks for single-cycle I/O yet, but they do rely on the 65c02's single-cycle NOPs in the _3 and _B columns. See http://wilsonminesco.com/6502primer/potpourri.html#Jeff

_________________
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: Thu Sep 17, 2015 3:55 am 
Offline
User avatar

Joined: Tue Nov 16, 2010 8:00 am
Posts: 2353
Location: Gouda, The Netherlands
I would also look at exactly how many resources you can save with this trick. It could be smaller than you think.


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 17, 2015 4:27 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8390
Location: Midwestern USA
I suspect all of this was carefully considered 35-odd years ago when the 65C02 was on the drawing board. You may be tilting at windmills.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 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: