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[] = {
{
.opcode = "nop",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = nop_emit,
},
{
.opcode = "halt",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = halt_emit,
},
{
.opcode = "stop",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = stop_emit,
},
{
.opcode = "di",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = di_emit,
},
{
.opcode = "ei",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = ei_emit,
},
{
.opcode = "rla",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = rla_emit,
},
{
.opcode = "rra",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = rra_emit,
},
{
.opcode = "rlca",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = rlca_emit,
},
{
.opcode = "rrca",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = rrca_emit,
},
{
.opcode = "daa",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = daa_emit,
},
{
.opcode = "scf",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = scf_emit,
},
{
.opcode = "reti",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = reti_emit,
},
{
.opcode = "cpl",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = cpl_emit,
},
{
.opcode = "ccf",
.operand_types = {},
.operand_types = {0},
.check = check_no_args,
.length = length_one_byte,
.emit = ccf_emit,