diff --git a/Makefile b/Makefile index 604ec1a..8bf452b 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,4 @@ all: clean: rm bin/$(EXEC) + rmdir bin diff --git a/assembler.hpp b/assembler.hpp index 606bf0b..312e794 100644 --- a/assembler.hpp +++ b/assembler.hpp @@ -41,6 +41,8 @@ void assemble ( vector tokens, uint8_t *rom ) { rom[index] = 0x05; } else if ( part == "JEQ" ) { rom[index] = 0x06; + } else if ( part == "HIN" ) { + rom[index] = 0x07; } else { uint8_t value = stoi(part, nullptr, 16); rom[index] = value;