-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,15 @@ | ||
%zeropage basicsafe | ||
|
||
; @todo fix this loop labeling problem (issue #11 on github): it generates invalid asm due to improper label names | ||
|
||
|
||
~ main { | ||
|
||
label2: | ||
ubyte @zp var1 | ||
|
||
sub start() { | ||
|
||
label3: | ||
byte var1 | ||
|
||
label4: | ||
|
||
sub subsub() { | ||
|
||
label3: | ||
label4: | ||
byte var1 | ||
} | ||
|
||
sub subsub2() { | ||
label3: | ||
label4: | ||
byte var1 | ||
byte var2 | ||
byte var3 | ||
|
||
label5ss2: | ||
|
||
if A>10 { | ||
|
||
label6ss2: | ||
A=44 | ||
while true { | ||
label7ss2: | ||
;derp | ||
} | ||
} else { | ||
|
||
gameoverss2: | ||
goto gameoverss2 | ||
} | ||
label8ss2: | ||
|
||
} | ||
|
||
label5: | ||
|
||
if A>10 { | ||
|
||
label6: | ||
A=44 | ||
while true { | ||
label7: | ||
;derp | ||
} | ||
} else { | ||
|
||
gameover: | ||
goto gameover | ||
} | ||
label8: | ||
|
||
ubyte @zp var1 | ||
A=20 | ||
A=var1 | ||
Y=main.var1 | ||
} | ||
|
||
} |