1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-10 02:29:31 +00:00
This commit is contained in:
Silent YANG 2025-03-19 14:03:25 +08:00
parent 390b9d1d76
commit c4e5338397

View file

@ -169,6 +169,9 @@
for(let i = 256; i < 4096; i++){
if(state.calendar[i] >= 0){
console.log(i);
const newBinaryFile = new Uint8Array(Math.ceil(state.rom[state.calendar[i]].binaryFile.length / 0x40) * 0x40).fill(0xff);
newBinaryFile.set(state.rom[state.calendar[i]].binaryFile, 0)
state.rom[state.calendar[i]].binaryFile = newBinaryFile
firmware.push({
...state.rom[state.calendar[i]],
start: 0x40000 + i * 0x40,