X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=m68k.h;h=ce9e648d7b4ec15c2a56cbc76dca2937fab9bad2;hb=HEAD;hp=b3a56877e80f768be5e22eac63f800ba4b91a9f8;hpb=d06400230faba867eed3e18c8f16742a4403964f;p=pistorm diff --git a/m68k.h b/m68k.h index b3a5687..ce9e648 100644 --- a/m68k.h +++ b/m68k.h @@ -212,6 +212,7 @@ void m68k_write_memory_32(unsigned int address, unsigned int value); /* PiStorm speed hax */ void m68k_add_ram_range(uint32_t addr, uint32_t upper, unsigned char *ptr); void m68k_add_rom_range(uint32_t addr, uint32_t upper, unsigned char *ptr); +void m68k_remove_range(unsigned char *ptr); void m68k_clear_ranges(); /* Special call to simulate undocumented 68k behavior when move.l with a @@ -316,7 +317,7 @@ void m68k_set_instr_hook_callback(void (*callback)(unsigned int pc)); * Currently supported types are: M68K_CPU_TYPE_68000, M68K_CPU_TYPE_68010, * M68K_CPU_TYPE_EC020, and M68K_CPU_TYPE_68020. */ -void m68k_set_cpu_type(unsigned int cpu_type); +void m68k_set_cpu_type(struct m68ki_cpu_core *state, unsigned int cpu_type); /* Do whatever initialisations the core requires. Should be called * at least once at init time. @@ -387,7 +388,7 @@ void m68k_state_register(const char *type, int index); unsigned int m68k_get_reg(void* context, m68k_register_t reg); /* Poke values into the internals of the currently running CPU context */ -void m68k_set_reg(m68k_register_t reg, unsigned int value); +void m68k_set_reg(void *context, m68k_register_t regnum, unsigned int value); /* Check if an instruction is valid for the specified CPU type */ unsigned int m68k_is_valid_instruction(unsigned int instruction, unsigned int cpu_type);