Skip to content

invalid AppOnErr(xxxx) macro in ti83plus.inc #85

@bxparks

Description

@bxparks

Problem

The definition of the AppOnErr(xxxx) macro in ti83plus.inc is incorrect and does not work. It is currently:

#define AppOnErr xxxx ld HL,xxxx \ CALL APP_PUSH_ERRORH

The error message is:

$ ../../spasm/spasm -I ../../spasm/inc -N rpn83p.asm rpn83p.8xk
Pass one... 
.../mainscanner.asm:30: Error during invocation of macro 'APPONERR'
.../mainscanner.asm:30: warning SW804: Macro 'APPONERR' was given too many arguments, ignoring extras

Solution

It should probably have some parenthesis:

#define AppOnErr(xxxx) ld HL,xxxx \ CALL APP_PUSH_ERRORH

Workaround

Just expand the macro manually when needed:

ld hl, xxxx
call APP_PUSH_ERRORH

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