aboutsummaryrefslogtreecommitdiff
path: root/projects/07/StackArithmetic/SimpleAdd/SimpleAdd.asm
blob: faa8af7decec58a3b4abc05a0a6c6d6bf4c62f97 (plain) (blame)
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
@256
D=A
@SP
M=D
@7
D=A
@SP
A=M
M=D
@SP
M=M+1
@8
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
AM=M-1
D=M
@SP
AM=M-1
D=M+D
@SP
A=M
M=D
@SP
M=M+1
(END)
@END
0;JMP