take last nibble of font address in VX
This commit is contained in:
parent
7001bb747d
commit
5c8eaca55c
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ProcessorInstruction::FontCharacter(vx) => {
|
ProcessorInstruction::FontCharacter(vx) => {
|
||||||
self.index_register = 0xF0 + (self.registers[vx as usize] as u16) * 5u16;
|
self.index_register = 0xF0 + (self.registers[vx as usize] as u16 & 0xF) * 5u16;
|
||||||
}
|
}
|
||||||
ProcessorInstruction::BinaryCodedDecimalConversion(vx) => {
|
ProcessorInstruction::BinaryCodedDecimalConversion(vx) => {
|
||||||
let number = self.registers[vx as usize];
|
let number = self.registers[vx as usize];
|
||||||
|
|
Loading…
Reference in a new issue