static void mon_register_list_setR65C02(mon_reg_list_t *reg_list, int mem) { do { if (!strcmp(reg_list->name, "PC")) { mon_register_set_val(mem, e_PC, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "AC")) { mon_register_set_val(mem, e_A, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "XR")) { mon_register_set_val(mem, e_X, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "YR")) { mon_register_set_val(mem, e_Y, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "SP")) { mon_register_set_val(mem, e_SP, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "NV-BDIZC")) { mon_register_set_val(mem, e_FLAGS, (WORD)(reg_list->val)); } reg_list = reg_list->next; } while (reg_list != NULL); }
static void mon_register_list_set6809(mon_reg_list_t *reg_list, int mem) { do { if (!strcmp(reg_list->name, "X")) { mon_register_set_val(mem, e_X, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "Y")) { mon_register_set_val(mem, e_Y, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "U")) { mon_register_set_val(mem, e_U, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "S")) { mon_register_set_val(mem, e_SP, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "PC")) { mon_register_set_val(mem, e_PC, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "DP")) { mon_register_set_val(mem, e_DP, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "CC")) { mon_register_set_val(mem, e_FLAGS, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "A")) { mon_register_set_val(mem, e_A, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "B")) { mon_register_set_val(mem, e_B, (WORD)(reg_list->val)); } if (!strcmp(reg_list->name, "D")) { mon_register_set_val(mem, e_D, (WORD)(reg_list->val)); } reg_list = reg_list->next; } while (reg_list != NULL); }
static void mon_register_list_set6502(mon_reg_list_t *reg_list, int mem) { do { if (!strcmp(reg_list->name, "PC")) mon_register_set_val(mem, e_PC, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "AC")) mon_register_set_val(mem, e_A, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "XR")) mon_register_set_val(mem, e_X, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "YR")) mon_register_set_val(mem, e_Y, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "SP")) mon_register_set_val(mem, e_SP, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "00")) mon_set_mem_val(mem, 0, (BYTE)(reg_list->val)); if (!strcmp(reg_list->name, "01")) mon_set_mem_val(mem, 1, (BYTE)(reg_list->val)); if (!strcmp(reg_list->name, "NV-BDIZC")) mon_register_set_val(mem, e_FLAGS, (WORD)(reg_list->val)); reg_list = reg_list->next; } while (reg_list != NULL); }
static void mon_register_list_set6502dtv(mon_reg_list_t *reg_list, int mem) { do { if (!strcmp(reg_list->name, "PC")) mon_register_set_val(mem, e_PC, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "AC")) mon_register_set_val(mem, e_A, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "XR")) mon_register_set_val(mem, e_X, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "YR")) mon_register_set_val(mem, e_Y, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "SP")) mon_register_set_val(mem, e_SP, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "00")) mon_set_mem_val(mem, 0, (BYTE)(reg_list->val)); if (!strcmp(reg_list->name, "01")) mon_set_mem_val(mem, 1, (BYTE)(reg_list->val)); if (!strcmp(reg_list->name, "NV-BDIZC")) mon_register_set_val(mem, e_FLAGS, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R3")) mon_register_set_val(mem, e_R3, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R4")) mon_register_set_val(mem, e_R4, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R5")) mon_register_set_val(mem, e_R5, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R6")) mon_register_set_val(mem, e_R6, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R7")) mon_register_set_val(mem, e_R7, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R8")) mon_register_set_val(mem, e_R8, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R9")) mon_register_set_val(mem, e_R9, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R10")) mon_register_set_val(mem, e_R10, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R11")) mon_register_set_val(mem, e_R11, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R12")) mon_register_set_val(mem, e_R12, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R13")) mon_register_set_val(mem, e_R13, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R14")) mon_register_set_val(mem, e_R15, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R15")) mon_register_set_val(mem, e_R15, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "ACM")) mon_register_set_val(mem, e_ACM, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "YXM")) mon_register_set_val(mem, e_YXM, (WORD)(reg_list->val)); reg_list = reg_list->next; } while (reg_list != NULL); }
static void mon_register_list_setz80(mon_reg_list_t *reg_list, int mem) { do { if (!strcmp(reg_list->name, "PC")) mon_register_set_val(mem, e_PC, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "AF")) mon_register_set_val(mem, e_AF, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "BC")) mon_register_set_val(mem, e_BC, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "DE")) mon_register_set_val(mem, e_DE, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "HL")) mon_register_set_val(mem, e_HL, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "IX")) mon_register_set_val(mem, e_IX, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "IY")) mon_register_set_val(mem, e_IY, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "SP")) mon_register_set_val(mem, e_SP, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "I")) mon_register_set_val(mem, e_I, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "R")) mon_register_set_val(mem, e_R, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "AF'")) mon_register_set_val(mem, e_AF2, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "BC'")) mon_register_set_val(mem, e_BC2, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "DE'")) mon_register_set_val(mem, e_DE2, (WORD)(reg_list->val)); if (!strcmp(reg_list->name, "HL'")) mon_register_set_val(mem, e_HL2, (WORD)(reg_list->val)); reg_list = reg_list->next; } while (reg_list != NULL); }