Prev: 0ADC Up: Map Next: 0B24
0B03: 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 0B03 BIT 1,(IY+$01) Jump forward if handling the printer (bit 1 of FLAGS set).
0B07 JR NZ,PO_F_PR
0B09 LD BC,($5C88) 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).
0B0D LD HL,($5C84)
0B10 BIT 0,(IY+$02)
0B14 RET Z
0B15 LD BC,($5C8A) Otherwise fetch the values relating to the lower part of the screen from S-POSNL and DF-CCL.
0B19 LD HL,($5C86)
0B1C RET
PO_F_PR 0B1D LD C,(IY+$45) Fetch the values relating to the printer buffer from P-POSN and PR-CC.
0B20 LD HL,($5C80)
0B23 RET
Prev: 0ADC Up: Map Next: 0B24