]> git.sur5r.net Git - cc65/commitdiff
Being loaded by my 'ProDOS Loader' needs to be classified as being loaded as BIN...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 13 Sep 2009 19:50:09 +0000 (19:50 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 13 Sep 2009 19:50:09 +0000 (19:50 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4168 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/apple2/crt0.s

index 9ba7f953446698c3d5c16075892f31a35122f091..b0ffabf1ccb5ede4a9eb16fdbc313c5957444610 100644 (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