-
Notifications
You must be signed in to change notification settings - Fork 2
6.0 In line Assembler
6502Nerd edited this page Mar 20, 2023
·
5 revisions
One of the very useful features of dflat is the in-line assembler, inspired by BBC BASIC. Key features of the assembler include;
- Standard 6502 notation
- Access to dflat variables
This is a three pass assembler - assembly code must be processed three times to ensure all references and branches are properly resolves;
- Pass 1; Unknown / uninitialised variables may be treated as zero page (so are only 2 byte instructions) rather than absolute
- Pass 2; As absolute operands are resolved this impacts forward references from pass 1
- Pass 3; All references now reflect the correct addresses after any absolute instructions have been processed