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:
parent
4b84d95891
commit
b7df1ed5d4
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue