mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
tweaks
This commit is contained in:
parent
7c219d235c
commit
9cb61fa34d
@ -508,8 +508,7 @@ asmsub ubyte2decimal (ubyte value @A) -> ubyte @Y, ubyte @A, ubyte @X {
|
|||||||
; ---- A to decimal string in Y/A/X (100s in Y, 10s in A, 1s in X)
|
; ---- A to decimal string in Y/A/X (100s in Y, 10s in A, 1s in X)
|
||||||
%asm {{
|
%asm {{
|
||||||
ldy #uword2decimal.ASCII_0_OFFSET
|
ldy #uword2decimal.ASCII_0_OFFSET
|
||||||
bne uword2decimal.hex_try200
|
jmp uword2decimal.hex_try200
|
||||||
rts
|
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ _lx ldx #0 ; modified
|
|||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
asmsub scroll_right() clobbers(A) {
|
asmsub scroll_right() clobbers(A,Y) {
|
||||||
; ---- scroll the whole screen 1 character to the right
|
; ---- scroll the whole screen 1 character to the right
|
||||||
; contents of the leftmost column are unchanged, you should clear/refill this yourself
|
; contents of the leftmost column are unchanged, you should clear/refill this yourself
|
||||||
%asm {{
|
%asm {{
|
||||||
|
@ -949,11 +949,13 @@ rsave, rsavex
|
|||||||
It's not needed to rsave()/rsavex() before an asm subroutine that clobbers the X register
|
It's not needed to rsave()/rsavex() before an asm subroutine that clobbers the X register
|
||||||
(which is used by prog8 as the internal evaluation stack pointer);
|
(which is used by prog8 as the internal evaluation stack pointer);
|
||||||
the compiler will take care of this situation automatically.
|
the compiler will take care of this situation automatically.
|
||||||
Note: the 16 bit 'virtual' registers of the Commander X16 are *not* saved.
|
Note: the 16 bit 'virtual' registers of the Commander X16 are *not* saved,
|
||||||
|
but you can use ``cx16.save_virtual_registers()`` for that.
|
||||||
|
|
||||||
rrestore, rrestorex
|
rrestore, rrestorex
|
||||||
Restore all registers including status (or only X) back from the cpu hardware stack
|
Restore all registers including status (or only X) back from the cpu hardware stack
|
||||||
Note: the 16 bit 'virtual' registers of the Commander X16 are *not* restored.
|
Note: the 16 bit 'virtual' registers of the Commander X16 are *not* restored,
|
||||||
|
but you can use ``cx16.restore_virtual_registers()`` for that.
|
||||||
|
|
||||||
|
|
||||||
Library routines
|
Library routines
|
||||||
|
Loading…
x
Reference in New Issue
Block a user