From 1474198afd5043c83b45e56569f8fe3a39c1245e Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Sat, 16 Jan 2021 16:54:33 +0100 Subject: [PATCH] got rid of some legacy routine usage --- src/mon_m65/mon_command_compare.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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