Split Payload and PayloadType

This commit is contained in:
Werner
2021-12-26 18:44:17 -03:00
parent 96abcde56b
commit 5b7fc61723
5 changed files with 23 additions and 15 deletions

View File

@ -8,16 +8,6 @@ pub type TwoRegisters = (Byte, Byte);
pub type ThreeRegisters = (Byte, Byte, Byte);
pub type FourRegisters = (Byte, Byte, Byte, Byte);
pub enum PayloadType {
Nothing,
Register,
RegisterAddress,
AddressRegister,
TwoRegisters,
ThreeRegisters,
FourRegisters,
}
#[inline]
pub fn GetRegister(vm: &mut Machine) -> Register {
vm.ReadByte(None)