Merge branch 'master' into popptr1

This commit is contained in:
Irgendwer
2018-05-21 13:33:14 +02:00
committed by GitHub
321 changed files with 9563 additions and 2667 deletions

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 05.08.1998
;
; CC65 runtime: Increment ax by valie in y
; CC65 runtime: Increment ax by value in y
;
.export incaxy, incax4

View File

@@ -2,7 +2,7 @@
; Ullrich von Bassewitz, 25.10.2000
;
; CC65 runtime: Increment the stackpointer by 2. For performance reasons,
; this modules does also contain the popax function.
; this module also contains the popax function.
.export popax, incsp2
.importzp sp

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 2002-12-26
;
; CC65 runtime: Jump vector that resides in the data segment so it's address
; CC65 runtime: Jump vector that resides in the data segment so its address
; may be patched at runtime.
;

View File

@@ -1,5 +1,6 @@
;
; Ullrich von Bassewitz, 29.12.1999
; Piotr Fusik, 09.03.2018
; originally by Ullrich von Bassewitz
;
; CC65 runtime: Decrement eax by value in Y
;
@@ -11,16 +12,25 @@ deceaxy:
sty tmp1
sec
sbc tmp1
sta tmp1
txa
sbc #0
tax
lda sreg
sbc #0
sta sreg
lda sreg+1
sbc #0
sta sreg+1
lda tmp1
rts
bcs @L9
; Borrow from X.
dex
cpx #$FF
bne @L9
; X wrapped from zero to $FF, borrow from sreg.
dec sreg
cpx sreg
bne @L9
; sreg wrapped from zero to $FF, borrow from sreg+1.
dec sreg+1
; Done.
@L9: rts

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 04.10.2001
;
; CC65 runtime: Multiply the primary register
; CC65 runtime: Multiply the primary register by 3
;
.export mulax3

View File

@@ -1,7 +1,7 @@
;
; Ullrich von Bassewitz, 04.10.2001
;
; CC65 runtime: Multiply the primary register
; CC65 runtime: Multiply the primary register by 5
;
.export mulax5