-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.xsm
96 lines (96 loc) · 815 Bytes
/
temp.xsm
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
0
2056
0
0
0
0
0
0
BRKP
MOV SP,4121
MOV R0,4
MOV [4096],R0
MOV R0,5
MOV [4097],R0
MOV R0,[4096]
MOV R1,[4097]
LT R0,R1
JZ R0,_L0
MOV R0,[4096]
MOV R1,5
LT R0,R1
JZ R0,_L1
MOV R0,[4096]
MOV R1,"Write"
PUSH R1
MOV R1,-2
PUSH R1
PUSH R0
PUSH R1
PUSH R1
CALL 0
POP R1
POP R1
POP R1
POP R1
POP R1
JMP _L2
_L1:
_L2:
JMP _L3
_L0:
MOV R0,[4097]
MOV R1,"Write"
PUSH R1
MOV R1,-2
PUSH R1
PUSH R0
PUSH R1
PUSH R1
CALL 0
POP R1
POP R1
POP R1
POP R1
POP R1
_L3:
MOV R0,0
MOV [4096],R0
_L4:
MOV R0,[4096]
MOV R1,5
LT R0,R1
JZ R0,_L5
MOV R0,[4096]
MOV R1,"Write"
PUSH R1
MOV R1,-2
PUSH R1
PUSH R0
PUSH R1
PUSH R1
CALL 0
POP R1
POP R1
POP R1
POP R1
POP R1
MOV R0,[4096]
MOV R1,1
ADD R0,R1
MOV [4096],R0
JMP _L4
_L5:
MOV R0,"Exit"
PUSH R0
PUSH R0
PUSH R0
PUSH R0
PUSH R0
CALL 0
_L0 2132
_L1 2130
_L2 2130
_L3 2160
_L4 2164
_L5 2210