6502/vbcc/targets/ppc-morphos/include/inline/sysdebug_protos.h
2022-05-12 21:36:39 +09:30

18 lines
456 B
C

#ifndef _VBCCINLINE_SYSDEBUG_H
#define _VBCCINLINE_SYSDEBUG_H
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifndef EMUL_EMULREGS_H
#include <emul/emulregs.h>
#endif
STRPTR __SysDebugFindSeg(void *, ULONG Address, ULONG * SegNum, ULONG * Offset) =
"\tlwz\t0,-40(3)\n"
"\tmtctr\t0\n"
"\tbctrl";
#define SysDebugFindSeg(Address, SegNum, Offset) __SysDebugFindSeg(SysDebugBase, (Address), (SegNum), (Offset))
#endif /* _VBCCINLINE_SYSDEBUG_H */