Menu

#315 gpasm allows RETURN for 10F202

None
closed-fixed
None
1
2022-02-19
2020-10-18
No

gpasm should flag "RETURN" as an invalid instruction for the 10F202 processor.

The RETURN instruction is assembled as RETLW 0.

gpasm-1.5.0 #1285 (Aug 6 2019)

This file assembles without errors:

PROCESSOR 10F202
RETURN
END

Discussion

  • Robert Pearce

    Robert Pearce - 2022-02-18

    As far as I can tell, that is in line with MPASM (although that gives a message about the substitution but compiles the same otherwise). There are a few 12-bit processors for which gpasm throws an error on RETURN but even for those, MPASM compiles it as RETLW 0 with a warning.

     
  • Molnár Károly

    Molnár Károly - 2022-02-19
    • status: open --> closed-fixed
    • assigned_to: Molnár Károly
     
  • Molnár Károly

    Molnár Károly - 2022-02-19

    This bug is fixed in [r1330] svn version.

     

    Related

    Commit: [r1330]

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB