diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Instructions.hs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Instructions.hs b/src/Instructions.hs index c3e9763..cff8d9b 100644 --- a/src/Instructions.hs +++ b/src/Instructions.hs @@ -63,11 +63,11 @@ doMOVEA _ _ _ _ = error "MOVEA" doMOVE :: Int -> Int -> Int -> Int -> Int -> Emulator () doMOVE 1 dst_reg dst_mode src_mode src_reg = do - incPC - src <- getOp src_mode src_reg 1 - src_value <- fst src - dst <- getOp dst_mode dst_reg 1 - (snd dst) src_value + incPC + (src_get, src_set) <- getOp src_mode src_reg 1 + (dst_get, dst_set) <- getOp dst_mode dst_reg 1 + src_val <- src_get + dst_set src_val doSRMOVE :: Int -> Int -> Emulator () doSRMOVE _ _ = error "SRMOVE" |