mirror of
https://github.com/mre/mos6502.git
synced 2025-02-20 09:29:02 +00:00
Sync binary example with the bin folder
This commit is contained in:
parent
927fa6d119
commit
d041a62aac
@ -39,10 +39,7 @@ fn main() {
|
|||||||
|
|
||||||
// "Load" a program
|
// "Load" a program
|
||||||
|
|
||||||
// JAM: FIXME: What's the syntax for specifying the array element type,
|
let zero_page_data = [
|
||||||
// but not the length? (For a fixed-size array)
|
|
||||||
|
|
||||||
let zero_page_data: [u8; 17] = [
|
|
||||||
// ZeroPage data start
|
// ZeroPage data start
|
||||||
0x00,
|
0x00,
|
||||||
0x02, // ADC ZeroPage target
|
0x02, // ADC ZeroPage target
|
||||||
@ -63,7 +60,7 @@ fn main() {
|
|||||||
0x80, // ADC IndirectIndexedY address
|
0x80, // ADC IndirectIndexedY address
|
||||||
];
|
];
|
||||||
|
|
||||||
let program: [u8; 33] = [
|
let program = [
|
||||||
// Code start
|
// Code start
|
||||||
0xA9, // LDA Immediate
|
0xA9, // LDA Immediate
|
||||||
0x01, // Immediate operand
|
0x01, // Immediate operand
|
||||||
@ -100,7 +97,7 @@ fn main() {
|
|||||||
0xFF, // Something invalid -- the end!
|
0xFF, // Something invalid -- the end!
|
||||||
];
|
];
|
||||||
|
|
||||||
let data: [u8; 25] = [
|
let data = [
|
||||||
0x00,
|
0x00,
|
||||||
0x09, // ADC Absolute target
|
0x09, // ADC Absolute target
|
||||||
0x00,
|
0x00,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user