Menu

Word -@ is documented but not implemented (on PIC24)

2024-07-20
2024-07-20
  • David C. Norris

    David C. Norris - 2024-07-20

    For consistency with @+ this might better be named @- anyway.

     
  • Mikael Nordman

    Mikael Nordman - 2024-07-20

    I implemented it on pic18 only where I happened to need it.
    The name -@ is fine because it predecrements.
    @+ postincrements.

     
    👍
    2

    Last edit: Mikael Nordman 2024-07-20
  • David C. Norris

    David C. Norris - 2024-07-20

    Current documentation in wordsAll.txt:

    -@         ( a-addr -- a-addr-2 n )
               Fetch from a-addr and decrement a-addr by 2
    

    Would suggest the following instead:

    -@         ( a-addr -- a-addr-2 n )
               Predecrement a-addr by 2, then fetch
               PIC18
    
     

Log in to post a comment.