From d041a62aac868f17076e1204d9342b61c15abb05 Mon Sep 17 00:00:00 2001 From: Stefano Probst Date: Sat, 27 Oct 2018 11:05:07 +0200 Subject: [PATCH] Sync binary example with the bin folder --- src/bin/mos6502.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bin/mos6502.rs b/src/bin/mos6502.rs index 22e0586..df56d6d 100644 --- a/src/bin/mos6502.rs +++ b/src/bin/mos6502.rs @@ -39,10 +39,7 @@ fn main() { // "Load" a program - // JAM: FIXME: What's the syntax for specifying the array element type, - // but not the length? (For a fixed-size array) - - let zero_page_data: [u8; 17] = [ + let zero_page_data = [ // ZeroPage data start 0x00, 0x02, // ADC ZeroPage target @@ -63,7 +60,7 @@ fn main() { 0x80, // ADC IndirectIndexedY address ]; - let program: [u8; 33] = [ + let program = [ // Code start 0xA9, // LDA Immediate 0x01, // Immediate operand @@ -100,7 +97,7 @@ fn main() { 0xFF, // Something invalid -- the end! ]; - let data: [u8; 25] = [ + let data = [ 0x00, 0x09, // ADC Absolute target 0x00,