summaryrefslogtreecommitdiff
path: root/test/reg-transfer.s
blob: 754940d1825fa3b3b1b55eb714ca1ac4273759ea (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		;
	bra bench	; Loop forever.

.org $FFC0
.qword reset

; Execute the program.
a
d