summaryrefslogtreecommitdiff
path: root/projects/04/misc/arr.asm
blob: 2766fa73d591c398ec2a1a12310ee932ee1b0788 (plain)
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
@100
D=A
@arr
M=D
@10
D=A
@n
M=D

(LOOP)
	@arr
	A=M
	M=-1
	@arr
	M=M+1
	@n
	M=M-1
	D=M
	@END
	D;JEQ
	@LOOP
	0;JMP

(END)
	@END
	0;JMP