mirror of https://github.com/wwarthen/RomWBW.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
322 B
17 lines
322 B
#ifndef __Z80_HELPERS
|
|
#define __Z80_HELPERS
|
|
|
|
#include <stdint.h>
|
|
|
|
#define EI __asm__("EI");
|
|
#define DI __asm__("DI");
|
|
#define HALT __asm__("HALT");
|
|
|
|
typedef void (*jump_fn_t)(void) __z88dk_fastcall;
|
|
|
|
typedef struct {
|
|
uint8_t jump_op_code; // JMP or CALL
|
|
jump_fn_t address;
|
|
} z80_jump_t;
|
|
|
|
#endif
|
|
|