1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
beq condition, if_true
jmp if_false
if_true:
mov 517, %1
jmp endif
if_false:
mov 1952, %1
endif:
jmp %0
condition = 1
; 0 beq Memory(0), Instruction(2),
; 0: subleq Memory(0), Memory(0), Instruction(2),
; 1: subleq Memory(0), Memory(0), Instruction(4),
; 2: subleq Memory(0), Memory(0), Instruction(3),
; 3: subleq Memory(0), Memory(0), Instruction( 5 ),
;
; 1 jmp Instruction(4),
; 4: subleq Memory(0), Memory(0), Instruction( 10 ),
;
;if_true:
; 2 mov Constants(0), Memory(1),
; 5: subleq Memory(1), Memory(1), Instruction(6),
; 6: subleq Constants(0), Memory(0), Instruction(7),
; 7: subleq Memory(0), Memory(1), Instruction(8),
; 8: subleq Memory(0), Memory(0), Instruction(9),
;
; 3 jmp Instruction(5),
; 9: subleq Memory(0), Memory(0), Instruction( 14 ),
;
;if_false:
; 4 mov Constants(1), Memory(4),
; 10: subleq Memory(1), Memory(1), Instruction(11),
; 11: subleq Constants(1), Memory(0), Instruction(12),
; 12: subleq Memory(0), Memory(1), Instruction(13),
; 13: subleq Memory(0), Memory(0), Instruction(14),
;
; 5 jmp Memory(0),
; 14: subleq Memory(0), Memory(0), Memory(0),
|