Feature Level: 1.2.0
This commit is contained in:
parent
2adb9e2070
commit
1570f48fe4
2 changed files with 3 additions and 0 deletions
1
Makefile
1
Makefile
|
@ -12,3 +12,4 @@ all:
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm bin/$(EXEC)
|
rm bin/$(EXEC)
|
||||||
|
rmdir bin
|
||||||
|
|
|
@ -41,6 +41,8 @@ void assemble ( vector<string> tokens, uint8_t *rom ) {
|
||||||
rom[index] = 0x05;
|
rom[index] = 0x05;
|
||||||
} else if ( part == "JEQ" ) {
|
} else if ( part == "JEQ" ) {
|
||||||
rom[index] = 0x06;
|
rom[index] = 0x06;
|
||||||
|
} else if ( part == "HIN" ) {
|
||||||
|
rom[index] = 0x07;
|
||||||
} else {
|
} else {
|
||||||
uint8_t value = stoi(part, nullptr, 16);
|
uint8_t value = stoi(part, nullptr, 16);
|
||||||
rom[index] = value;
|
rom[index] = value;
|
||||||
|
|
Reference in a new issue