| Routines

09506: 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 | 09506 | RST 32 | Fetch the next character.
| 09507 | CP "(" | Is it a '('?
| 09509 | JR NZ,S_RPORT_C | Report the error if it is not.
| 09511 | CALL NEXT_2NUM | Co-ordinates to calculator stack.
| 09514 | RST 24 | Fetch the current character.
| 09515 | CP ")" | Is it a ')'?
S_RPORT_C | 09517 | JP NZ,REPORT_C | Report the error if it is not.
This routine continues into SYNTAX_Z.