Skip to content

dasm Apple II buggy IDE behavior when org is not $0803 #204

@fredsa

Description

@fredsa

To reproduce:

  1. Create a trivial dasm program on the Apple II
  2. Set the start address to something other than $0803

Here's a minimal program starting at $0802:

	processor 6502
	org $802
loop
	nop
	jmp loop

The program text editor will dutifully display the expected binary program to the left of the source code:

0802  ea
0803  4c 03 08

Click on the "Disassembly" view and you will see that the compiled code is very program

  1. Program code actually starts at 0803 (which apparently is hard coded by the IDE)
  2. The "loop" label is show at 0802 (which is a BRK instruction due to memory being $00)
  3. The JMP instruction points to 0802 (where the start of the program would've been)
  4. Using the "Reset and debug" (=rewind the execution) and "single step" functions is a really confusing experience because because the memory addresses next to the source view don't line up with the program location in memory
0802	00            	BRK                           ; loop
0803	EA            	NOP                           
0804	4C0208        	JMP loop                     

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions