Change g_opcodes to OPCODES (style warning)

This commit is contained in:
Johannes Muenzel 2014-10-07 00:07:09 -04:00
parent 48b0c90c43
commit 70db1564a4
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ impl AddressingMode {
pub type DecodedInstr = (Instruction, AMOut);
pub static g_opcodes: [Option<(Instruction, AddressingMode)>, ..256] = [
pub static OPCODES: [Option<(Instruction, AddressingMode)>, ..256] = [
/*0x00*/ Some((BRK, Implied)),
/*0x01*/ Some((ORA, IndexedIndirectX)),
/*0x02*/ None,

View File

@ -56,7 +56,7 @@ impl Machine {
pub fn fetch_next_and_decode(&mut self) -> Option<DecodedInstr> {
let x: u8 = self.memory.get_byte(self.registers.program_counter);
match instruction::g_opcodes[x as uint] {
match instruction::OPCODES[x as uint] {
Some((instr, am)) => {
let extra_bytes = am.extra_bytes();
let num_bytes = AddressDiff(1) + extra_bytes;