Skip to content

Instantly share code, notes, and snippets.

@Jarvix
Created April 15, 2012 12:27
Show Gist options
  • Save Jarvix/2392478 to your computer and use it in GitHub Desktop.
Save Jarvix/2392478 to your computer and use it in GitHub Desktop.
; 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