diff --git a/Makefile b/Makefile index 3d81273..dd6b0b9 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,4 @@ all: clean: rm bin/$(EXEC) + rmdir bin diff --git a/cpu.hpp b/cpu.hpp index 8e38c46..6ad2757 100644 --- a/cpu.hpp +++ b/cpu.hpp @@ -57,6 +57,10 @@ void cpuInstructions ( uint8_t *rom ) { *pointer = rom[*pointer + 1]; } break; + case 0x07: // HIN + cin >> registers[rom[*pointer + 1]]; + *pointer += 2; + break; default: cout << "Invalid Instruction, quitting." << endl; exit ( 1 ); diff --git a/tpu.hpp b/tpu.hpp index d6d7f13..344ffad 100644 --- a/tpu.hpp +++ b/tpu.hpp @@ -117,6 +117,9 @@ void textProcessing ( uint8_t ch ) { cout << "Z"; break; case 0x25: + cout << " "; + break; + case 0x26: cout << endl; break; default: