diff --git a/eg/rudiments/add-fail.60p b/eg/rudiments/add-fail.60p index ee9e034..ba653a4 100644 --- a/eg/rudiments/add-fail.60p +++ b/eg/rudiments/add-fail.60p @@ -1,4 +1,4 @@ -routine add_four +define add_four routine inputs a outputs a { diff --git a/eg/rudiments/add-pass.60p b/eg/rudiments/add-pass.60p index 65c69f1..4427cbc 100644 --- a/eg/rudiments/add-pass.60p +++ b/eg/rudiments/add-pass.60p @@ -1,4 +1,4 @@ -routine main +define main routine inputs a outputs a trashes c, z, n, v diff --git a/eg/rudiments/conditional.60p b/eg/rudiments/conditional.60p index eb5711c..3cdb1fb 100644 --- a/eg/rudiments/conditional.60p +++ b/eg/rudiments/conditional.60p @@ -1,9 +1,9 @@ -routine chrout +define chrout routine inputs a trashes a @ 65490 -routine main +define main routine trashes a, x, y, z, n, c, v { ld a, 0 diff --git a/eg/rudiments/copy.60p b/eg/rudiments/copy.60p index ffc07d1..d31fd6b 100644 --- a/eg/rudiments/copy.60p +++ b/eg/rudiments/copy.60p @@ -1,7 +1,7 @@ byte bar byte baz -routine main +define main routine inputs baz outputs bar trashes a, n, z diff --git a/eg/rudiments/example.60p b/eg/rudiments/example.60p index d2b9e7a..2845c60 100644 --- a/eg/rudiments/example.60p +++ b/eg/rudiments/example.60p @@ -1,6 +1,6 @@ byte lives -routine main +define main routine inputs lives outputs lives trashes a, x diff --git a/eg/rudiments/vector-inc.60p b/eg/rudiments/vector-inc.60p index 69a69c7..ca15901 100644 --- a/eg/rudiments/vector-inc.60p +++ b/eg/rudiments/vector-inc.60p @@ -6,14 +6,14 @@ routine chrout trashes a @ 65490 -routine printa +define printa routine trashes a, z, n { ld a, 65 call chrout } -routine printb +define printb routine trashes a, z, n { ld a, 66 diff --git a/eg/rudiments/vector-main.60p b/eg/rudiments/vector-main.60p index b6e45e9..f8df898 100644 --- a/eg/rudiments/vector-main.60p +++ b/eg/rudiments/vector-main.60p @@ -12,7 +12,7 @@ vector routine // call chrout // } -routine main +define main routine trashes print, a, z, n { copy printa, print diff --git a/eg/rudiments/word-table.60p b/eg/rudiments/word-table.60p index ef40dd8..ffad04a 100644 --- a/eg/rudiments/word-table.60p +++ b/eg/rudiments/word-table.60p @@ -1,7 +1,7 @@ word one word table[256] many -routine main +define main routine inputs one, many outputs one, many trashes a, x, y, n, z