diff --git a/presets/galaxian-scramble/shoot2.c b/presets/galaxian-scramble/shoot2.c index 6715253f..2e334365 100644 --- a/presets/galaxian-scramble/shoot2.c +++ b/presets/galaxian-scramble/shoot2.c @@ -137,23 +137,24 @@ void clrscr() { volatile byte video_framecount; // actual framecount +void reset_video_framecount() __critical { + video_framecount = 0; +} + void _buffer() { __asm ; padding to get to offset 0x66 ld ix,#0 ld ix,#0 + ld ix,#0 + nop __endasm; } -// needs to start at offset 0x66 void rst_66() __interrupt { video_framecount++; } -void reset_video_framecount() __critical { - video_framecount = 0; -} - byte getchar(byte x, byte y) { return vram[29-x][y]; } @@ -733,4 +734,3 @@ void main() { play_round(); main(); } - diff --git a/presets/galaxian-scramble/skeleton.sdcc b/presets/galaxian-scramble/skeleton.sdcc index 60413818..d297f411 100644 --- a/presets/galaxian-scramble/skeleton.sdcc +++ b/presets/galaxian-scramble/skeleton.sdcc @@ -143,6 +143,11 @@ void _buffer() { __asm ; padding to get to offset 0x66 ld ix,#0 + ld ix,#0 + ld ix,#0 + nop + nop + nop __endasm; } diff --git a/src/worker/workermain.js b/src/worker/workermain.js index ecd0dc95..34c116c4 100644 --- a/src/worker/workermain.js +++ b/src/worker/workermain.js @@ -861,7 +861,7 @@ function compileSDCC(code, platform) { '--less-pedantic', ///'--fomit-frame-pointer', '--opt-code-speed', - '--oldralloc', // TODO: does this make it fater? + //'--oldralloc', // TODO: does this make it fater? //'--cyclomatic', //'--nooverlay','--nogcse','--nolabelopt','--noinvariant','--noinduction','--nojtbound','--noloopreverse','--no-peep','--nolospre', '-o', 'main.asm'];