10
REM > BLib.MOS 1.00 09Aug1998
20
:
30
REM General MOS Interface Routines
40
REM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50
:
60
REM Osbyte Calls
70
REM ~~~~~~~~~~~~
80
:
90
REM FNbyte returns the single byte in the X register for the named call.
100
REM FNfx returns the two-byte value held in XY.
110
DEF
FN
byte(A%,X%,Y%)=((
USR
&FFF4)
AND
&FF00)
DIV
256
120
DEF
FN
fx(A%,X%):
LOCAL
Y%:Y%=X%
DIV
256:=((
USR
&FFF4)
AND
&FFFF00)
DIV
256
Download MOS
BBC BASIC detokeniser and syntax highlighter by Ben Ryves.