I can't say I'm proud https://mastodon.xyz/media/BO-K8SIJI-2yPED3Q-E
Look at all these ld's. I can cut down on a lot of them from the 0x40-0x7F range by just changing the register based on position, but there's a ton of things there that I can't think of an intelligent solution beyond a bunch of ifs. Time for a lot of typing... https://mastodon.xyz/media/FYTs14POs73UDSEOyT8
As fun as implementing a bunch of opcodes is, I probably ought to figure out how to actually render something on the screen.
I feel like actually having something on the screen that looks remotely like a gameboy would be something of a crowning achievement for me so far, because most of my work at work, or just in school has been moving data from pipe to pipe.
It'd be nice to think I can do more.
My emulator now has a (very boring) website! The only hint that there's something other than HTML/CSS there right now is some debugging output in the console.
I've gotten jp working, which doesn't seem to do anything fancy, just sets the PC to the two bytes ahead of the opcode, but call seems like it might be a bit trickier.
As far as I can tell, call is for functions, and jp is a GOTO, so I think the main difference between the functions is that call should put the current PC on the stack and then to a jump.
Working on a gameboy emulator! https://github.com/cpobrien/GB4Web
i'm keeping standards really low right now, just so I have more of a chance of making headway. I feel like if I set my standards too high then it'll just seem like too hopeless of an ordeal
This will do. I used http://pyxeledit.com/ to make it using the Gameboy palette. My hair isn't actually green, but ¯\_(ツ)_/¯
Vancouver Programmer, 語言狂
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!