mirror of
https://github.com/nippur72/apple1-videocard-lib.git
synced 2025-01-02 23:31:53 +00:00
tools for splitting the Replica-1 eprom
This commit is contained in:
parent
41336bea43
commit
4631eda4c7
19
tools/splitreplica.js
Normal file
19
tools/splitreplica.js
Normal file
@ -0,0 +1,19 @@
|
||||
const fs = require('fs');
|
||||
|
||||
//let bin = fs.readFileSync("replica1-firmware.double-ROM.bin");
|
||||
let bin = fs.readFileSync("replica1-firmware.double-ROM.modded.bin");
|
||||
|
||||
let rom1 = new Uint8Array(bin.slice(0, 0x2000));
|
||||
let rom2 = new Uint8Array(bin.slice(0x2000, 0x4000));
|
||||
|
||||
//fs.writeFileSync("replica.rom1.e000.bin", rom1);
|
||||
//fs.writeFileSync("replica.rom2.e000.bin", rom2);
|
||||
|
||||
fs.writeFileSync("replica.rom1.e000.modded.bin", rom1);
|
||||
fs.writeFileSync("replica.rom2.e000.modded.bin", rom2);
|
||||
|
||||
console.log(`written`);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user