Updated the cx16 library to the Commander X16's ROM prerelease 37.

This commit is contained in:
Greg King
2020-05-02 13:46:06 -04:00
parent 31daa706b7
commit cbf0c1d1dd
17 changed files with 447 additions and 233 deletions

View File

@@ -1,11 +1,12 @@
;
; 2020-01-10, Greg King
; 2020-01-29, Greg King
;
; unsigned char get_numbanks (void);
; unsigned short get_numbanks (void);
; /* Return the number of RAM banks that the machine has. */
;
; The Commander X16 version of MEMTOP returns with an extra value:
; The accumulator describes the number of RAM banks that exist on the hardware.
; A zero accumulator means that there are 256 RAM banks.
;
.export _get_numbanks
@@ -17,4 +18,7 @@ _get_numbanks:
sec
jsr MEMTOP
ldx #>$0000
rts
cmp #<$0100 ; are there 256 banks?
bne :+
inx ; yes
: rts