mirror of
https://github.com/holub/mame
synced 2025-04-20 07:22:04 +03:00
z80: bug fix for 16-bit operands
This commit is contained in:
parent
09e3fefead
commit
6e54ab76fc
@ -555,7 +555,9 @@ uint8_t z80_device::arg()
|
||||
|
||||
uint16_t z80_device::arg16()
|
||||
{
|
||||
return arg() | (arg() << 8);
|
||||
u8 const res = arg();
|
||||
|
||||
return (u16(arg()) << 8) | res;
|
||||
}
|
||||
|
||||
/***************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user