From c361eedc46cae3dbde83b8df83f45246ecad4079 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Sun, 17 Aug 2014 15:57:12 +0200 Subject: [PATCH] Fix OpType attribute ordering --- opcodes.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opcodes.go b/opcodes.go index f14a257..f595303 100644 --- a/opcodes.go +++ b/opcodes.go @@ -160,12 +160,13 @@ var instructionNames = [...]string{ // addressing mode. It also includes some extra information for the // emulator, like number of cycles type OpType struct { - Opcode byte // 65(C)02 Opcode, this includes an instruction and addressing mode - Size uint8 // Size of the entire instruction in bytes - Cycles uint8 // Number of clock cycles required to complete this instruction + Opcode byte // 65(C)02 Opcode, this includes an instruction and addressing mode opcodeId uint8 // Decoded opcode Id, addressingId uint8 // Decoded address mode Id + + Size uint8 // Size of the entire instruction in bytes + Cycles uint8 // Number of clock cycles required to complete this instruction } var opTypes = map[uint8]OpType{