summaryrefslogtreecommitdiff
path: root/test/reg-transfer.s
blob: 37e0d512ae998d97f8497aeefe8a29cea9f5c85c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; 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.
a
done