Compare commits
1 Commits
main
...
pinoutInCl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c552fcf12a |
@@ -23,6 +23,9 @@ public class Cli
|
|||||||
printf(Memory.getPCLATH(), "PCLATH", true);
|
printf(Memory.getPCLATH(), "PCLATH", true);
|
||||||
printf(Memory.getPCL(), "PCL", true);
|
printf(Memory.getPCL(), "PCL", true);
|
||||||
System.out.printf("%n");
|
System.out.printf("%n");
|
||||||
|
System.out.printf("%s:\t\t%s\t", "PortA", Integer.toBinaryString(Memory.getPortA()));
|
||||||
|
System.out.printf("%s:\t\t%s\t", "PortB", Integer.toBinaryString(Memory.getPortB()));
|
||||||
|
System.out.printf("%n");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void printf(int value, String description, boolean hex) {
|
private static void printf(int value, String description, boolean hex) {
|
||||||
|
|||||||
@@ -143,6 +143,13 @@ public class Memory
|
|||||||
return memory[0x81];
|
return memory[0x81];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int getPortB() {
|
||||||
|
return memory[0x06];
|
||||||
|
}
|
||||||
|
|
||||||
|
public static int getPortA() {
|
||||||
|
return memory[0x05] & 0x1F;
|
||||||
|
}
|
||||||
public static int getTimer()
|
public static int getTimer()
|
||||||
{
|
{
|
||||||
return memory[0x01];
|
return memory[0x01];
|
||||||
|
|||||||
Reference in New Issue
Block a user