Basic read-only cli
This commit is contained in:
1 parent
b408b10cd0
commit
9d7d1ce5b1
4 files changed
+47
-19
No files matched your search
@@ -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