From 0227dcf2ba96f62fe9c06b0ab64208c9c9f1ecb9 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Fri, 23 Aug 2024 10:37:56 +0200 Subject: [PATCH] Feature Level: 1.2.0 --- Makefile | 1 + cpu.hpp | 4 ++++ tpu.hpp | 3 +++ 3 files changed, 8 insertions(+) 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: