WIP: 16C firmware hack for more memory
|
11-11-2023, 01:56 AM
Post: #81
|
|||
|
|||
RE: WIP: 16C firmware hack for more memory
(11-10-2023 11:07 PM)brouhaha Wrote:(11-10-2023 08:38 PM)blackjetrock Wrote: As this is emulated code, surely it is possible to have more than one instruction at an address? The strict one to one relationship between addresses and instructions that the hardware imposes on a real machine doesn't necessarily need to apply when emulating instructions? Could you not have the following:? When address x is executed, 1. Execute the instruction from the ROM 2. Execute extra instructions It sound like the 41C insertion you did. I think even jumps to X still work and you can squish more functionality onto the code. It's really like having a new, longer opcode added to the instruction set I suppose. It does mean that you can never put it in a ROM, but you do get your extra functionality, and it shouldn't break anything, which is the big advantage. I've not done this at all, so it's interesting to see that you did it in the 41C work. It doesn't get the elegance award, but does get the job done. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)