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

20 lines
408 B
C

#ifndef _VBCCINLINE_FUELGAUGE_H
#define _VBCCINLINE_FUELGAUGE_H
#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif
#ifndef EMUL_EMULREGS_H
#include <emul/emulregs.h>
#endif
Class * __FUELGAUGE_GetClass(void *) =
"\tlwz\t11,100(2)\n"
"\tstw\t3,56(2)\n"
"\tmtctr\t11\n"
"\tli\t3,-30\n"
"\tbctrl";
#define FUELGAUGE_GetClass() __FUELGAUGE_GetClass(FuelGaugeBase)
#endif /* _VBCCINLINE_FUELGAUGE_H */