summaryrefslogtreecommitdiffstats
path: root/test/and.asm
blob: c4a15a64aa9ccd229de460c27aa16932eb273d34 (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
stdout X1 Y1

tpu X1 Y0
	mov 0, DOWN
	mov 1, DOWN
	mov 0, DOWN
	mov 1, DOWN
	MOV UP, NIL
end

tpu X0 Y1
	mov 0, RIGHT
	mov 0, RIGHT
	mov 1, RIGHT
	mov 1, RIGHT
	MOV UP, NIL
end

tpu X1 Y1
	mov 2, ACC
	sub UP
	sub LEFT
	jez H
	mov 0, DOWN
	jro 2
H:  mov 1, DOWN
end