diff --git a/src/main/java/net/brokenmoon/redcontrol/api/Emulator.java b/src/main/java/net/brokenmoon/redcontrol/api/Emulator.java index b36289d..6df81ef 100644 --- a/src/main/java/net/brokenmoon/redcontrol/api/Emulator.java +++ b/src/main/java/net/brokenmoon/redcontrol/api/Emulator.java @@ -26,7 +26,7 @@ public class Emulator { cpu = new Cpu(); cpu.setLogCallback(new LogConsumer()); cpu.setBus(new Bus(bus)); - ram = new Memory(0x0000, 0x2000 - 1, ((CpuAccessor)cpu).getRedBusState()); + ram = new Memory(0x0000, 0x4000 - 1, ((CpuAccessor)cpu).getRedBusState()); ram.loadFromBytes(RedControl.images.get("rpcboot.bin"),0x400,0x100); cpu.getBus().addDevice(ram, ((CpuAccessor)cpu).getRedBusState()); cpu.reset(); diff --git a/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java b/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java index e2d19c5..42574c4 100644 --- a/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java +++ b/src/main/java/net/brokenmoon/redcontrol/blockentities/CpuEntity.java @@ -42,7 +42,7 @@ public class CpuEntity extends Peripheral{ be.notTicked = false; } if(be.isRunning) { - for (int i = 0; i < 500; i++) + for (int i = 0; i < 1000; i++) be.step(); } else{ if (be.isResetting && !be.isReset && be.resetTimer > 0){ diff --git a/src/main/java/net/brokenmoon/redcontrol/blockentities/DriveEntity.java b/src/main/java/net/brokenmoon/redcontrol/blockentities/DriveEntity.java index 92f8a81..d5ed751 100644 --- a/src/main/java/net/brokenmoon/redcontrol/blockentities/DriveEntity.java +++ b/src/main/java/net/brokenmoon/redcontrol/blockentities/DriveEntity.java @@ -27,7 +27,7 @@ public class DriveEntity extends Peripheral{ public DriveEntity(BlockPos pos, BlockState state) { super(RedControl.DRIVE_BLOCK_ENTITY, pos, state, 2); - this.driver = new ByteDiskDriver(RedControl.images.get("redforth.img"), "Forth", "FORTH"); + this.driver = new ByteDiskDriver(RedControl.images.get("basic.img"), "Forth", "FORTH"); this.buffer = ByteBuffer.allocateDirect(SECTOR_SIZE); byte[] name = driver.getDriveName(); byte[] serial = driver.getDriveSerial(); diff --git a/src/main/resources/data/redcontrol/image/basic.img b/src/main/resources/data/redcontrol/image/basic.img new file mode 100644 index 0000000..d322318 Binary files /dev/null and b/src/main/resources/data/redcontrol/image/basic.img differ