Prev: 250F Up: Map Next: 2530
2522: THE 'SCANNING TWO CO-ORDINATES' SUBROUTINE
This subroutine is called by S_SCREEN, S_ATTR and S_POINT to make sure the required two co-ordinates are given in their proper form.
Output
F Zero flag set if checking syntax
S_2_COORD 2522 RST $20 Fetch the next character.
2523 CP "(" Is it a '('?
2525 JR NZ,S_RPORT_C Report the error if it is not.
2527 CALL NEXT_2NUM Co-ordinates to calculator stack.
252A RST $18 Fetch the current character.
252B CP ")" Is it a ')'?
S_RPORT_C 252D JP NZ,REPORT_C Report the error if it is not.
This routine continues into SYNTAX_Z.
Prev: 250F Up: Map Next: 2530