ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/basilisk_glue.cpp
(Generate patch)

Comparing BasiliskII/src/uae_cpu/basilisk_glue.cpp (file contents):
Revision 1.4 by cebix, 2000-07-14T21:29:15Z vs.
Revision 1.8 by cebix, 2001-02-02T20:53:00Z

# Line 1 | Line 1
1   /*
2   *  basilisk_glue.cpp - Glue UAE CPU to Basilisk II CPU engine interface
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 32 | Line 32
32  
33  
34   // RAM and ROM pointers
35 < uint32 RAMBaseMac;                      // RAM base (Mac address space)
35 > uint32 RAMBaseMac = 0;          // RAM base (Mac address space) gb-- init is important
36   uint8 *RAMBaseHost;                     // RAM base (host address space)
37   uint32 RAMSize;                         // Size of RAM
38   uint32 ROMBaseMac;                      // ROM base (Mac address space)
# Line 46 | Line 46 | uint32 MacFrameSize;           // Size of frame b
46   int MacFrameLayout;                     // Frame buffer layout
47   #endif
48  
49 + #if DIRECT_ADDRESSING
50 + uintptr MEMBaseDiff;            // Global offset between a Mac address and its Host equivalent
51 + #endif
52 +
53   // From newcpu.cpp
54   extern int quit_program;
55  
# Line 60 | Line 64 | bool Init680x0(void)
64          // Mac address space = host address space
65          RAMBaseMac = (uint32)RAMBaseHost;
66          ROMBaseMac = (uint32)ROMBaseHost;
67 + #elif DIRECT_ADDRESSING
68 +        InitMEMBaseDiff(RAMBaseHost, RAMBaseMac);
69   #else
70          // Initialize UAE memory banks
71          RAMBaseMac = 0;
# Line 95 | Line 101 | bool Init680x0(void)
101  
102   void Exit680x0(void)
103   {
104 +        exit_m68k();
105   }
106  
107  
# Line 118 | Line 125 | void TriggerInterrupt(void)
125          regs.spcflags |= SPCFLAG_INT;
126   }
127  
128 + void TriggerNMI(void)
129 + {
130 +        //!! not implemented yet
131 + }
132 +
133  
134   /*
135   *  Get 68k interrupt level

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines