assembler code uses. If you are using DOS interrupts with
! int, then you should review the documentation for those interrupts
to see which registers they modify, to see if they need to have ! push
performed. Then, at the end of the inline assembler code, use
! pop in the opposite order that you used for ! push.
Inline assembler labels are used and named like PB BASIC labels.
The difference is that you use inline assembler jump mnemonics
to jump to them.
Example:
Code:
FUNCTION MyFunction (MyArgument%) PUBLIC AS INTEGER ! push ds ! push si ! push ax ! lds si, MyArgument% ! mov ax, ds:[si] ! test ax, -1 ! jz PEndIt 'conditional jump condition not met, so put code here PEndIt: ! pop ax ! pop si ! pop ds END FUNCTION
Those topics are too long for me to want to go into at 2:50 in the
morning. Unless some other, more wide awake & alert, kind PBer can
help Stephane out?
------------------
Leave a comment: