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:
parent
b19ebe76df
commit
4256ee7bc2
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user