Created
April 15, 2012 12:27
-
-
Save Jarvix/2392478 to your computer and use it in GitHub Desktop.
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
; 0xSCA syntax | |
.macro myMacro(var1) | |
SET PC, 10 | |
.end | |
foo: | |
set a, 10 | |
.loop: | |
sub a, 1 | |
ifn a, 0 | |
set pc, .loop ; to foo.loop | |
set pc, pop | |
bar: | |
set a, 109 | |
.loop: | |
sub a, 1 | |
ifn a, 0 | |
set pc, .loop ; to bar.loop | |
set pc, pop | |
; NOTCH syntax | |
:foo | |
set a, 10 | |
:.loop | |
sub a, 1 | |
ifn a, 0 | |
set pc, .loop ; to foo.loop | |
set pc, pop | |
:bar | |
set a, 109 | |
:.loop | |
sub a, 1 | |
ifn a, 0 | |
set pc, .loop ; to bar.loop | |
set pc, pop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment