1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-23 21:31:20 +00:00
8bitworkshop/presets/atari7800/skeleton.cc65
2019-08-15 10:31:35 -04:00

21 lines
358 B
Plaintext

#include "atari7800.h"
void main() {
byte y1 = 110;
byte y2 = 10;
byte i;
while (1) {
while ((MARIA.MSTAT & MSTAT_VBLANK) == 0) ;
while ((MARIA.MSTAT & MSTAT_VBLANK) != 0) ;
for (i=0; i<y1; i++) {
WSYNC();
}
for (i=0; i<y2; i++) {
MARIA.BACKGRND = P6532.SWCHA - i;
WSYNC();
}
MARIA.BACKGRND = 0;
}
}