mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-03 22:33:29 +00:00
Ensures 16-bit values of Xn for (d8, An, Xn) are sign extended.
This commit is contained in:
parent
20e774be1e
commit
7c132a3ed5
@ -1266,7 +1266,7 @@ template <class T, bool dtack_is_implicit> void Processor<T, dtack_is_implicit>:
|
||||
target.full = int8_t(data.halves.low) + source; \
|
||||
\
|
||||
if(data.full & 0x800) { \
|
||||
target.full += displacement.halves.low.full; \
|
||||
target.full += int16_t(displacement.halves.low.full); \
|
||||
} else { \
|
||||
target.full += displacement.full; \
|
||||
} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user