Isolate freezing Expansion Bus Mgr func

This commit is contained in:
Elliot Nunn 2017-10-07 13:28:42 +08:00
parent debed6c064
commit 0550413e40
3 changed files with 55 additions and 3 deletions

48
CoolStuff.a Normal file
View File

@ -0,0 +1,48 @@
EBM_FAKE_FIRSTFUNC PROC EXPORT
IMPORT BaseOfROM
MACHINE MC68030
pea @str1
move #-3,-(sp)
dc.w $aa7f
bsr.l (BaseOfROM + $49590)
pea @str2
move #-3,-(sp)
dc.w $aa7f
bsr.l (BaseOfROM + $471DE)
pea @str3
move #-3,-(sp)
dc.w $aa7f
bsr.l (BaseOfROM + $44FF0)
pea @str4
move #-3,-(sp)
dc.w $aa7f
rts
STRING C
@str1
dc.b '*68k: Entered fake FirstFunc^n'
ALIGN 2
@str2
dc.b '*68k: returned from 49590^n'
ALIGN 2
@str3
dc.b '*68k: returned from 471DE^n'
ALIGN 2
@str4
dc.b '*68k: returned from 44FF0 ... returning^n'
ALIGN 2
END

View File

@ -87,12 +87,16 @@ MainCodeLibs =
# ¶
# Keep DispTable at end ¶
# ¶
"{ObjDir}DispTable.a.o"
"{ObjDir}DispTable.a.o" "{ObjDir}CoolStuff.a.o"
#
# end of ROM
#
"{ObjDir}CoolStuff.a.o" Ä "{Sources}CoolStuff.a"
Asm {StdAOpts} -o "{Targ}" "{Sources}CoolStuff.a"
#
# Main Code Image Resource
#

View File

@ -1545,8 +1545,8 @@ BootRetry MOVE #$2700,SR ; disable interrupts
IMPORT InterC_15c0_CodePrepare2
BSR.L InterC_15c0_CodePrepare2
IMPORT EXPANSIONBUSMGRFIRSTFUNC
BSR.L EXPANSIONBUSMGRFIRSTFUNC
IMPORT EBM_FAKE_FIRSTFUNC
BSR.L EBM_FAKE_FIRSTFUNC
BSR.L CompBootStackOld ; lifted from SetUpSysAppZone
MOVE.L A0,SP