Code 6 returns the graphics display mask. The return array must be a one dimensional INTEGER array, and must have at least one element. The first element is assigned the value of the graphics write-enable mask. The second element, if present, is assigned the value of the graphics display-enable mask. Each bit in the mask corresponds to one of the bit-planes. Bit 0 corresponds to the first bit-plane.
A_return(0) - graphics write enable mask
A_return(1) - graphics display enable mask
The following program shows how to return the graphics enable masks.