> OSTester : "OSBYTE Calls" (A%=-1:X%=0:Xmax%=0 2 err < F( X%163:X%=&FF00:Xmax%=X%: : MOS variables " ,: 6 test @ A$:Y%=(X%&FFFF)256 JX"*FX ";A%;",";X%&FF;",";Y%;17);"A=";h(A%,2);" X=&";h(X%,2);" Y=&";h(Y%,2);" "; T'A$;(26-A$);"Result: ";:U%=&FFF4 ^:"&";h((U% &FFFF00)256,4);: (U%&1000000):" Cy"; h: r: |ݤd(n%):=" "+n%,3) #ݤh(n%,d%):="0000000"+~n%,d%) :  _Basic "BBCBASIC OS Interface"   A%=-10 10  A$ #"ADVAL(";A%;")=";(A%);14);A$  "INKEY(-256)=";-256 : :   OS Version \ Mouse buffer,Speech buffer,SOUND 3 buffer,SOUND 2 buffer,SOUND 1 buffer,SOUND 0 buffer Q Printer buffer,RS232 output buffer,RS232 input buffer,Keyboard input buffer &T Last ADC Chann/Buttons,ADC Channel 1,ADC Channel 2,ADC Channel 3,ADC Channel 4 0! ??,??,Mouse X,Mouse Y,??,?? :i ??,INKEY,Read high address,Read OSHWM (PAGE),Read MEMTOP (HIMEM),Read MEMTOP for MODE,Read POS/VPOS D Read MODE/CHR$ N Graph x1, (internal coords),Graph y1, (internal coords),Graph x2, (internal coords),Graph y2, (internal coords),Text x1,Text y1,Text x2,Text y2 X Graphics origin X,(external coords),Graphics origin Y,(external coords),GXPOS,(external coords),GYPOS,(external coords),Last GXPOS,(external coords),Last GYPOS,(external coords) b POS,VPOS,POINT at gcursor,VDU queue 8/WS,VDU queue 7/WS,VDU queue 6/WS,VDU queue 5/WS,VDU queue 4,VDU queue 3,VDU queue 2,VDU queue 1,VDU queue 0 l5 GXPOS,(internal coords),GYPOS,(internal coords) v Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS  Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS,Graphics WS  6845 cursor address,,Text window size,,MSB of HIMEM,Bytes/char,Addr of TopLeft,,Bytes/screen row,,Screen size in pages,Current mode,Screen map M Text foreground,Text background,Graphics foreground,Graphics background  Graphics AND,Graphics EOR,Control code vector,,Last 6845 Start setting,Number of colours,Pixels/byte,Right pixel mask,Left pixel mask,Input cursor X,Input cursor Y  "Ttxt char | VDU 23,16","Font flags | VDU 23,6",Font &20/&30 | Dot state,Font &40/&50 | ECF number,Font &60/&70 | ECF frgnd,Font &80/&90 | ECF bkgnd,Font &A0/&B0 | X=81?,Font &C0/&D0 | GCOL bkgnd,Font &E0/&F0 | GCOL bkgnd  Palette 0,Palette 1,Palette 2,Palette 3,Palette 4,Palette 5,Palette 6,Palette 7,Palette 8,Palette 9,Palette 10,Palette 11,Palette 12,Palette 13,Palette 14,Palette 15,Unused x ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,  ,,,,,,,,,,,,,, t Addr of OS vars,,Addr of ROM pointer table,,Addr of ROM info table,,Addr of key trans table,,Addr of VDU vars, ^ ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,