Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove indirection for 8080/8085 #34

Closed
duncanamps opened this issue Jun 23, 2023 · 0 comments
Closed

Remove indirection for 8080/8085 #34

duncanamps opened this issue Jun 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@duncanamps
Copy link
Owner

By default, XA80 takes enclosing brackets and turns them internally into square brackets to represent indirection. For example:

    LD  A,(base+(offset*7))    // Source line where base=200, offset=5
    LD  A,[235]                // Gets turned into this

However, some legacy 8080 code uses this to signify a calculation (the 8080/8085 don't use brackets of any sort for indirection). For example:

    lxi h,(nxtrec-reccnt)	;HL=.fcb(nxtrec)

The above shouldn't automatically get turned into redirection.

@duncanamps duncanamps self-assigned this Jun 23, 2023
@duncanamps duncanamps added the enhancement New feature or request label Jun 23, 2023
@duncanamps duncanamps added this to the V0.2 milestone Jun 23, 2023
duncanamps added a commit that referenced this issue Jun 23, 2023
Signed-off-by: duncanamps <duncan@duncanamps.com>
#33 Remove WORD directive
#34 Remove indirection for legacy processors (8080 / 8085)
#35 Add IFDEF / IFNDEF directives
#36 Add SET as a synonym for = (8080 / 8085 only)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant