mirror of
https://github.com/garrettsworkshop/GWRAM.SYSTEM.git
synced 2024-06-05 07:29:30 +00:00
Add bypass in spin(...) in case VBL not working
This commit is contained in:
parent
54a61e6104
commit
bb0ae40761
BIN
bin/GWRAM.dbg.po
BIN
bin/GWRAM.dbg.po
Binary file not shown.
BIN
bin/GWRAM.po
BIN
bin/GWRAM.po
Binary file not shown.
5
util.c
5
util.c
|
@ -40,8 +40,9 @@ void spin(uint8_t x, uint8_t y) {
|
||||||
|
|
||||||
// Wait specificed number of frames
|
// Wait specificed number of frames
|
||||||
for (k = 0; k < SPIN_FRAMESPERCHAR; k++) {
|
for (k = 0; k < SPIN_FRAMESPERCHAR; k++) {
|
||||||
while (*VBL < 0);
|
unsigned char l;
|
||||||
while (*VBL >= 0);
|
for (l = 0; *VBL < 0 && l < 255; l++);
|
||||||
|
for (l = 0; *VBL >= 0 && l < 255; l++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user