Download 1746-RM001A-US-P, BASIC Language Reference Manual
Transcript
12-16 Output Functions Bit 13 of word 200 is the battery status bit. It can have one of the following values: • 0 - Battery is good • 1 - Battery is low Word integrity is guaranteed during this transfer. File integrity is not. Handshaking bits can be used in your application program to provide file integrity. Syntax CALL 54 POP [processor mode] Example >1 REM EXAMPLE PROGRAM >30 CALL 54 : REM XFER BASIC OUTPUT BUFFER TO CPU INPUT IMAGE TABLE >40 POP X : REM LOGIC PROCESSOR STATUS IS IN X >50 IF X<>0 THEN PRINT “PROCESSOR NOT IN RUN MODE” READY >RUN READY > CALL 57 – Transfer BASIC Output Buffer to CPU M1 File Purpose Use CALL 57 to transfer up to 64 words starting at word 100 from the module output buffer to the CPU M1 file starting at word 0. This routine has one input argument and one output argument. The input argument is the number of words to be transferred (1 to 64). If the number is not within the range 1 to 64, no transfer occurs and the output argument is set to 10. If the input argument is a valid number, then the output argument is the status of the Logic Processor. It can have one of the following values: • 0 - Successful transfer, SLC processor in Run mode • 1- Successful transfer, SLC processor in Program mode • 2 - Successful transfer, SLC processor in Test mode • 10 - Illegal length specified • 11 - SLC processor does not support this capability Word integrity is guaranteed during this transfer. File integrity is not. Handshaking bits can be used in your application program to provide file integrity. Publication 1746-RM001A-US-P