summaryrefslogtreecommitdiffstats
path: root/test/xor.asm
blob: 7e24812f90bdcc0eaebeeff22bf3425a93267a9a (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
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 UP, ACC
	sub LEFT
	jnz H
	mov 0, DOWN
	jro 2
H:  mov 1, DOWN
end