Mixing C and asm?
Posted: Mon Mar 08, 2010 8:22 pm
Is it possible to mix C with asm using HuC, are there any examples on how to do it?
I'm trying to reverse-enginer the arcadecard and cd-rom, documenting as much as possible and one of the things is I want to read out the "scsi"-response messages when there's an error.
I found out how to emulate no-disc and cover-open by testing different settings in my emulator. After a TestUnitReady command fails (status =2) a RequestSense command will give 0x0B in SenseCode (last byte of response) for no-disc and 0x0D for cover-open errors.
I want to know what happens if you try to send illegal cd-rom commands or try to read past the end of a data-track.
I'm trying to reverse-enginer the arcadecard and cd-rom, documenting as much as possible and one of the things is I want to read out the "scsi"-response messages when there's an error.
I found out how to emulate no-disc and cover-open by testing different settings in my emulator. After a TestUnitReady command fails (status =2) a RequestSense command will give 0x0B in SenseCode (last byte of response) for no-disc and 0x0D for cover-open errors.
I want to know what happens if you try to send illegal cd-rom commands or try to read past the end of a data-track.