mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-10-31 16:04:51 +00:00
Use AppleUtil to get unsigned start address in ac.
This commit is contained in:
parent
c4ef209792
commit
76d6c21b89
@ -40,6 +40,7 @@ import com.webcodepro.applecommander.storage.physical.ByteArrayImageLayout;
|
||||
import com.webcodepro.applecommander.storage.physical.DosOrder;
|
||||
import com.webcodepro.applecommander.storage.physical.ImageOrder;
|
||||
import com.webcodepro.applecommander.storage.physical.ProdosOrder;
|
||||
import com.webcodepro.applecommander.util.AppleUtil;
|
||||
import com.webcodepro.applecommander.util.TextBundle;
|
||||
|
||||
public class ac {
|
||||
@ -122,7 +123,7 @@ public class ac {
|
||||
|
||||
byte[] header = new byte[4];
|
||||
int byteCount = System.in.read(header, 0, 4);
|
||||
int address = header[1] * 256 + header[0];
|
||||
int address = AppleUtil.getWordValue(header, 0);
|
||||
putFile(fileName, fileType, Integer.toString(address), imageName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user