Prev: 02780 Up: Map Next: 02852
02819: THE 'POSITION FETCH' SUBROUTINE
Used by the routines at PRINT_OUT, PO_COMMA, PO_TV_2 and PO_ANY.
The current position's parameters are fetched from the appropriate system variables.
Output
B Line number
C Column number
HL Display file address or printer buffer address
PO_FETCH 02819 BIT 1,(IY+1) Jump forward if handling the printer (bit 1 of FLAGS set).
02823 JR NZ,PO_F_PR
02825 LD BC,(23688) Fetch the values relating to the main part of the screen from S-POSN and DF-CC and return if this was the intention (bit 0 of TV-FLAG set).
02829 LD HL,(23684)
02832 BIT 0,(IY+2)
02836 RET Z
02837 LD BC,(23690) Otherwise fetch the values relating to the lower part of the screen from S-POSNL and DF-CCL.
02841 LD HL,(23686)
02844 RET
PO_F_PR 02845 LD C,(IY+69) Fetch the values relating to the printer buffer from P-POSN and PR-CC.
02848 LD HL,(23680)
02851 RET
Prev: 02780 Up: Map Next: 02852