Skip to content

Add forward labels for assembler #61

@SamCoVT

Description

@SamCoVT

It would be nice to have forward labels for the assembler - currently only anonymous backward labels are provided (using --> (note that this is a reuse of the old "next-screen" FIG-FORTH block word - might consider renaming it), <j and <b). Forward labels are more difficult because they have to go back and modify already compiled code.

They also might be referenced in multiple places (which can be a real hassle), but I'd be happy even with a forward label that supports only one reference, like Tali's current forward labels do, or "up to x references" with an error if there are more. The memory to store the reference locations will need to be stored separately in the case of branches, but could be stored in the compiled routines themselves (as a null terminated linked list) for opcodes that compile two bytes.

I'm thinking that these labels would need to be pre-declared before using them, and it would be nice to be able to re-initalize them for re-use.

I don't expect people to be using Tali's assembler for large bits of assembly - tass64 is better for that - so this really is just to support small branches/jumps within a word being written in assembly

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwishlistSomething that would be nice to have

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions