Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF (EN)

63 This program counts to 1000, printing as it goes: 5 CLS 10 Q=1 20 REPEAT 30 PRINT TAB(18,5);Q 40 Q=Q+1 50 UNTIL Q=1000 The two numbers in parentheses after TAB represent the X and Y text coordinates where printing should start (see also the third program in chapter 23). Advanced print positioning Using PRINT TAB(X,Y) allows text etc to be printed in any character ‘cell’ in the appropriate MODE . In MODE 5 there are 20 cells across the screen and 32 cells (lines) down the screen. Sometimes it is useful to be able to position characters on a much finer grid. The statement VDU5 enables text to be printed at the exact position of the graphics cursor.

The statement MOVE can be used to position text. Note that this will not work in MODE 7 . You will remember that the graphics screen is addressed as shown below in all modes except MODE 7.