
A. MACRO PROGRAM EXAMPLE
B–61803E–1/10
APPENDIX
232
00010 O9501 ; Display of data in cursor position
00020 IF [#100 EQ 0] GOTO 900 ; #100: Cursor control No.
00030 #145 = #[10000 + [#100 – 1] * 2] ; #145: Cursor data head address
00040 IF [#145 EQ 0] GOTO 900 ;
00050 #145 = #104 * 8 + #145 ; #104: Cursor pointer/display cursor address calculation
00060 IF [#[#145+7] EQ 1] GOTO 10 ; Display direction?
00070 #139 = FIX [#105 / #[#145 + 4]] ; When displaying the data in the X-direction
00080 #148 = #105 - #139 * #[#145 + 4] ;
00090 GOTO 20 ;
00100 N10 #148 = FIX [#105 / #[#145 + 5]] ; When displaying the data in the Y-direction
00110 #139 = #105 - #148 * #[#145 + 5] ;
00120 N20 G243 F#140 Z#141 ; Format setting for data display
00130 X[#[#145]+#[#145+2]*#148+#[#145+6]] Y[#[#145+1]+#[#145+3]*#139]
D#103
00140 #147 = #140 ;
00150 #140 = 1 ;
00160 M98 P9502 ; Cursor display subrutine
00170 #140 = #147 ; Return #140 to this intial state.
00180 N900 M99 ;
00190 ;
00200 ;
00210 ;
00220 ;
00230 ;
A.3.6
Explanation of
Program
Stack #140. #140=1