APPENDIX ELEVEN 832-959 340-3BF IOCBs IOCB Address Chart Label IOCB0 IOCB1 IOCB2 IOCB3 IOCB4 IOCB5 IOCB6 IOCB7 Use ICHID 832 848 864 880 896 912 928 944 index ICDNO 833 849 865 881 897 913 929 945 dev # ICCOM 834 850 866 882 898 914 930 946 command ICSTA 835 851 867 883 899 915 931 947 status ICBAL/H 836 852 868 884 900 916 932 948 buffer ICPTL/H 838 854 870 886 902 918 934 950 put buf ICBLL/H 840 856 872 888 904 920 936 952 buf len ICAX1 842 858 874 890 906 922 938 954 task # ICAX2 843 859 875 891 907 923 939 955 aux2 ICAX3 844 860 876 892 908 924 940 956 sectorl ICAX4 845 861 877 893 909 925 941 957 sectorh ICAX5 846 862 878 894 910 926 942 958 byte # ICAX6 847 863 879 895 911 927 943 959 aux6 1152-1405 480-57D STACK A 254-byte BASIC syntax checking stack; $480 is a BASIC input index, $481 an output index, $482 a program counter. 1536 600 Page Six Any I/O greater than 128 bytes in BASIC will wipe out the bot- tom 128 bytes in page six. This is because the I/O buffer starts at 1408 ($580), a mere 128 bytes below page six. 1792 700 DOS Here's a quick routine to read a disk directory in BASIC: 5 DIM R$(20) 10 OPEN #4,6,0,"D:*.*" 20 INPUT #4,R$:TRAP 60 30 PRINT R$ 40 IF R$(10,16)="SECTORS" THEN 100 50 GOTO 20 60 PRINT R$ 100 CLOSE #4 For a quick method of inputting text into a tile, choose Copy from the DOS menu and answer E:,D:filename. You can now type directly to a disk file. End each line with RETURN and end the file with CTRL-3. You can change with backspace, but each line must have a RETURN in order to be accepted. Another Digression: Disk Sectors In a normal disk sector there are 128 bytes, 0 through 127. The last three bytes are reserved by DOS for: