× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
I have had cause to materialize the data attributes of a data pointer. ( scalar 
type, length, decimal precision ).

Initially, I used MATPTR to do this. But this method gives me too much info: 
obj name, ctx name, ptr offsect, ... )  Looking directly at the 16 bytes of the 
data pointer, I see that the scalar attributes of the pointer are stored in the 
first 8 bytes.

Pos 1 of the 16 bytes contains the scalar type. If you AND(S) X'0F' this byte, 
you get a value that matches the scalar type returned by MATPTR.

Pos 5 contains the precision of the numeric scalar.

Pos 6 contains the length of the numeric scalar.

Pos 5 - 6 contains the length of a character scalar.

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

Any mistakes with this?

Also, any logical reason why CMPNV and CMPBLA do not accept a data pointer as 
its operand, while CPYNV and CPYBLA do?


-Steve Richter


--



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.