ITS WORKING FINALLYYYYY

main
Astoria 7 months ago
parent fe1c5205f4
commit 5a868589f0

@ -1 +1 @@
Subproject commit b439ab12a1be69b8eb7da404c17e9c0db30f641d
Subproject commit f95fe5ec0c8afb9a179376117a0f601b35e15f99

@ -33,6 +33,7 @@ public class Emulator {
ram.write(0, 2, ((CpuAccessor)cpu).getRedBusState());
ram.write(1, 1, ((CpuAccessor)cpu).getRedBusState());
System.out.println("Emulator made");
System.out.println("Current PC position: " + this.cpu.getCpuState().pc);
}
public RedBus getBus() {

@ -27,10 +27,13 @@ public class CpuEntity extends Peripheral{
public static void tick(World world, BlockPos pos, BlockState state, CpuEntity be) {
if(be.notTicked) {
System.out.println("Ticking pre reset, PC at " + be.core.cpu.getCpuState().pc);
be.reset();
System.out.println("Ticking post reset, PC at " + be.core.cpu.getCpuState().pc);
be.notTicked = false;
}
for(int i = 0; i < 500; i++)
System.out.println("Stepping, PC at " + be.core.cpu.getCpuState().pc);
be.step();
if(be.core.isWaitingOnInterrupt()){
be.core.setWaitingOnInterrupt();

Loading…
Cancel
Save