You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Nope. The PB inline ASM commands do not use the same syntax
as assemblers such as MASM, etc. You could go about it in
several ways:
S$ = SPACE$(255). Then populate the string with the desired data,
and reference the string's bytes with an index pointer.
DIM S AS ASCIIZ*255. Use as above.
MyTable:
! db 00
! db 00
etc., up to the 255 bytes
Then use ! lea dx, MyTable, and reference CS:[DX], using DX (or whichever
index register you specified) as the index.
TYPE MyType
a(1 TO 255) AS BYTE
END TYPE
DIM w AS MyType.
Then do:
! lea di, w
! push ds
! pop es
Then reference it in es:[di]
P.S. I am not sure if you can use the DX register as the index register
in the CS:[DX] - it's been quite a while since I used labeled tables
in my PB/DOS.
------------------
[This message has been edited by Clay Clear (edited May 14, 2003).]
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment