18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I.4. Interface to FDASC$<br />

Extended Mode Interface to <strong>SYSLIB</strong><br />

The FDASC$ routine is called with the EM$FDASC PROC. The packet for the FDASC$<br />

routine is generated with the EM$FDASCPKT PROC.<br />

The EM$FDASC PROC calls the FDASC$ routine in the <strong>SYSLIB</strong> common bank.<br />

Calling Sequence:<br />

EM$FDASC pkt,b-reg [func]<br />

where:<br />

pkt<br />

b-reg<br />

func<br />

The label (18-bit offset from zero) of the packet gnerated by the EM$FDASCPKT<br />

PROC.<br />

The b-register of the bank containing the packet generated by the EM$FDASCPKT<br />

PROC.<br />

The code for which FDASC$ function to perform:<br />

1 Convert a Fieldata image to ASCII<br />

2 Convert an ASCII image to FIeldata<br />

The func parameter is optional. If it is omitted, EM$FDASC uses the value contained in<br />

register A1.<br />

EM$FDASC performs character set translation on Fieldata and ASCII images. The caller<br />

must place the image to be transferred in the input buffer, and EM$FDASC returns the<br />

translated image in the output buffer. The input and output buffers must be specified in<br />

the packet generated by the EM$FDASCPKT PROC.<br />

EM$FDASC returns the status of the call to FDASC$ in the packet field CALLSTAT. The<br />

CALLSTAT field is S3 of word 2 of the packet (packet address + 1). The possible status<br />

is<br />

0 Normal return from FDASC$<br />

1 Illegal value given for the FDASC$ function code<br />

If the normal return is taken, EM$FDASC returns the word length of the converted<br />

image in H2 of word 3 of the packet (packet address + 2).<br />

7833 1733–004 I–9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!