megadrive_test1
annotate src/main.c @ 4:e7138066c7ea
started the vdp.h header, and hastily rewrote the VDP test as C code
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 01 Feb 2017 13:40:50 +0200 |
parents | |
children | f99eab59e7dc |
rev | line source |
---|---|
nuclear@4 | 1 #include "vdp.h" |
nuclear@4 | 2 |
nuclear@4 | 3 int main(void) |
nuclear@4 | 4 { |
nuclear@4 | 5 VDP_PORT_CTL = 0xc000; |
nuclear@4 | 6 VDP_PORT_CTL = 0; |
nuclear@4 | 7 VDP_PORT_DATA = 0x1f8; |
nuclear@4 | 8 VDP_PORT_CTL = 0x8700; |
nuclear@4 | 9 VDP_PORT_CTL = 0x8004; |
nuclear@4 | 10 VDP_PORT_CTL = 0x8144; |
nuclear@4 | 11 return 0; |
nuclear@4 | 12 } |