Basic read-only cli
This commit is contained in:
@@ -111,7 +111,7 @@ public class Memory
|
||||
return 1;
|
||||
}
|
||||
|
||||
private static int getFSR()
|
||||
public static int getFSR()
|
||||
{
|
||||
return memory[0x4];
|
||||
}
|
||||
|
||||
@@ -18,10 +18,6 @@ public class Stack
|
||||
return stack[stackPointer];
|
||||
}
|
||||
|
||||
public static int peek()
|
||||
{
|
||||
return stack[(stackPointer + 7) % 8]; //Get TopOfStack -1 +8 = 7 and modulo 8 to avoid IndexOutOfBound
|
||||
}
|
||||
|
||||
private static void pointNext()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user