Skip to content

What do MF errors regarding "assert(abs(off) < 2048);" really mean? #23

Open
@supercom32

Description

@supercom32

When working with a large method that has many calls to other methods (with large strings as their parameters - Ie. game dialog text), I noted that at some point I got the following error:

mf: MF.cpp:918: void Output::reloc10(unsigned int, unsigned int): Assertion `abs(off) < 2048' failed.

Regardless of where in the Sub I placed my new lines, it threw that error. When I broke my Sub down into smaller Subs, then it all worked just fine. Is this because I somehow ran out of memory (stack?) for this Sub and I need to break it up? I assume so, since I can't think of any other reason. (^_^);

EDIT: I guess what I really should be doing is declaring dialog as "#Constants" instead so that everything gets stored into ROM instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions