Controller demo
I've thrown together a test program that reads the ColecoVision's controllers and updates the display to show the input. Left controller works fine, but I'm getting odd results for the right-controller. It's different for both emulators I'm using: in Mugrat (screenshots) the left controller input is also the right controller input, while in MEKA the results don't match the input keys. MEKA's input window which shows the keys is also displaying a sega controller, so who knows what they're doing Hopefully my Ultimate SD cart will arrive soon so I can test on real hardware!
To display what's input, I copied the character set a second time to VRAM so that 0-127 are (almost) the same as 128-255. I set the first 16 color table entries to white on black and the second 16 to black on red so by using characters with bit 7 set I get the inverse red letter.
This is the first Z80 code I've ever written, so I'm sure there's much better ways do things than what I've figured out so far. Any input on that is more than welcome!
I'm also updating my coleco.z80 file with more detail as I figure out how to use the BIOS calls. The documentation I've found seems sparse, perhaps I've overlooked something. I've been figuring them out by analyzing some source files I tracked down(Get Booty and Mist Maid 4K are Z80 based, the others are C which hides the detail I'm looking for).
Source, BIN
I've also done some additional updates to the jEdit mode file:
JEDIT NAVIGATION
<PREVIOUS> <INDEX> <NEXT>
2 Comments
Recommended Comments