Skip to content

.FUNCTION #3

@nicklausw

Description

@nicklausw

I can't do dev right now so this issue is more a self-reminder than anything. (This, if implemented, could actually be merged into the original asm6).

ca65 lets defines double as functions like:

.define valplustwo(val) (val+2)

This functionality can be replicated in asm6 with:

.function valplustwo val
.return val+2
.endf

Used like lda #valplustwo(12).
This could be good for making fancy tables and stuff. Thoughts?

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