Hmm ive looking at it cant sleep im now having nitemares about adding this.
Interface headers
// 68K CPU interface
#include "types.h"
#include "cpu68k.h"
#include "c68k.h"
#include "m68k.h"
#include "m68kcpu.h"
#include "mem68k.h"
//#include "genesis.h" Â*i dont think i should include this.
problem do i have to compile and edit the files that are the same names as these headers but c files there heavly baised to genesis plus if i compile them c files it conflicts with functions and i endup including most of genesis plus in neogeo cd. Â*
Just want to know do i have to compile any more files then what you have told me???.
c68/c68k.o c68/c68kexec.o c68/cpu68k.o Â*cpu core correct?
headers to included in the cpu interface file.
change the define Â*in Â*cpu68k.h
#define CPU68K_USE_MUSASHI
//#define CPU68K_USE_C68K
errors now
Code:
c68/cpu68k.c:32: warning: static declaration for `M68K_Init' follows non-static
c68/cpu68k.c: In function `M68K_Init':
c68/cpu68k.c:37: `m68k_irq_ack_callback' undeclared (first use in this function)
c68/cpu68k.c:37: (Each undeclared identifier is reported only once
c68/cpu68k.c:37: for each function it appears in.)
c68/cpu68k.c: At top level:
c68/cpu68k.c:58: warning: static declaration for `M68K_Reset' follows non-static
c68/cpu68k.c:69: warning: static declaration for `M68K_Exec' follows non-static
c68/cpu68k.c:80: warning: static declaration for `M68K_SetIRQ' follows non-stati
c
c68/cpu68k.c:91: warning: static declaration for `M68K_GetOdo' follows non-stati
c
c68/cpu68k.c:102: warning: static declaration for `M68K_EndExec' follows non-sta
tic
c68/cpu68k.c:114: warning: static declaration for `M68K_SetFetch' follows non-st
atic
c68/cpu68k.c:126: warning: static declaration for `M68K_GetDReg' follows non-sta
tic
c68/cpu68k.c:137: warning: static declaration for `M68K_GetAReg' follows non-sta
tic
c68/cpu68k.c:148: warning: static declaration for `M68K_GetSP' follows non-stati
c
c68/cpu68k.c:153: warning: static declaration for `M68K_GetPC' follows non-stati
c
c68/cpu68k.c:164: warning: static declaration for `M68K_GetSR' follows non-stati
c
c68/cpu68k.c:175: warning: static declaration for `M68K_SetDReg' follows non-sta
tic
c68/cpu68k.c:186: warning: static declaration for `M68K_SetAReg' follows non-sta
tic
c68/cpu68k.c:197: warning: static declaration for `M68K_SetSP' follows non-stati
c
c68/cpu68k.c:213: warning: static declaration for `M68K_SetSR' follows non-stati
c
What step im i missing i just want to get this to compile for a change so i can work on Â*rewriting the functions.
EDIT ok found one error
int m68k_irq_ack_callback(int int_level);
s32 FASTCALL m68k_irq_ack_callbackf(s32 int_level);
in genesis.h i need to move that dont know what else i need from the header yet.
Now i get this i went past the first error
Code:
rnel/arch/dreamcast/include -c z80/z80intrf.c -o z80/z80intrf.o
In file included from neocd.h:19,
Â* Â* Â* Â* Â* Â* Â* Â* from z80/z80intrf.c:6:
c68/c68k.h:82: parse error before "FASTCALL"
c68/c68k.h:82: parse error before "adr"
c68/c68k.h:82: warning: data definition has no type or storage class
c68/c68k.h:83: parse error before "C68K_WRITE"
c68/c68k.h:83: parse error before "adr"
c68/c68k.h:83: warning: data definition has no type or storage class
c68/c68k.h:85: parse error before "FASTCALL"
c68/c68k.h:85: parse error before "level"
c68/c68k.h:85: warning: data definition has no type or storage class
c68/c68k.h:86: parse error before "C68K_RESET_CALLBACK"
c68/c68k.h:86: warning: data definition has no type or storage class
??
#define FASTCALL Â*?
#define FASTCALL
#define C68K_READ
#define C68k_Get_MSP
#define C68K_INT_CALLBACK
so make defines for every error? removes them but hmm..
Ok i got it to this
Code:
c68/cpu68k.o: In function `M68K_SetPC':
c68/cpu68k.o(.text+0x6c): undefined reference to `m68k_set_reg'
c68/cpu68k.o: In function `M68K_Disassemble':
c68/cpu68k.o(.text+0xa4): undefined reference to `m68k_disassemble'
neocdc.o: In function `neogeo_hreset':
neocdc.o(.text+0xac8): undefined reference to `m68k_set_reg'
neocdc.o(.text+0xad0): undefined reference to `m68k_pulse_reset'
neocdc.o: In function `neogeo_reset':
neocdc.o(.text+0xd1c): undefined reference to `m68k_pulse_reset'
neocdc.o(.text+0xd20): undefined reference to `m68k_set_reg'
neocdc.o: In function `MC68000_Cause_Interrupt':
neocdc.o(.text+0x1088): undefined reference to `m68k_set_irq'
neocdc.o: In function `neogeo_run':
neocdc.o(.text+0x120c): undefined reference to `m68k_execute'
neocdc.o(.text+0x121c): undefined reference to `m68k_set_irq'
neocdc.o: In function `neogeo_prio_switch':
neocdc.o(.text+0x13c4): undefined reference to `m68k_get_reg'
neocdc.o: In function `neogeo_cdda_control':
neocdc.o(.text+0x14cc): undefined reference to `m68k_get_reg'
cdrom/cdrom.o: In function `cdrom_load_files':
cdrom/cdrom.o(.text+0x1374): undefined reference to `m68k_get_reg'
Bookmarks