asmodeus 0.1.0

Complete assembler and emulator for Asmodeus architecture
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; example: Simple division program (iterative) 
; Calculates 25 + 17 and outputs the result

LOOP: POB A
      ODE B
      ŁAD A
      SOM END
      POB COUNT
      DOD ONE
      ŁAD COUNT
      SOB LOOP
END:  POB COUNT
      WYJ
      STP
A: RST 6
B: RST 2
COUNT: RST 0
ONE: RST 1