improved de6502 - needs to write to disk instead of cli
This commit is contained in:
@@ -21,24 +21,34 @@ fn main() {
|
||||
// Fill with 0xea -> NOP
|
||||
let mut vec: [u8; SIZE_32KB] = [ISA_OP_NOP; SIZE_32KB];
|
||||
|
||||
// Load to A
|
||||
vec[0] = ISA_OP_LDA_I; // LDA #$ab
|
||||
vec[1] = 0b1010_1011; // 1010 1011
|
||||
// Jump to rotate cycle
|
||||
vec[2] = 0x02; // --
|
||||
vec[3] = 0x03; // --
|
||||
|
||||
// Jump to Main
|
||||
vec[0x2210] = ISA_OP_JMP_ABS;
|
||||
vec[0x2211] = 0x00;
|
||||
vec[0x2212] = 0x40;
|
||||
|
||||
// load to a
|
||||
vec[0x4000] = ISA_OP_LDA_I;
|
||||
vec[0x4001] = 0b0101_0100;
|
||||
// jump to top of load to a
|
||||
vec[0x4002] = ISA_OP_JMP_ABS;
|
||||
vec[0x4003] = 0x00;
|
||||
vec[0x4004] = 0x40;
|
||||
vec[0x4005] = ISA_OP_NOP;
|
||||
|
||||
vec[0x7ffa] = 0x22; // NMI Vector
|
||||
vec[0x7ffb] = 0x11;
|
||||
vec[0x7ffc] = 0x12; // Reset Vector
|
||||
vec[0x7ffd] = 0x34;
|
||||
vec[0x7ffe] = 0x43; // Interrupt Vector
|
||||
vec[0x7fff] = 0x21;
|
||||
|
||||
|
||||
vec = le_swap(&vec);
|
||||
|
||||
// write the rom to disk
|
||||
|
||||
Reference in New Issue
Block a user