Add 2-complement interpretation for ALU

This commit is contained in:
lux
2017-08-14 22:37:03 +02:00
parent 82aba5e133
commit d8b1d230da
3 changed files with 30 additions and 14 deletions

View File

@ -14,6 +14,7 @@
int initialise_ram(uint16_t *ram, int argc, char **argv );
uint8_t get_opcode(uint16_t instruction);
int find_data(uint16_t instruction);
int get2compl(uint16_t value); //not good place for something!
bool execute(uint8_t op_code, int data_addr,uint16_t *ram);
#endif