This commit is contained in:
Denis Molony 2020-06-25 14:50:29 +10:00
parent f7c56e3b17
commit 2c37c365d6

View File

@ -1,5 +1,6 @@
package com.bytezone.diskbrowser.applefile;
import com.bytezone.diskbrowser.utilities.HexFormatter;
import com.bytezone.diskbrowser.utilities.Utility;
// pack::: ~/exomizer-3.0.2/src/exomizer mem -q -P23 -lnone LODE148@0x4000 -o LODE148c
@ -68,12 +69,9 @@ public class ExoBuffer
if (auxType != 0x1FF8 && auxType != 0x3FF8)
return false;
int last = buffer.length - 1;
if (buffer[0] != 1 || buffer[1] != 0 || buffer[last - 1] != 0)
return false;
int address = HexFormatter.unsignedShort (buffer, buffer.length - 2);
if (buffer[last] != 0x60 && buffer[last] != (byte) 0x80
&& buffer[last] != (byte) 0xA0)
if (address != 0x6000 && address != 0x8000 && address != 0xA000)
return false;
return true; // maybe