; Test register transfer instructions. ; ; by mr b0nk 500 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