From bcafeb5f76bc6d4a26df93a78ac4f8aad243c497 Mon Sep 17 00:00:00 2001 From: Duncan Smith Date: Mon, 14 Jun 2010 22:59:36 -0700 Subject: Fixed stupid constant error in underef --- main.asm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'main.asm') diff --git a/main.asm b/main.asm index 120378d..b3f9402 100644 --- a/main.asm +++ b/main.asm @@ -219,6 +219,13 @@ emu_setup: rts +;; |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +;; _ __ ___ ___ _ __ ___ ___ _ __ _ _ ||||||||||||||||||||||||||| +;; | '_ ` _ \ / _ \ '_ ` _ \ / _ \| '__| | | | \\\\\\\\\\\\\\\\\\\\\\\\\\\ +;; | | | | | | __/ | | | | | (_) | | | |_| | ||||||||||||||||||||||||||| +;; |_| |_| |_|\___|_| |_| |_|\___/|_| \__, | /////////////////////////// +;; of the virtual type |___/ ||||||||||||||||||||||||||| +;; =============================================JJJJJJJJJJJJJJJJJJJJJJJJJJJ ;; Take a virtual address in d1 and dereference it. Returns the ;; host address in a0. Destroys a0, d0. @@ -240,24 +247,24 @@ ref_3: dc.l 0 ; bank 3 ;; Take a physical address in a0 and turn it into a virtual ;; address in d0 - ;; Destroys + ;; Destroys d0 underef: move.l a0,d0 sub.l ref_0(pc,d0),d0 bmi underef_not0 - cmpi.l #$10000,d0 + cmpi.l #$4000,d0 bmi underef_thatsit underef_not0: move.l a0,d0 sub.l ref_1(pc,d0),d0 bmi underef_not1 - cmpi.l #$10000,d0 + cmpi.l #$4000,d0 bmi underef_thatsit underef_not1: move.l a0,d0 sub.l ref_2(pc,d0),d0 bmi underef_not2 - cmpi.l #$10000,d0 + cmpi.l #$4000,d0 bmi underef_thatsit underef_not2: move.l a0,d0 -- cgit v1.2.3