Is there any way in PB/DOS 3.5 to reference a Table of bytes with
a label via CODEPTR32? The following code illustrates one of the
attempts that I made. *ALL* efforts resulted in a Windows
"...has performed an illegal function..." error. I finally gave up and
decided to ask for help as I am tired of having to reboot my 'puter.
One of the test codes follows:
Any ideas, insights, etc. gratefully received. 
------------------
mailto:[email protected][email protected]</A>
[This message has been edited by Clay Clear (edited February 04, 2003).]
a label via CODEPTR32? The following code illustrates one of the
attempts that I made. *ALL* efforts resulted in a Windows
"...has performed an illegal function..." error. I finally gave up and
decided to ask for help as I am tired of having to reboot my 'puter.

One of the test codes follows:
Code:
DEFSTR S DEFDWD D S = " " DPtr1 = CODEPTR32(Table1) DPtr2 = VARPTR32(S) ! db &H66 ! db &H60 ! lds si, DPtr1 ! les di, DPtr2 ! movsb ! db &H66 ! db &H61 PRINT S WHILE NOT INSTAT : WEND END(0) Table1: ! db &H54

------------------
mailto:[email protected][email protected]</A>
[This message has been edited by Clay Clear (edited February 04, 2003).]
Comment