Merge pull request #11 from senden9/feature/fixme_main

Sync binary example with the bin folder
This commit is contained in:
Matthias Endler 2018-10-27 14:27:53 +02:00 committed by GitHub
commit 2199289dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,