Speed increase, less copyright infringing BASIC instead of forth!

main
Astoria 7 months ago
parent 68536ac475
commit f2ebd52fb7

@ -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();

@ -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){

@ -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();

Loading…
Cancel
Save