mirror of
https://github.com/bradgrantham/apple2a.git
synced 2025-01-11 22:29:55 +00:00
Pass base address when disassembling.
This commit is contained in:
parent
f73bd75654
commit
86b0e366bd
7
main.c
7
main.c
@ -579,7 +579,12 @@ static void complete_compile_and_execute(void) {
|
|||||||
int i;
|
int i;
|
||||||
uint8_t *debug_port = (uint8_t *) 0xBFFE;
|
uint8_t *debug_port = (uint8_t *) 0xBFFE;
|
||||||
|
|
||||||
debug_port[0] = g_compiled_length;
|
// Size of program (including initial address).
|
||||||
|
debug_port[0] = 2 + g_compiled_length;
|
||||||
|
// Address of program start, little endian.
|
||||||
|
debug_port[1] = ((uint16_t) &g_compiled[0]) & 0xFF;
|
||||||
|
debug_port[1] = ((uint16_t) &g_compiled[0]) >> 8;
|
||||||
|
// Program bytes.
|
||||||
for (i = 0; i < g_compiled_length; i++) {
|
for (i = 0; i < g_compiled_length; i++) {
|
||||||
debug_port[1] = g_compiled[i];
|
debug_port[1] = g_compiled[i];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user