-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ram
47 lines (47 loc) · 847 Bytes
/
main.ram
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
read 1
read 2
load =0
store 3
petla: load 2
jzero odwrocp
div =10
mult =-10
add 2
store 4
load 3
mult =10
add 4
store 3
load 1
div =10
mult =-10
add 1
store 4
load 3
mult =10
add 4
store 3
load 1
div =10
store 1
load 2
div =10
store 2
jump petla
odwrocp: load =0
store 4
odwroc: load 3
jzero koniec
div =10
mult =-10
add 3
store 2
load 4
mult =10
add 2
store 4
load 3
div =10
store 3
jump odwroc
koniec: write 4