I'm trying to define a section of data in a program. The Apple 6502 Assembler/Editor mentions an assembler directive called "DSECT" but I can't tell if I'm using it correctly or not. Here is an example program I created to test if it would work:
1 * Test of DSECT *
2 ORG $800
3 DSECT
4 ORG $1000
5 DFB $C1 ;HEXCODE OF "A"
6 DEND
7 LDA $1000
8 JSR $FDED ;CALL COUT
I thought that I would get an out of "A", but I just get a random letter instead. I haven't seen much online or in the books I have about the DSECT command, so my question is: How do I properly use DSECT?