1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 20:29:34 +00:00

Being loaded by my 'ProDOS Loader' needs to be classified as being loaded as BIN from an interpreter (and not as SYS). But the 'ProDOS Loader' zeros the system bitmap up to the system global page (this is what it's about) so additionally check page $03 protection which is zero when loaded as SYS but one when loaded by 'ProDOS Loader 1.4'.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4168 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2009-09-13 19:50:09 +00:00
parent 4b84d95891
commit b7df1ed5d4

View File

@ -165,8 +165,12 @@ init: ldx #zpspace-1
bne basic
; Check ProDOS system bit map
lda $BF58 ; protection for pages $00 - $07
and #%11110000 ; ignore protection of text pages
cmp #%11000000 ; only zero and stack pages are protected
bne basic
lda $BF6F ; protection for pages $B8 - $BF
cmp #%00000001 ; exactly page $BF is protected
cmp #%00000001 ; exactly system global page is protected
bne basic
; No BASIC.SYSTEM so quit to ProDOS dispatcher instead