summaryrefslogtreecommitdiff
path: root/test/reg-transfer.s
blob: b9d12805c99bdd2f3e45d8958f7dd67db2112761 (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.
a
d