Hey all,
I've just started to to write an NES emulator. The first thing I've done is make a simple hex viewer to see the code, but I find that there are negative codes! For example, I might a "0xffffff80" randomly and if I format my output to decimal instead of hex I find actual negative numbers (ie -15). Why oh why are there negative numbers?!
Thanks for the help
(Btw, I'm using C and working off of MarioBros.nes. I am simply opening the nes file, reading in a byte, outputting that byte to another file formattted as hexidecimal with a label and then repeating)
I've just started to to write an NES emulator. The first thing I've done is make a simple hex viewer to see the code, but I find that there are negative codes! For example, I might a "0xffffff80" randomly and if I format my output to decimal instead of hex I find actual negative numbers (ie -15). Why oh why are there negative numbers?!
Thanks for the help
(Btw, I'm using C and working off of MarioBros.nes. I am simply opening the nes file, reading in a byte, outputting that byte to another file formattted as hexidecimal with a label and then repeating)