mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 00:07:21 +00:00
22 lines
512 B
ArmAsm
22 lines
512 B
ArmAsm
|
;
|
||
|
; Miloslaw Smyk, 2024
|
||
|
;
|
||
|
; CC65 runtime: Scale the primary register by 128, unsigned
|
||
|
;
|
||
|
|
||
|
.export shlax7, aslax7
|
||
|
|
||
|
aslax7:
|
||
|
shlax7: ; XXXXXXXL AAAAAAAl
|
||
|
tay
|
||
|
txa
|
||
|
lsr ; XXXXXXXL -> 0XXXXXXX, L->C
|
||
|
tya
|
||
|
ror ; AAAAAAAl -> LAAAAAAA, l->C
|
||
|
tax
|
||
|
lda #$00 ; LAAAAAAA 00000000
|
||
|
ror ; LAAAAAAA l0000000
|
||
|
rts
|
||
|
|
||
|
; 10 bytes, 16 cycles + rts
|