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

Comparing BasiliskII/src/uae_cpu/newcpu.cpp (file contents):
Revision 1.6 by gbeauche, 2000-09-05T16:53:19Z vs.
Revision 1.8 by gbeauche, 2001-03-20T17:35:46Z

# Line 22 | Line 22 | extern int intlev(void);       // From baisili
22   #include "memory.h"
23   #include "readcpu.h"
24   #include "newcpu.h"
25 #include "compiler.h"
25  
26   int quit_program = 0;
27   int debugging = 0;
# Line 223 | Line 222 | static int backup_pointer = 0;
222   static long int m68kpc_offset;
223   int lastint_no;
224  
225 + #if REAL_ADDRESSING || DIRECT_ADDRESSING
226 + #define get_ibyte_1(o) get_byte(get_virtual_address(regs.pc_p) + (o) + 1)
227 + #define get_iword_1(o) get_word(get_virtual_address(regs.pc_p) + (o))
228 + #define get_ilong_1(o) get_long(get_virtual_address(regs.pc_p) + (o))
229 + #else
230   #define get_ibyte_1(o) get_byte(regs.pc + (regs.pc_p - regs.pc_oldp) + (o) + 1)
231   #define get_iword_1(o) get_word(regs.pc + (regs.pc_p - regs.pc_oldp) + (o))
232   #define get_ilong_1(o) get_long(regs.pc + (regs.pc_p - regs.pc_oldp) + (o))
233 + #endif
234  
235   uae_s32 ShowEA (int reg, amodes mode, wordsizes size, char *buf)
236   {
# Line 653 | Line 658 | void MakeFromSR (void)
658  
659   void Exception(int nr, uaecptr oldpc)
660   {
656    compiler_flush_jsr_stack();
661      MakeSR();
662      if (!regs.s) {
663          regs.usp = m68k_areg(regs, 7);
# Line 1064 | Line 1068 | void REGPARAM2 op_illg (uae_u32 opcode)
1068   {
1069      uaecptr pc = m68k_getpc ();
1070  
1067    compiler_flush_jsr_stack ();
1068
1071          if ((opcode & 0xFF00) == 0x7100) {
1072                  struct M68kRegisters r;
1073                  int i;
# Line 1166 | Line 1168 | static void do_trace (void)
1168   static int do_specialties (void)
1169   {
1170      /*n_spcinsns++;*/
1169    run_compiled_code();
1171      if (regs.spcflags & SPCFLAG_DOTRACE) {
1172          Exception (9,last_trace_ad);
1173      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines