I think they should reflect joystick movement ($11, $13) and trigger buttons ($16, $17).
They always seem to be zero with my CV.
I'm using this cc65 test program:
Code: Select all
#include <conio.h>
#include <creativision.h>
unsigned char *zpptr = (unsigned char *)0x10;
int main(void)
{
int i = 0;
asm ("cli");
gotoxy(0,0);
cprintf("10 11 12 13 14 15 16 17 18\r\n");
endless:
zpptr = (unsigned char *)0x10;
gotoxy(0,1);
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
cprintf("%02X ", *zpptr); ++zpptr;
gotoxy(0,3);
cprintf("I = %04X\r\n", ++i);
goto endless;
return 0; // blah
}
When I run it on an emulator (https://svn.code.sf.net/p/creativisionemulator/code), the values of those ZP variables change when I move the joystick or press a trigger. But they don't change on a real CV.
What is wrong?
I was trying to attach the compiled program, but it doesn't let me ("invalid file externsion", tried *.rom, *.bin, *.bla, and no extension at all).
The file is on ftp://ftp.groessler.org/pub/chris/tmp/zpvars-test.rom.
regards,
chris