summaryrefslogtreecommitdiff
path: root/test/asr.s
blob: ffcd46b4d6b919bd34691e4bbf4d57f086b0942a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; Testing Signed shifts.
;
; Writen by mr b0nk 500 <b0nk@b0nk.xyz>

.org $8000
reset:
	cps
start:
	clc
	and #0
	dec
	tab
	lsl #$10
signshft:
	asr #1
	cmp b
	beq start
	bra signshft

.org $FFC0
.qword reset

a
d