summaryrefslogtreecommitdiff
path: root/test/reg-transfer.s
blob: abedc5b01a75184d3a6a7e08eee136a9ddb03e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; Test register transfer instructions.
;
; by mr b0nk 500 <b0nk @b0nk.xyz>

.org $8000
reset:
	cps
bench:
	inc		; Increment the accumulator.
	tay		; Transfer the accumulator to the y register.
	tax		; Do the same thing, but with the x register.
	tab		;
	jmp bench	; Loop forever.

.org $FFC0
.qword reset

; Execute the program.
done