We have an instruction decoder. Hopefully correctly. #mos6502 #nes_emulator
https://www.masswerk.at/6502/6502_instruction_set.html
=> More informations about this toot | More toots from ellie@ellieayla.net
All the addressing modes and operators implemented, a (unsynchronized) clock, a byte array 0x0000-0xffff bolted on as temporary ram, and a tiny bit of machine code jammed into the first dozen bytes by main.
This silly little computer can loop and increment the number at 0x0f forever!
[#]mos6502 #nes_emulator
=> More informations about this toot | More toots from ellie@ellieayla.net
Next steps: need to implement a cartridge rom loader and mapper.
And use them to write tests that load blargg roms, then hunt down opcode implementation bugs.
[#]nes
=> More informations about this toot | More toots from ellie@ellieayla.net
@ellie I wrote a Motorola 6800 emulator a long time ago, I hope you are having as much fun as I did!
=> More informations about this toot | More toots from ve3qbz@mastodon.radio
@ve3qbz transcribing the 256-entry instruction table from photocopied spec sheet into a giant lookup table of function pointers was tedious.
But heck the pay-off of watching that memory dump tick up is so rewarding.
[#]nes_emulator
=> More informations about this toot | More toots from ellie@ellieayla.net
@ellie YES! The array of function pointers to launch opcodes was the most satisfying little bit of code I think I ever wrote, because it's so elegant.
:) You are having fun!
=> More informations about this toot | More toots from ve3qbz@mastodon.radio This content has been proxied by September (ba2dc).Proxy Information
text/gemini