Merge remote-tracking branch 'origin/disasm'

This commit is contained in:
Joshua Bell 2019-01-05 11:35:48 -08:00
commit 7e8d7f7f1b

View File

@ -43,7 +43,9 @@ chain_path_orig:
.byte $FF, $FF .byte $FF, $FF
L2048: .byte 0 ; always 0; config parameter ??? ;;; Configuration Parameters
banks_to_reserve: .byte 0 ; banks to reserve (e.g. for AppleWorks)
slot: .byte 3 ; S3D1; could be $B for S3D2 slot: .byte 3 ; S3D1; could be $B for S3D2
@ -191,8 +193,8 @@ quit: MLI_CALL QUIT, quit_params
sty $01 sty $01
sta ALTZPON sta ALTZPON
lda L2048 lda banks_to_reserve
sta var1 sta reserved_banks
;;; ============================================================ ;;; ============================================================
@ -215,12 +217,12 @@ bank_loop:
tya tya
sta map2,y sta map2,y
;; ??? map1 ??? ;; Skip over reserved banks, then start storing them in the map
ldx var1 ; initially 0 ldx reserved_banks
bne :+ bne :+
sta var2 ; var2 = first bank found ??? sta first_used_bank
: dec var1 : dec reserved_banks
bpl next_bank ; should never happen ??? bpl next_bank
sta map1,y sta map1,y
;; (map1,N = N if available, $FF otherwise - also???) ;; (map1,N = N if available, $FF otherwise - also???)
@ -240,10 +242,10 @@ next_bank:
;; Y = $80 ;; Y = $80
;; Restore stashed $0/$1 bytes of back ;; Restore stashed $0/$1 bytes of back
;; (except first, in var2 ???) ;; (except first, in first_used_bank ???)
loop0: lda map2-1,y loop0: lda map2-1,y
bmi :+ bmi :+
cmp var2 cmp first_used_bank
beq :+ beq :+
sta RWBANK sta RWBANK
lda stash_00-1,y lda stash_00-1,y
@ -770,8 +772,8 @@ bank_list:
;;; Scratch space beyond code used during install ;;; Scratch space beyond code used during install
var1 := * reserved_banks := *
var2 := *+1 first_used_bank := *+1
map1 := *+2 map1 := *+2
map2 := *+2+$80 map2 := *+2+$80
stash_00 := *+2+$100 stash_00 := *+2+$100