| 12345678910111213141516171819202122232425262728293031323334353637 |
- #ifndef _PY_FUNCTIONS_H_
- #define _PY_FUNCTIONS_H_
- #include "../emulator.h"
- #include "py_interface.h"
- #include <Python.h>
- #define SET_REG_P1_EN 0x05
- #define SET_REG_P1_DIR 0x06
- #define GET_REG_BCM 0x03
- #define GET_REG_CPU 0x04
- #define GET_REG_P1 0x05
- #define GET_REG_TIMER_A 0x07
- #define GET_REG_USCI 0x08
- // This is an ugly solution but heh
- void play_emu();
- void pause_emu();
- void cmd_emu(char *line, int len);
- void start_emu(char *file);
- void stop_emu();
- void reset_emu();
- void set_reg(uint8_t reg_type, uint8_t value);
- PyObject *get_cpu_regs();
- PyObject *get_port1_regs();
- PyObject *get_bcm_regs();
- PyObject *get_timer_regs();
- PyObject *get_usci_regs();
- void write_serial(uint8_t *data, int len);
- #endif
|