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

cps
inc		; Increment the accumulator.
tay		; Transfer the accumulator to the y register.
tax		; Do the same thing, but with the x register.
jmp $1		; Loop forever.

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

.org $FF50
.qword $8000

; Execute the program.
done