Feature Level: 1.2.0
This commit is contained in:
parent
98167a9d93
commit
0227dcf2ba
3 changed files with 8 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -12,3 +12,4 @@ all:
|
|||
|
||||
clean:
|
||||
rm bin/$(EXEC)
|
||||
rmdir bin
|
||||
|
|
4
cpu.hpp
4
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 );
|
||||
|
|
3
tpu.hpp
3
tpu.hpp
|
@ -117,6 +117,9 @@ void textProcessing ( uint8_t ch ) {
|
|||
cout << "Z";
|
||||
break;
|
||||
case 0x25:
|
||||
cout << " ";
|
||||
break;
|
||||
case 0x26:
|
||||
cout << endl;
|
||||
break;
|
||||
default:
|
||||
|
|
Reference in a new issue