Emulator/design.txt

34 lines
1 KiB
Text
Executable file

Instructions:
INP 0b0001 | +Adress
OUT 0b0010 | +Adress
LDA 0b0011 | +Adress
STA 0b0100 | +Adress
INC 0b0101 | no Adress
DEC 0b0110 | no Adress
JPP 0b0111 | +Adress/Label
JPZ 0b1000 | +Adress/Label
JPN 0b1001 | +Adress/Label
JPU 0b1010 | +Adress/Label
EOJ 0b1011 | no Adress
Instruction format, [] means optional:
instruction [mem_adress]; [Comment]
Memory:
32 Bit Data with
28 Bit Adresess-> 24Mb Memory
Instruction Layout:
XXXXYYYYYYYYYYYYYYYYYYYYYYYYYYYY
X: Instruction Opcode (4bit)
Y: Memory Adress (28bit)
Debugging capabilities:
specify breakpoints using the -b option
At each breakpoint, you can use the following commands:
'h' - help - Show a list of all commands
'c' - continue - Run the program normally to the next breakpoint
'p' - print - Print a single memory adress
'l' - list - show a list from memory adress 0 to the last used adress
's' - step - run only this instrucion and stop before the next