Announcement

Collapse
No announcement yet.

! ret (ASM) not recognized?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ! ret (ASM) not recognized?

    I keep getting a compiler error "...assembler syntax error..."
    (or whatever it says) whenever I try to use ! ret. Is this because
    the command is not recognized by the PB 3.5 inline assembler?

    BTW, it is being used within a PBU, if that means anything. The
    ! call is to a procedure within the same PBU.


    ------------------
    mailto:[email protected][email protected]</A>

  • #2
    You have to distinguish between NEAR or FAR return... so use RETN or RETF.

    Best of luck!

    Bob Zale
    PowerBASIC Inc.


    ------------------

    Comment


    • #3
      Thanks, Bob. Somehow, I overlooked those in the opcode PDF
      I d/l'd from the Intel website.

      Thanks.


      ------------------
      mailto:[email protected][email protected]</A>

      Comment

      Working...
      X