This commit is contained in:
Irmen de Jong 2018-02-13 22:14:59 +01:00
parent fb1a4aa4ea
commit 79283a4117
3 changed files with 32 additions and 11 deletions

View File

@ -69,9 +69,6 @@ label3:
if_true [XY] goto label4
if_true [AY] goto label4
if_true [AX] goto label4
if_true [X ] goto label4
if_true [A ] goto label4
if_true [Y ] goto label4
label4:
return

View File

@ -99,14 +99,6 @@ game_over:
return
sub goodbye ()->() {
var xxxxxx ; @todo vars in sub
memory y = $c000 ; @todo vars in sub
const q = 22 ; @todo const in sub
xxxxxx++
y++
xxxxxx = q *4
c64scr.print_string("\nThanks for playing. Bye!\n")
return
}

View File

@ -2,8 +2,13 @@
var .float flt = -9.87e-21
const .word border = $0099
const cbyte2 = 2222
const cbyte2b = cbyte2*3 ; @todo fix scope not found crash
var counter = 1
start:
counter ++
main.counter ++
; @todo float augassign
flt += 1000.1
flt *= 2.34
@ -24,6 +29,33 @@ start:
[AX]--
block2.b2var++
block2.start()
return 44.123
sub varssub()->() {
sub goodbye ()->() {
var xxxxxx ; @todo vars in sub?
memory y = $c000 ; @todo memvars in sub?
const q = 22 ; @todo const in sub?
y++
return
}
}
sub derp ()->() {
const q = 22
A = q *4 ; @todo fix scope not found error
return
}
}
~ block2 {
var b2var = 0
start:
return
}