1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-25 03:34:05 +00:00

removed -oldralloc b/c was breaking some programs w/ WASM

This commit is contained in:
Steven Hugg 2017-11-14 15:56:03 -05:00
parent b19ebe76df
commit 4256ee7bc2
3 changed files with 12 additions and 7 deletions

View File

@ -137,23 +137,24 @@ void clrscr() {
volatile byte video_framecount; // actual framecount volatile byte video_framecount; // actual framecount
void reset_video_framecount() __critical {
video_framecount = 0;
}
void _buffer() { void _buffer() {
__asm __asm
; padding to get to offset 0x66 ; padding to get to offset 0x66
ld ix,#0 ld ix,#0
ld ix,#0 ld ix,#0
ld ix,#0
nop
__endasm; __endasm;
} }
// needs to start at offset 0x66
void rst_66() __interrupt { void rst_66() __interrupt {
video_framecount++; video_framecount++;
} }
void reset_video_framecount() __critical {
video_framecount = 0;
}
byte getchar(byte x, byte y) { byte getchar(byte x, byte y) {
return vram[29-x][y]; return vram[29-x][y];
} }
@ -733,4 +734,3 @@ void main() {
play_round(); play_round();
main(); main();
} }

View File

@ -143,6 +143,11 @@ void _buffer() {
__asm __asm
; padding to get to offset 0x66 ; padding to get to offset 0x66
ld ix,#0 ld ix,#0
ld ix,#0
ld ix,#0
nop
nop
nop
__endasm; __endasm;
} }

View File

@ -861,7 +861,7 @@ function compileSDCC(code, platform) {
'--less-pedantic', '--less-pedantic',
///'--fomit-frame-pointer', ///'--fomit-frame-pointer',
'--opt-code-speed', '--opt-code-speed',
'--oldralloc', // TODO: does this make it fater? //'--oldralloc', // TODO: does this make it fater?
//'--cyclomatic', //'--cyclomatic',
//'--nooverlay','--nogcse','--nolabelopt','--noinvariant','--noinduction','--nojtbound','--noloopreverse','--no-peep','--nolospre', //'--nooverlay','--nogcse','--nolabelopt','--noinvariant','--noinduction','--nojtbound','--noloopreverse','--no-peep','--nolospre',
'-o', 'main.asm']; '-o', 'main.asm'];