Content of CVs

Hello all!

For debugging purposes I want to display the content of a CV in human readable format (e.g. “AD=B CD=YE MODIFIED”). Since there’s no IF #CV = (AD=B) in Natural, I have to do this on my own.

The only thing mentioned in Natural’s documentation is the fact that a variable of type © has 2 Byte internally.

By hexdumping some CVs I found out the following:
The 1st half byte contains the attribute definition (parameter AD)
The 2nd half byte contains the modification flag
The 3rd half byte contains the color (parameter CD)
The 4th half byte contains the print mode (parameter PM)

Does anybody know more?

Thanks,

Matthias

Sorry! Wrong Forum. :oops:
Should be: Natural Basics on Open Systems

Meanwhile I found out:

first 3 bits:
001 --> (AD=B)
010 --> (AD=I)
011 --> (AD=N)
100 --> (AD=V)
101 --> (AD=U)
110 --> (AD=C)

if bit 4 and 6 is set --> (AD=P)

if bit 8 is set --> MODIFIED

bit 10-12
001 --> (CD=BL)
010 --> (CD=GR)
011 --> (CD=TU)
100 --> (CD=RE)
101 --> (CD=PI)
110 --> (CD=YE)
111 --> (CD=NE)

if bit 14 is set --> (PM=I)
if bit 15 is set --> (PM=N)

unknown bits: 7, 9, 16