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

Comparing BasiliskII/src/uae_cpu/newcpu.h (file contents):
Revision 1.4 by gbeauche, 2000-09-22T17:21:45Z vs.
Revision 1.5 by gbeauche, 2001-03-20T17:35:46Z

# Line 223 | Line 223 | extern void m68k_setpc_rte (uaecptr newp
223   #define m68k_setpc_rte  m68k_setpc
224   #endif
225  
226 + static __inline__ void m68k_do_rts(void)
227 + {
228 +            m68k_setpc(get_long(m68k_areg(regs, 7)));
229 +                m68k_areg(regs, 7) += 4;
230 + }
231 +
232 + static __inline__ void m68k_do_bsr(uaecptr oldpc, uae_s32 offset)
233 + {
234 +            m68k_areg(regs, 7) -= 4;
235 +                put_long(m68k_areg(regs, 7), oldpc);
236 +                    m68k_incpc(offset);
237 + }
238 +
239 + static __inline__ void m68k_do_jsr(uaecptr oldpc, uaecptr dest)
240 + {
241 +            m68k_areg(regs, 7) -= 4;
242 +                put_long(m68k_areg(regs, 7), oldpc);
243 +                    m68k_setpc(dest);
244 + }
245 +
246   static __inline__ void m68k_setstopped (int stop)
247   {
248      regs.stopped = stop;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines