This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Saving Return Address on User Stack

I've read the article that there is no support in the C167 KEIL compiler. Hence, I've tried to use MACRO assembler as follows.

*DEFINE ( calls(Rx, Ry) ) LOCAL RETURN_LBL (
MOV R13, #SOF %RETURN_LBL
MOV [-R0], R13
MOV #%Rx, #SEG %RETURN_LBL
MOV [-R0], R13
JMPS SEG #%Rx, SOF #%Ry
RETURN_LBL:
)

I have no translate error. However, it doesn't work. Is it possible to define an operation to another set of operations?

  • Is it possible to define an operation to another set of operations?

    There doesn't seem to be a straightforward way to do that. Just one thing that comes to mind: configure the IDE to 'generate SRC and assemble it', replace A166.EXE with a stub that would do preprocessing on SRC file first and call real A166.EXE next.

    - mike