Implemented basic arduino vm.
Updated LDA to be M[D] = RX + IMM Updated STA to be RD = M[RX + IMM] Updated SYS to be RD = SYSCALL(RX, IMM) Added error callback to VM, replaced printfs with callback. Added syscalls.
This commit is contained in:
@@ -38,9 +38,20 @@ class Console {
|
||||
ConsoleState state;
|
||||
VM *vm;
|
||||
String *inputBuffer;
|
||||
HardwareSerial *serial;
|
||||
|
||||
int hexToDec(String);
|
||||
void printRegisters(bool);
|
||||
void printMemory(uint16_t, uint16_t);
|
||||
|
||||
void stateActive();
|
||||
void stateView();
|
||||
void stateExamine();
|
||||
|
||||
public:
|
||||
Console (VM*);
|
||||
void loop(HardwareSerial*);
|
||||
void setSerial(HardwareSerial*);
|
||||
void loop();
|
||||
};
|
||||
|
||||
#endif //UVM_CONSOLE_H
|
||||
|
||||
Reference in New Issue
Block a user