Sync binary example with the bin folder

This commit is contained in:
Stefano Probst 2018-10-27 11:05:07 +02:00
parent 927fa6d119
commit d041a62aac
1 changed files with 3 additions and 6 deletions

View File

@ -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,