mirror of
https://github.com/mre/mos6502.git
synced 2024-11-28 07:49:19 +00:00
Change g_opcodes to OPCODES (style warning)
This commit is contained in:
parent
48b0c90c43
commit
70db1564a4
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user