diff --git a/src/mon_m65/mon_command_compare.s b/src/mon_m65/mon_command_compare.s index c9684d8f..f2e6aa86 100644 --- a/src/mon_m65/mon_command_compare.s +++ b/src/mon_m65/mon_command_compare.s @@ -6,8 +6,10 @@ Mon_Compare: jsr Get_Param_Range ; Long_PC = source +bcs Mon_Error ; Long_CT = count - jsr Get_LAC ; Long_AC = target - +bcs Mon_Error + lda #$00 + sta Addr_Mode + jsr Get_Addr_To_LAC ; Long_AC = target + +beq Mon_Error lda Src_Addr_Mode ora Dst_Addr_Mode