summaryrefslogtreecommitdiff
path: root/projects/07/StackArithmetic/SimpleAdd/SimpleAdd.asm
blob: 71d9d8dc385652e7c670f34d96740d6c430354f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@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
A=A-1
M=D+M