source: branches/virt simple/example.vasm

Last change on this file was 90, checked in by chronos, 8 years ago
  • Added: Support for user defined labels.
File size: 212 bytes
Line 
1Start:
2 NOP
3 INC R0
4 LD R1, R0
5 LD [2], R1
6 OUT [0], R1
7 PUSH -1
8 POP [10]
9 LD R0, 65
10 SYS 0 ; Output character
11 LD R0, 1000
12 SYS 2 ; Delay 1 second
13 JP Start
14 LD [R4], [R3]
15 HALT
Note: See TracBrowser for help on using the repository browser.