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:
|
clean:
|
||||||
rm bin/$(EXEC)
|
rm bin/$(EXEC)
|
||||||
|
rmdir bin
|
||||||
|
|
4
cpu.hpp
4
cpu.hpp
|
@ -57,6 +57,10 @@ void cpuInstructions ( uint8_t *rom ) {
|
||||||
*pointer = rom[*pointer + 1];
|
*pointer = rom[*pointer + 1];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 0x07: // HIN
|
||||||
|
cin >> registers[rom[*pointer + 1]];
|
||||||
|
*pointer += 2;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
cout << "Invalid Instruction, quitting." << endl;
|
cout << "Invalid Instruction, quitting." << endl;
|
||||||
exit ( 1 );
|
exit ( 1 );
|
||||||
|
|
3
tpu.hpp
3
tpu.hpp
|
@ -117,6 +117,9 @@ void textProcessing ( uint8_t ch ) {
|
||||||
cout << "Z";
|
cout << "Z";
|
||||||
break;
|
break;
|
||||||
case 0x25:
|
case 0x25:
|
||||||
|
cout << " ";
|
||||||
|
break;
|
||||||
|
case 0x26:
|
||||||
cout << endl;
|
cout << endl;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Reference in a new issue