[quote author=Ian_micheal link=board=dcemu;num=1083323639;start=105#119 date=05/29/04 at 14:25:51]genesis.o: In function `gen_init':
genesis.o(.text+0x5c): undefined reference to `m68k_set_cpu_type'
genesis.o(.text+0x60): undefined reference to `m68k_get_reg'
genesis.o(.text+0x64): undefined reference to `m68k_pulse_reset'
genesis.o: In function `gen_reset':
genesis.o(.text+0xf8): undefined reference to `m68k_get_reg'
genesis.o(.text+0x114): undefined reference to `m68k_pulse_reset'
genesis.o: In function `gen_shutdown':
genesis.o(.text+0x21c): undefined reference to `m68k_get_reg'
vdp.o: In function `vdp_reg_w':
vdp.o(.text+0x7ac): undefined reference to `m68k_set_irq'
vdp.o: In function `vdp_hvc_r':
vdp.o(.text+0x9ac): undefined reference to `m68k_cycles_run'
system.o: In function `system_frame':
system.o(.text+0x3c4): undefined reference to `m68k_execute'
system.o(.text+0x3ec): undefined reference to `m68k_set_irq'
mem68k.o: In function `m68k_lockup_w_8':
mem68k.o(.text+0x88): undefined reference to `M68K_GetPC'
mem68k.o(.text+0x98): undefined reference to `M68K_EndExec'
mem68k.o: In function `m68k_lockup_w_16':
mem68k.o(.text+0xc8): undefined reference to `M68K_GetPC'
mem68k.o(.text+0xd8): undefined reference to `M68K_EndExec'
mem68k.o: In function `m68k_lockup_r_8':
mem68k.o(.text+0x104): undefined reference to `M68K_GetPC'
mem68k.o(.text+0x110): undefined reference to `M68K_EndExec'
mem68k.o: In function `m68k_lockup_r_16':
mem68k.o(.text+0x140): undefined reference to `M68K_GetPC'
mem68k.o(.text+0x14c): undefined reference to `M68K_EndExec'
cpu/cpu68k.o: In function `M68K_Disassemble':
cpu/cpu68k.o(.text+0x48): undefined reference to `m68k_disassemble'
collect2: ld returned 1 exit status
Got this now must be missing a file ive not included to compile or makefile is not correct.[/quote]
No this is normal, except maybe for genesis.o external not found...
First you have to change something in shared.h file :
replace
#include "m68k.h"
by
#include "cpu68k.h"
Since now you have the CPU interface, you have to use CPU interface functions (M68K_xxx) instead of the musashi specific ones (m68k_xxx)...
Do as in mem68k.c : m68k_releasetimeslice has been replaced by the M68K_EndExec function...you should do the same for all others m68k_xxx functions in Genesis Plus.
m68k_cycles_run --> M68K_GetOdo
m68k_execute Â*--> M68K_Exec
m68k_set_irq -> M68K_SetIRQ
....
Get a look in the cpu68k.c file to find the functions which replace old musashi function.
I hope you understand what i mean... cpu68k.c file has been done to easily switch between C68K and musashi, but for that, you'll need first to replace all specific musashi function by cpu68k ones
Edit : about m68k_disassemble, just comment it since it is not used in DC port of Genesis Plus, this method is from musashi disassembler and it is not included by default in Genesis Plus.
Sorry for all the matters, i should have clarify all that before uploading files.
Bookmarks