10 REM PC-BASIC test
20 REM IOCTL$ function
30 OPEN "OUTPUT.TXT" FOR OUTPUT AS 1
40 ON ERROR GOTO 10000
50 PRINT#1, IOCTL$
60 PRINT#1, IOCTL$(
70 PRINT#1, IOCTL$("ABC"
80 PRINT#1, IOCTL$(1
90 PRINT#1, IOCTL$(1.5
100 PRINT#1, IOCTL$(-1)
110 PRINT#1, IOCTL$(1)
120 PRINT#1, IOCTL$(-1.5)
130 PRINT#1, IOCTL$(1.5)
140 PRINT#1, IOCTL$(-1.5D2)
150 PRINT#1, IOCTL$(1.5D2)
160 PRINT#1, IOCTL$("ABC")
200 PRINT#1, IOCTL$(0)
210 PRINT#1, IOCTL$(256)
220 PRINT#1, IOCTL$(32768)
230 PRINT#1, IOCTL$(65536)
240 PRINT#1, IOCTL$(1.701412E+38)
250 PRINT#1, IOCTL$(1.701411834604692D+38)
300 PRINT#1, IOCTL$(1)
310 PRINT#1, IOCTL$(#1)
320 PRINT#1, IOCTL$(1,1)
330 PRINT#1, IOCTL $(1)
340 PRINT#1, IOCTL$ (1)
350 PRINT#1, IOCTL $ (1)
9999 END
10000 PRINT#1, ERR, ERL
10010 RESUME NEXT
