Page 12 of 43 FirstFirst ... 2891011121314151622 ... LastLast
Results 111 to 120 of 427

Thread: M68K for DC

                  
   
  1. #111
    DCEmu Coder
    Join Date
    Apr 2004
    Location
    FRANCE
    Posts
    80
    Rep Power
    0

    Default Re: M68K for DC

    [quote author=BlackAura link=board=dcemu;num=1083323639;start=105#108 date=05/27/04 at 09:47:27]Would you mind if I have a look at it too?[/quote]

    Of course you can
    And everyone else can also, but remember that's a *very* unstable version

    Edit : you can download it at http://gens.consolemul.com/c68k_.zip
    When you extract the archive you'll se a main directory upload which contains :
    - c68k & cpu directories
    - mem68k.c, mem68k.h and types.h files

    c68k directory contain the C68K core itself and cpu directory contain CPU interface files.
    mem68k.c & mem68k.h show how memory handler should be declared for C68K, types.h add some typos as FASTCALL, u32 definitions etc ...

    C68K is both composed of generator and emulator. Generator is handled by Gen68k.c (and gen68k.inc), you can activate it in c68k.h by uncommenting C68K_GEN definition... in this case a 'main' function will be actived and generate C opcode files (c68k.ini, c68k_op0.inc ... c68k_opF.inc)
    Once the core has been generated, you comment C68K_GEN to use the emulator itself (files has already been generated in the archive...)
    I know the generator looks like a big mess right now, i plan to clean that later ^^

  2. #112
    Won Hung Lo wraggster's Avatar
    Join Date
    Apr 2003
    Location
    Nottingham, England
    Age
    53
    Posts
    141,430
    Blog Entries
    3209
    Rep Power
    50

    Default Re: M68K for DC

    THanks for your help to the Dreamcast scene stef

    we may yet see a full speed Genesis emu

  3. #113
    DCEmu Regular
    Join Date
    Apr 2004
    Location
    Posts
    351
    Rep Power
    79

    Default Re: M68K for DC



    cpu/cpu68k.c: In function `M68K_C68k_Int_Callback':
    cpu/cpu68k.c:14: warning: passing arg 1 of `m68k_irq_ack_callback' makes integer
    from pointer without a cast
    cpu/cpu68k.c:14: void value not ignored as it ought to be
    cpu/cpu68k.c: In function `M68K_m68k_Int_Callback':
    cpu/cpu68k.c:22: warning: passing arg 1 of `m68k_irq_ack_callback' makes integer
    from pointer without a cast
    cpu/cpu68k.c: In function `M68K_Init':
    cpu/cpu68k.c:59: warning: passing arg 2 of `C68k_Init' from incompatible pointer
    type

    I gave it a fast go got that first up Not quiet sure How i should compile it.

  4. #114
    DCEmu Coder
    Join Date
    Apr 2004
    Location
    FRANCE
    Posts
    80
    Rep Power
    0

    Default Re: M68K for DC

    [quote author=Ian_micheal link=board=dcemu;num=1083323639;start=105#112 date=05/27/04 at 19:51:53]

    cpu/cpu68k.c: In function `M68K_C68k_Int_Callback':
    cpu/cpu68k.c:14: warning: passing arg 1 of `m68k_irq_ack_callback' makes integer
    from pointer without a cast
    cpu/cpu68k.c:14: void value not ignored as it ought to be
    cpu/cpu68k.c: In function `M68K_m68k_Int_Callback':
    cpu/cpu68k.c:22: warning: passing arg 1 of `m68k_irq_ack_callback' makes integer
    from pointer without a cast
    cpu/cpu68k.c: In function `M68K_Init':
    cpu/cpu68k.c:59: warning: passing arg 2 of `C68k_Init' from incompatible pointer
    type

    I gave it a fast go got that first up Not quiet sure How i should compile it.[/quote]

    That's the famous interrupt callback stuff.
    Well, just comment the M68K_C68k_Int_Callback and M68K_m68k_Int_Callback functions.

    and replace :
    m68k_set_int_ack_callback(M68K_m68k_Int_Callback);
    by
    m68k_set_int_ack_callback(m68k_irq_ack_callback);

    and

    C68k_Init(&C68K, m68k_irq_ack_callback);
    by
    C68k_Init(&C68K, NULL);


    Ah yeah, something else, don't even try to compile c68kexec.c file if you don't have at least 512 MB of RAM (768 MB recommended :-/) and use -Os optimisation level, others just don't work (you can of course use -O0 too but it won't be really fast then )

  5. #115
    DCEmu Coder
    Join Date
    Apr 2004
    Location
    FRANCE
    Posts
    80
    Rep Power
    0

    Default Re: M68K for DC

    [quote author=Wraggster link=board=dcemu;num=1083323639;start=105#111 date=05/27/04 at 18:33:05]THanks for your help to the Dreamcast scene stef

    we may yet see a full speed Genesis emu [/quote]

    No have to thanks, i'm taking many fun with that
    Having full speed Genesis emu is just my wish

  6. #116

    Default Re: M68K for DC

    [quote author=Wraggster link=board=dcemu;num=1083323639;start=105#111 date=05/27/04 at 18:33:05]we may yet see a full speed Genesis emu [/quote]

    ;D Great thing that would be indeed!

  7. #117
    DCEmu Rookie
    Join Date
    Apr 2004
    Location
    Warren,Mi
    Posts
    122
    Rep Power
    77

    Default Re: M68K for DC

    the day that Full speed genesis emu comes to use, sleep will no longer be apart of my life, LOL

  8. #118

  9. #119
    DCEmu Regular
    Join Date
    Apr 2004
    Location
    Posts
    351
    Rep Power
    79

    Default Re: M68K for DC

    [quote author=Stef link=board=dcemu;num=1083323639;start=105#113 date=05/28/04 at 09:15:35]

    That's the famous interrupt callback stuff.
    Well, just comment the M68K_C68k_Int_Callback and M68K_m68k_Int_Callback functions.

    and replace :
    m68k_set_int_ack_callback(M68K_m68k_Int_Callback);
    by
    m68k_set_int_ack_callback(m68k_irq_ack_callback);

    and

    C68k_Init(&C68K, m68k_irq_ack_callback);
    by
    C68k_Init(&C68K, NULL);


    Ah yeah, something else, don't even try to compile c68kexec.c file if you don't have at least 512 MB of RAM (768 MB recommended :-/) and use -Os optimisation level, others just don't work (you can of course use -O0 too but it won't be really fast then )
    [/quote]

    c68kexec.c file found out the hard way about that. Ok thanks.

  10. #120
    DCEmu Regular
    Join Date
    Apr 2004
    Location
    Posts
    351
    Rep Power
    79

    Default Re: M68K for DC

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •