From e690c0673c4705fda5bcab66e44104956f11a7b6 Mon Sep 17 00:00:00 2001 From: Date: Fri, 18 Apr 2014 17:11:59 +0000 Subject: [PATCH] Make AC-created disk images not crash on Apple /// computers --- build/AppleCommander-boot.s | 11 +++++++++-- .../storage/AppleCommander-boot.dump | Bin 253 -> 254 bytes 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build/AppleCommander-boot.s b/build/AppleCommander-boot.s index a284039..015d0bb 100644 --- a/build/AppleCommander-boot.s +++ b/build/AppleCommander-boot.s @@ -74,7 +74,14 @@ YOFFSET = 13 ; This also avoids problems with sector ordering. ; Zero is always zero! ; -.byte 1 +; Added a little chicanery for the Apple /// to branch around +; since it starts executing at the zeroeth byte, not the first. +; This has the effect of setting carry based on machine type. +; +.byte $01 + SEC + BCS $0807 ; The General setup section, below + JMP $A132 ; Apple /// code to pull in the next sector ; ; General setup. ; @@ -190,7 +197,7 @@ DATA2: ; Text message to display at bottom of screen. ; MESSAGE: - asccr "THIS DISK CREATED WITH APPLECOMMANDER" + asccr "APPLECOMMANDER CREATED THIS DISK" asccr "VISIT APPLECOMMANDER.SF.NET" .byte $8d asc "INSERT ANOTHER DISK AND PRESS ANY KEY" diff --git a/src/com/webcodepro/applecommander/storage/AppleCommander-boot.dump b/src/com/webcodepro/applecommander/storage/AppleCommander-boot.dump index 7c696abe5711b06285e35f0e982e74e4b890c016..0e6b496d52421f027beaa19518fa907c9a66ae54 100644 GIT binary patch delta 106 zcmey%_>a+!(P9I$kI}-t9S0Qje=9`%QE>RZNN{gChZhhir2N?10cN%80EIO9R{*)1 z{1TbG3X(rgUAVb-)X~E%3M-N^(dSt4`gC0MxHG-T(jq delta 105 zcmeyz_?OXwac{=~1^wR&5q}gMelHT-Tgc%B1PUoX_BMf8tvWy