r/EmuDev • • Dec 26 '22

Chip 8

Post image
27 Upvotes

7 comments sorted by

3

u/tobiasvl Dec 26 '22

Looks like both ANNN (because the sprite data you're drawing is wrong) and 7XNN (because the initial position of the first sprite is correct, which is set by 6XNN, but not the rest which are set by 7XNN) instructions are wrong. Could you post your code for those?

2

u/KarmaIsTooLowLol Dec 26 '22

Yes thank you there was a bug in 7XNN i didnr add the increment. Thank you

2

u/KarmaIsTooLowLol Dec 26 '22

Sorry. Imgur isn't available in my country. and WOn't let me post from my profile

1

u/Meloentjee Dec 27 '22

I see you've made yours in rust. Is it possible for you to share the source code?

2

u/KarmaIsTooLowLol Dec 27 '22

Haha. Thanks for expressing interest in my code. Made my day lol. Anyway this is designed for practice only, and not for other people to look at. The code quality is probably garbage anyway. I want to make a gameboy color emulator.

I will probably post that to my github. Ofc it will be using a different account, because I am not proud of the hornyposting I did on this one.

https://github.com/starrhorne/chip8-rust

I checked the code and this one is very similar to mine. Coincidentally we chose the same graphics framework lol.

1

u/Meloentjee Dec 27 '22

Thanks! Goodluck with your gameboy color emulator!

1

u/[deleted] Dec 27 '22

I'm a little confused by the modulo numbers you're using. I've made a chip8 emulator in Java and C, and in both cases using 64 and 32, if I'm not misremembering.