diff options
| author | Duncan Smith | 2010-06-12 11:06:51 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-06-12 11:06:51 -0700 |
| commit | cf1021b481694b00e1b18bbc9dab67ab8c6c7553 (patch) | |
| tree | 17b0e5386c4bdf11b58bf0ee9a238edbdb5ea7a5 /main.asm | |
| parent | 7e93257ff6bc6c456001916db480e543ab65faf9 (diff) | |
Worked in Lionel's changes to flags.asm, patched up main.asm slightly to fit
Diffstat (limited to 'main.asm')
| -rw-r--r-- | main.asm | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -11,12 +11,12 @@ ;;; Registers used: ;;; ;;; A7 = sp -;;; A6 = emulated PC +;;; A6 = emulated PC XXX ;;; A5 = instruction table base pointer -;;; A4 = bank 3 base -;;; A3 = bank 2 base -;;; A2 = bank 1 base -;;; A1 = bank 0 base +;;; A4 = emulated SP XXX +;;; A3 = constants address (see flags.asm) +;;; A2 = +;;; A1 = ;;; A0 = ;;; ;;; D0 = current instruction, scratch for macros @@ -213,7 +213,6 @@ F_DEC_W MACRO _main: -;; XXX in the current state of the code, you could just make _main and emu_setup point to the same address. bsr emu_setup rts @@ -222,6 +221,7 @@ _main: emu_setup: movea emu_plain_op,a5 lea emu_fetch(pc),a2 + lea flag_storage(pc),a3 ; Thanks to Lionel ;; XXX finish rts @@ -231,6 +231,9 @@ emu_setup: ;; host address in a0. Destroys a0, d0. ;; XXX I added a masking of the upper bits of the Z80 address (d1) before translating them to host address. ;; Please double-check, but AFAICT, it's the right thing to do. + + ;; XXX these use the old setup, replace this with a writable + ;; LUT. deref: move.w d1,d0 andi.w #$3FFF,d0 |
