diff options
Diffstat (limited to 'emu.c')
-rw-r--r-- | emu.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -247,11 +247,13 @@ void asr(unsigned short *b, unsigned short *a) { int tmp = *b; + int top = *b | 0x8000; /* TODO */ reg[EX] = ((tmp << 16) >> *a); *b >>= *a; + *b |= top; cycle += 2; } |