gbasm: make code support gcc -pedantic

This commit is contained in:
2017-11-19 18:27:55 -08:00
parent ebc65ac4a5
commit af645d54dd

View File

@@ -210,98 +210,98 @@ size_t ld_emit(struct emitter *emitter,
struct gbasm_op_info gbasm_op_infos[] = { struct gbasm_op_info gbasm_op_infos[] = {
{ {
.opcode = "nop", .opcode = "nop",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = nop_emit, .emit = nop_emit,
}, },
{ {
.opcode = "halt", .opcode = "halt",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = halt_emit, .emit = halt_emit,
}, },
{ {
.opcode = "stop", .opcode = "stop",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = stop_emit, .emit = stop_emit,
}, },
{ {
.opcode = "di", .opcode = "di",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = di_emit, .emit = di_emit,
}, },
{ {
.opcode = "ei", .opcode = "ei",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = ei_emit, .emit = ei_emit,
}, },
{ {
.opcode = "rla", .opcode = "rla",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = rla_emit, .emit = rla_emit,
}, },
{ {
.opcode = "rra", .opcode = "rra",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = rra_emit, .emit = rra_emit,
}, },
{ {
.opcode = "rlca", .opcode = "rlca",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = rlca_emit, .emit = rlca_emit,
}, },
{ {
.opcode = "rrca", .opcode = "rrca",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = rrca_emit, .emit = rrca_emit,
}, },
{ {
.opcode = "daa", .opcode = "daa",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = daa_emit, .emit = daa_emit,
}, },
{ {
.opcode = "scf", .opcode = "scf",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = scf_emit, .emit = scf_emit,
}, },
{ {
.opcode = "reti", .opcode = "reti",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = reti_emit, .emit = reti_emit,
}, },
{ {
.opcode = "cpl", .opcode = "cpl",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = cpl_emit, .emit = cpl_emit,
}, },
{ {
.opcode = "ccf", .opcode = "ccf",
.operand_types = {}, .operand_types = {0},
.check = check_no_args, .check = check_no_args,
.length = length_one_byte, .length = length_one_byte,
.emit = ccf_emit, .emit = ccf_emit,