Prev: 0AD9 Up: Map Next: 0B03
0ADC: THE 'POSITION STORE' SUBROUTINE
Used by the routine at CL_SET.
The routine at PO_ABLE continues here.
The new position's 'line and column' values and the 'pixel' address are stored in the appropriate system variables.
Input
B Line number
C Column number
HL Display file address or printer buffer address
PO_STORE 0ADC BIT 1,(IY+$01) Jump forward if handling the printer (bit 1 of FLAGS set).
0AE0 JR NZ,PO_ST_PR
0AE2 BIT 0,(IY+$02) Jump forward if handling the lower part of the screen (bit 0 of TV-FLAG set).
0AE6 JR NZ,PO_ST_E
0AE8 LD ($5C88),BC Save the values that relate to the main part of the screen at S-POSN and DF-CC.
0AEC LD ($5C84),HL
0AEF RET Then return.
PO_ST_E 0AF0 LD ($5C8A),BC Save the values that relate to the lower part of the screen at S-POSNL, ECHO-E and DF-CCL.
0AF4 LD ($5C82),BC
0AF8 LD ($5C86),HL
0AFB RET Then return.
PO_ST_PR 0AFC LD (IY+$45),C Save the values that relate to the printer buffer at P-POSN and PR-CC.
0AFF LD ($5C80),HL
0B02 RET Then return.
Prev: 0AD9 Up: Map Next: 0B03