65c02-specific instructions with different opcodes
Posted: Wed Sep 16, 2015 6:56 pm
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?
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?