aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-26 14:41:32 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-26 14:41:32 +0000
commit20293d78190d182581247300ae992c15d9e315b6 (patch)
tree7d4c0fc56d4309e8ffa06a92b77011ba650d2b6d
parent244b3289d2e64b542c61ae030260761ccc22ddef (diff)
fill gaps
-rw-r--r--emu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/emu.c b/emu.c
index f7543e1..d6befff 100644
--- a/emu.c
+++ b/emu.c
@@ -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;
}