diff options
| author | 2025-08-21 22:42:14 +0330 | |
|---|---|---|
| committer | 2025-08-21 22:42:14 +0330 | |
| commit | bfc728476d8ac5edc6249ef2f9fa72ea11c7ffd7 (patch) | |
| tree | d07ed416cd612f72de0977bf9a1643c17e66a773 /pu2/code.i2 | |
| parent | added makefile (diff) | |
added jmp, jnz and jz
Diffstat (limited to 'pu2/code.i2')
| -rw-r--r-- | pu2/code.i2 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pu2/code.i2 b/pu2/code.i2 index e6a259c..c42cdd5 100644 --- a/pu2/code.i2 +++ b/pu2/code.i2 @@ -13,9 +13,18 @@ macro putchar(1) { system(); } +@10 = 1; + +jz(@10, continue); // conditional jump! + +puts(["hi"], [2]); + +continue: + putchar([10]); puts([" hello world"], [15]); putchar([10]); putchar([10]); -exit(0);
\ No newline at end of file +exit(0); + |
