Skip to content

Commit 4032bdd

Browse files
committed
Fix opcodes
1 parent dfbf35e commit 4032bdd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

opcodes.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static char* pce_opstring[PCE_TYPE_COUNT][PCE_ARG_COUNT] = {
6666
};
6767

6868
// PC engine opcodes
69-
static opcode_t pce_opcode[256] = {
69+
static Opcode pce_opcode[256] = {
7070
/* 00 */ { "brk ", 1 , 0 }, // BRK
7171
/* 01 */ { "ora ", 2 , 11 }, // ORA (ZZ, X)
7272
/* 02 */ { "sxy ", 1 , 0 }, // SXY
@@ -326,12 +326,12 @@ static opcode_t pce_opcode[256] = {
326326
};
327327

328328
// Get opcode description.
329-
const opcode_t* opcode_get(uint8_t op) {
329+
const Opcode* opcode_get(uint8_t op) {
330330
return &pce_opcode[op];
331331
}
332332

333333
// Get opcode description
334-
const char* opcode_format(const opcode_t *op, int i) {
334+
const char* opcode_format(const Opcode *op, int i) {
335335
if((i < 0) || (i >= PCE_ARG_COUNT)) {
336336
return NULL;
337337
}

opcodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ typedef struct {
103103
/// Get opcode description
104104
/// \param [in] op Opcode id
105105
/// \return Pointer to opcode description
106-
const opcode_t* opcode_get(uint8_t op);
106+
const Opcode* opcode_get(uint8_t op);
107107

108108
/// Get opcode format string
109109
/// \param [in] op Pointer to opcode description
110110
/// \param [in] i Opcode argument id
111111
/// \return Argument format string
112112
/// \return NULL if the argument id is out of opcode argument count
113-
const char* opcode_format(const opcode_t *op, int i);
113+
const char* opcode_format(const Opcode *op, int i);
114114

115115
/// Is the instruction a local jump ?
116116
bool opcode_is_local_jump(uint8_t op);

0 commit comments

Comments
 (0)