home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / documentation / swis_2 / SWIs / OS < prev    next >
Unknown  |  1997-10-10  |  373.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% gt2 Kopftext: 'HELP(' default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 48 45 4c 50 28 00 00 00 | fa 00 00 00 ff ff ff ff |HELP(...|........|
|00000010| 2c 00 00 00 00 fd ff ff | 00 00 00 00 a8 07 00 00 |,.......|........|
|00000020| 00 01 00 00 00 00 00 00 | 24 00 00 00 44 49 52 24 |........|$...DIR$|
|00000030| b0 07 00 00 b0 07 00 00 | dc 07 00 00 47 fd ff ff |........|....G...|
|00000040| 21 8a 09 d7 90 02 00 00 | 13 01 00 00 00 00 00 00 |!.......|........|
|00000050| 41 44 46 53 5f 00 00 00 | 74 23 00 00 47 fd ff ff |ADFS_...|t#..G...|
|00000060| 85 8c 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000070| 42 61 73 69 63 54 72 61 | 6e 73 5f 00 d4 23 00 00 |BasicTra|ns_..#..|
|00000080| 47 fd ff ff ab 8c 09 d7 | cc 00 00 00 13 01 00 00 |G.......|........|
|00000090| 00 00 00 00 42 75 66 66 | 65 72 5f 00 64 2b 00 00 |....Buff|er_.d+..|
|000000a0| 47 fd ff ff 7f 8d 09 d7 | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|000000b0| 00 00 00 00 43 61 63 68 | 65 5f 00 00 2c 2c 00 00 |....Cach|e_..,,..|
|000000c0| 47 fd ff ff c7 8d 09 d7 | 48 03 00 00 13 01 00 00 |G.......|H.......|
|000000d0| 00 00 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |....Colo|urTrans_|
|000000e0| 00 00 00 00 44 4e 00 00 | 47 fd ff ff 7c 90 09 d7 |....DN..|G...|...|
|000000f0| 50 00 00 00 13 01 00 00 | 00 00 00 00 44 65 62 75 |P.......|....Debu|
|00000100| 67 67 65 72 5f 00 00 00 | 08 50 00 00 47 fd ff ff |gger_...|.P..G...|
|00000110| d7 90 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000120| 44 65 76 69 63 65 46 53 | 5f 00 00 00 c4 50 00 00 |DeviceFS|_....P..|
|00000130| 47 fd ff ff 0e 91 09 d7 | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|00000140| 00 00 00 00 44 4d 41 5f | 00 00 00 00 a4 51 00 00 |....DMA_|.....Q..|
|00000150| 47 fd ff ff 2f 91 09 d7 | 9c 00 00 00 13 01 00 00 |G.../...|........|
|00000160| 00 00 00 00 44 4f 53 46 | 53 5f 00 00 4c 5d 00 00 |....DOSF|S_..L]..|
|00000170| 47 fd ff ff d4 91 09 d7 | 6c 00 00 00 13 01 00 00 |G.......|l.......|
|00000180| 00 00 00 00 44 72 61 77 | 46 69 6c 65 5f 00 00 00 |....Draw|File_...|
|00000190| 44 64 00 00 47 fd ff ff | 58 92 09 d7 08 02 00 00 |Dd..G...|X.......|
|000001a0| 13 01 00 00 00 00 00 00 | 44 72 61 77 5f 00 00 00 |........|Draw_...|
|000001b0| e0 76 00 00 47 fd ff ff | 57 94 09 d7 20 04 00 00 |.v..G...|W... ...|
|000001c0| 13 01 00 00 00 00 00 00 | 45 63 6f 6e 65 74 5f 00 |........|Econet_.|
|000001d0| a4 9a 00 00 47 fd ff ff | b0 97 09 d7 64 00 00 00 |....G...|....d...|
|000001e0| 13 01 00 00 00 00 00 00 | 65 76 65 6e 74 5f 00 00 |........|event_..|
|000001f0| 64 a4 00 00 47 fd ff ff | 45 98 09 d7 2c 05 00 00 |d...G...|E...,...|
|00000200| 13 01 00 00 00 00 00 00 | 46 69 6c 65 43 6f 72 65 |........|FileCore|
|00000210| 5f 00 00 00 08 fe 00 00 | 47 fd ff ff 51 a6 09 d7 |_.......|G...Q...|
|00000220| 18 04 00 00 13 01 00 00 | 00 00 00 00 46 6f 6e 74 |........|....Font|
|00000230| 5f 00 00 00 38 2e 01 00 | 47 fd ff ff 54 b2 09 d7 |_...8...|G...T...|
|00000240| e8 00 00 00 13 01 00 00 | 00 00 00 00 48 6f 75 72 |........|....Hour|
|00000250| 67 6c 61 73 73 5f 00 00 | 8c 34 01 00 47 fd ff ff |glass_..|.4..G...|
|00000260| 8a b5 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000270| 49 49 43 5f 00 00 00 00 | dc 34 01 00 47 fd ff ff |IIC_....|.4..G...|
|00000280| eb b5 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|00000290| 46 53 4c 6f 63 6b 5f 00 | 58 35 01 00 47 fd ff ff |FSLock_.|X5..G...|
|000002a0| 5d b6 09 d7 50 01 00 00 | 13 01 00 00 00 00 00 00 |]...P...|........|
|000002b0| 66 73 79 73 5f 00 00 00 | 44 45 01 00 47 fd ff ff |fsys_...|DE..G...|
|000002c0| 55 ba 09 d7 40 01 00 00 | 13 01 00 00 00 00 00 00 |U...@...|........|
|000002d0| 4d 65 73 73 61 67 65 54 | 72 61 6e 73 5f 00 00 00 |MessageT|rans_...|
|000002e0| 80 57 01 00 47 fd ff ff | 6d be 09 d7 4c 00 00 00 |.W..G...|m...L...|
|000002f0| 13 01 00 00 00 00 00 00 | 46 50 45 6d 75 6c 61 74 |........|FPEmulat|
|00000300| 6f 72 5f 00 68 58 01 00 | 47 fd ff ff 69 bf 09 d7 |or_.hX..|G...i...|
|00000310| d4 02 00 00 13 01 00 00 | 00 00 00 00 49 6d 61 67 |........|....Imag|
|00000320| 65 45 6e 74 72 79 5f 00 | 04 7c 01 00 47 fd ff ff |eEntry_.|.|..G...|
|00000330| 39 cb 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |9...,...|........|
|00000340| 52 61 6d 46 53 5f 00 00 | 78 7c 01 00 47 fd ff ff |RamFS_..|x|..G...|
|00000350| 82 cc 09 d7 0c 02 00 00 | 13 01 00 00 00 00 00 00 |........|........|
|00000360| 73 65 72 76 69 63 65 5f | 00 00 00 00 0c b3 01 00 |service_|........|
|00000370| 47 fd ff ff e1 d7 09 d7 | 4c 00 00 00 13 01 00 00 |G.......|L.......|
|00000380| 00 00 00 00 53 63 72 65 | 65 6e 42 6c 61 6e 6b 65 |....Scre|enBlanke|
|00000390| 72 5f 00 00 8c b6 01 00 | 47 fd ff ff 18 d9 09 d7 |r_......|G.......|
|000003a0| 80 00 00 00 13 01 00 00 | 00 00 00 00 53 63 72 65 |........|....Scre|
|000003b0| 65 6e 4d 6f 64 65 73 5f | 00 00 00 00 b8 bb 01 00 |enModes_|........|
|000003c0| 47 fd ff ff ed db 09 d7 | 2c 00 00 00 13 01 00 00 |G.......|,.......|
|000003d0| 00 00 00 00 53 68 61 72 | 65 64 43 4c 69 62 72 61 |....Shar|edCLibra|
|000003e0| 72 79 5f 00 34 bc 01 00 | 47 fd ff ff 67 dd 09 d7 |ry_.4...|G...g...|
|000003f0| 2c 00 00 00 13 01 00 00 | 00 00 00 00 53 68 65 6c |,.......|....Shel|
|00000400| 6c 5f 00 00 8c bc 01 00 | 47 fd ff ff 82 de 09 d7 |l_......|G.......|
|00000410| 18 02 00 00 13 01 00 00 | 00 00 00 00 53 6f 75 6e |........|....Soun|
|00000420| 64 5f 00 00 b4 d6 01 00 | 47 fd ff ff cf e8 09 d7 |d_......|G.......|
|00000430| 2c 00 00 00 13 01 00 00 | 00 00 00 00 53 75 70 65 |,.......|....Supe|
|00000440| 72 5f 00 00 10 d7 01 00 | 47 fd ff ff 97 e9 09 d7 |r_......|G.......|
|00000450| 54 00 00 00 13 01 00 00 | 00 00 00 00 73 77 69 5f |T.......|....swi_|
|00000460| 00 00 00 00 6c e0 01 00 | 47 fd ff ff a9 ea 09 d7 |....l...|G.......|
|00000470| 2c 00 00 00 13 01 00 00 | 00 00 00 00 53 71 75 61 |,.......|....Squa|
|00000480| 73 68 5f 00 c8 e0 01 00 | 47 fd ff ff 7c eb 09 d7 |sh_.....|G...|...|
|00000490| e0 01 00 00 13 01 00 00 | 00 00 00 00 54 65 72 72 |........|....Terr|
|000004a0| 69 74 6f 72 79 5f 00 00 | ec ed 01 00 47 fd ff ff |itory_..|....G...|
|000004b0| 58 f0 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |X...,...|........|
|000004c0| 4e 65 74 46 53 5f 00 00 | e8 ee 01 00 47 fd ff ff |NetFS_..|....G...|
|000004d0| 10 f1 09 d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |....,...|........|
|000004e0| 4e 65 74 50 72 69 6e 74 | 5f 00 00 00 80 ef 01 00 |NetPrint|_.......|
|000004f0| 47 fd ff ff 0b f2 09 d7 | ac 0d 00 00 13 01 00 00 |G.......|........|
|00000500| 00 00 00 00 4f 53 5f 00 | a4 1e 05 00 47 ff ff ff |....OS_.|....G...|
|00000510| 29 c0 c0 cd 82 01 00 00 | 13 00 00 00 00 00 00 00 |).......|........|
|00000520| 75 73 65 72 00 00 00 00 | 28 20 05 00 47 fd ff ff |user....|( ..G...|
|00000530| 01 48 0a d7 c4 00 00 00 | 13 01 00 00 00 00 00 00 |.H......|........|
|00000540| 50 61 72 61 6c 6c 65 6c | 5f 00 00 00 2c 28 05 00 |Parallel|_...,(..|
|00000550| 47 fd ff ff 9f 48 0a d7 | 74 00 00 00 13 01 00 00 |G....H..|t.......|
|00000560| 00 00 00 00 50 44 72 69 | 76 65 72 5f 00 00 00 00 |....PDri|ver_....|
|00000570| f4 2c 05 00 47 fd ff ff | ed 48 0a d7 2c 00 00 00 |.,..G...|.H..,...|
|00000580| 13 01 00 00 00 00 00 00 | 50 44 75 6d 70 65 72 5f |........|PDumper_|
|00000590| 00 00 00 00 94 2d 05 00 | 47 fd ff ff 05 49 0a d7 |.....-..|G....I..|
|000005a0| 2c 00 00 00 13 01 00 00 | 00 00 00 00 50 6f 64 75 |,.......|....Podu|
|000005b0| 6c 65 5f 00 9c 2e 05 00 | 47 fd ff ff 20 c0 a2 cd |le_.....|G... ...|
|000005c0| 5d 03 00 00 13 00 00 00 | 00 00 00 00 21 52 6f 6f |].......|....!Roo|
|000005d0| 74 00 00 00 fc 31 05 00 | 47 fd ff ff 56 49 0a d7 |t....1..|G...VI..|
|000005e0| 4c 00 00 00 13 01 00 00 | 00 00 00 00 4a 6f 79 73 |L.......|....Joys|
|000005f0| 74 69 63 6b 5f 00 00 00 | b0 34 05 00 47 fd ff ff |tick_...|.4..G...|
|00000600| 96 49 0a d7 d4 01 00 00 | 13 01 00 00 00 00 00 00 |.I......|........|
|00000610| 4a 50 45 47 5f 00 00 00 | f0 4b 05 00 47 fd ff ff |JPEG_...|.K..G...|
|00000620| 8c 4a 0a d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |.J..,...|........|
|00000630| 52 65 73 6f 75 72 63 65 | 46 53 5f 00 5c 4c 05 00 |Resource|FS_.\L..|
|00000640| 47 fd ff ff b6 4a 0a d7 | 2c 00 00 00 13 01 00 00 |G....J..|,.......|
|00000650| 00 00 00 00 53 43 53 49 | 5f 00 00 00 04 4d 05 00 |....SCSI|_....M..|
|00000660| 47 fd ff ff ce 4a 0a d7 | 5c 00 00 00 13 01 00 00 |G....J..|\.......|
|00000670| 00 00 00 00 43 44 46 53 | 5f 00 00 00 88 51 05 00 |....CDFS|_....Q..|
|00000680| 47 fd ff ff 13 4b 0a d7 | 50 03 00 00 13 01 00 00 |G....K..|P.......|
|00000690| 00 00 00 00 43 44 5f 00 | 3c 6c 05 00 47 fd ff ff |....CD_.|<l..G...|
|000006a0| c9 4c 0a d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |.L..,...|........|
|000006b0| 41 54 41 50 49 5f 00 00 | b8 6c 05 00 47 fd ff ff |ATAPI_..|.l..G...|
|000006c0| 86 4d 0a d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |.M..,...|........|
|000006d0| 52 65 6d 6f 74 65 50 72 | 69 6e 74 65 72 53 75 70 |RemotePr|interSup|
|000006e0| 70 6f 72 74 5f 00 00 00 | a8 6d 05 00 47 fd ff ff |port_...|.m..G...|
|000006f0| a7 4d 0a d7 2c 00 00 00 | 13 01 00 00 00 00 00 00 |.M..,...|........|
|00000700| 4d 61 6b 65 50 53 46 6f | 6e 74 5f 00 30 6e 05 00 |MakePSFo|nt_.0n..|
|00000710| 47 fd ff ff d5 4d 0a d7 | 2c 00 00 00 13 01 00 00 |G....M..|,.......|
|00000720| 00 00 00 00 50 6f 72 74 | 61 62 6c 65 5f 00 00 00 |....Port|able_...|
|00000730| d0 6e 05 00 47 fd ff ff | 9d 85 c0 cd a5 07 00 00 |.n..G...|........|
|00000740| 03 00 00 00 00 00 00 00 | 61 62 6f 75 74 00 00 00 |........|about...|
|00000750| 78 76 05 00 47 fd ff ff | 2f e9 47 d4 de 02 00 00 |xv..G...|/.G.....|
|00000760| 13 00 00 00 00 00 00 00 | 43 6f 6e 74 72 69 62 75 |........|Contribu|
|00000770| 74 6f 72 73 00 00 00 00 | 58 79 05 00 47 fd ff ff |tors....|Xy..G...|
|00000780| 3e 4e 0a d7 a4 04 00 00 | 13 01 00 00 00 00 00 00 |>N......|........|
|00000790| 46 53 45 6e 74 72 79 5f | 00 00 00 00 e8 ba 05 00 |FSEntry_|........|
|000007a0| 47 fd ff ff 13 53 0a d7 | ec 00 00 00 13 01 00 00 |G....S..|........|
|000007b0| 00 00 00 00 76 65 63 74 | 6f 72 5f 00 34 d7 05 00 |....vect|or_.4...|
|000007c0| 47 fc ff ff c9 28 47 d4 | 84 00 00 00 33 00 00 00 |G....(G.|....3...|
|000007d0| 00 00 00 00 21 50 72 65 | 00 00 00 00 44 49 52 24 |....!Pre|....DIR$|
|000007e0| 90 02 00 00 90 02 00 00 | 6c 0a 00 00 47 fd ff ff |........|l...G...|
|000007f0| 12 5e a4 ce 19 01 00 00 | 13 00 00 00 00 00 00 00 |.^......|........|
|00000800| 21 52 6f 6f 74 00 00 00 | 88 0b 00 00 46 ff ff ff |!Root...|....F...|
|00000810| 0f 10 a3 d7 09 01 00 00 | 13 00 00 00 00 00 00 00 |........|........|
|00000820| 43 6f 6e 74 72 6f 6c 6c | 65 72 54 79 70 65 00 00 |Controll|erType..|
|00000830| 94 0c 00 00 46 ff ff ff | 2c 98 ab d7 9d 00 00 00 |....F...|,.......|
|00000840| 13 00 00 00 00 00 00 00 | 44 72 69 76 65 73 00 00 |........|Drives..|
|00000850| 34 0d 00 00 46 ff ff ff | b5 aa ab d7 a9 00 00 00 |4...F...|........|
|00000860| 13 00 00 00 00 00 00 00 | 44 65 73 63 72 69 62 65 |........|Describe|
|00000870| 44 69 73 63 00 00 00 00 | e0 0d 00 00 46 ff ff ff |Disc....|....F...|
|00000880| 4e af ab d7 9c 00 00 00 | 13 00 00 00 00 00 00 00 |N.......|........|
|00000890| 44 69 73 63 4f 70 00 00 | 7c 0e 00 00 46 ff ff ff |DiscOp..||...F...|
|000008a0| 5c c0 ab d7 7a 00 00 00 | 13 00 00 00 00 00 00 00 |\...z...|........|
|000008b0| 45 43 43 53 41 6e 64 52 | 65 74 72 69 65 73 00 00 |ECCSAndR|etries..|
|000008c0| f8 0e 00 00 46 ff ff ff | aa c4 ab d7 a3 00 00 00 |....F...|........|
|000008d0| 13 00 00 00 00 00 00 00 | 46 72 65 65 53 70 61 63 |........|FreeSpac|
|000008e0| 65 00 00 00 9c 0f 00 00 | 46 ff ff ff 1c ff ac d7 |e.......|F.......|
|000008f0| 72 02 00 00 13 00 00 00 | 00 00 00 00 48 44 43 00 |r.......|....HDC.|
|00000900| 10 12 00 00 46 ff ff ff | 54 39 ac d7 a9 02 00 00 |....F...|T9......|
|00000910| 13 00 00 00 00 00 00 00 | 49 44 45 55 73 65 72 4f |........|IDEUserO|
|00000920| 70 00 00 00 bc 14 00 00 | 46 ff ff ff 1b 44 ac d7 |p.......|F....D..|
|00000930| 9c 00 00 00 13 00 00 00 | 00 00 00 00 4d 69 73 63 |........|....Misc|
|00000940| 4f 70 00 00 58 15 00 00 | 46 ff ff ff d2 9c ac d7 |Op..X...|F.......|
|00000950| 3c 03 00 00 13 00 00 00 | 00 00 00 00 50 6f 77 65 |<.......|....Powe|
|00000960| 72 43 6f 6e 74 72 6f 6c | 00 00 00 00 94 18 00 00 |rControl|........|
|00000970| 46 ff ff ff 66 c4 ac d7 | 64 02 00 00 13 00 00 00 |F...f...|d.......|
|00000980| 00 00 00 00 52 65 74 72 | 69 65 73 00 f8 1a 00 00 |....Retr|ies.....|
|00000990| 46 ff ff ff 6e d8 ac d7 | d8 01 00 00 13 00 00 00 |F...n...|........|
|000009a0| 00 00 00 00 53 65 74 49 | 44 45 43 6f 6e 74 72 6f |....SetI|DEContro|
|000009b0| 6c 6c 65 72 00 00 00 00 | d0 1c 00 00 46 ff ff ff |ller....|....F...|
|000009c0| 85 ef ac d7 70 04 00 00 | 13 00 00 00 00 00 00 00 |....p...|........|
|000009d0| 56 65 74 46 6f 72 6d 61 | 74 00 00 00 40 21 00 00 |VetForma|t...@!..|
|000009e0| 46 ff ff ff 48 4b a6 fa | 6a 00 00 00 13 00 00 00 |F...HK..|j.......|
|000009f0| 00 00 00 00 46 6c 70 50 | 72 6f 63 65 73 73 44 43 |....FlpP|rocessDC|
|00000a00| 42 00 00 00 ac 21 00 00 | 47 ff ff ff 46 42 a4 ce |B....!..|G...FB..|
|00000a10| 7e 00 00 00 13 00 00 00 | 00 00 00 00 4c 6f 63 6b |~.......|....Lock|
|00000a20| 49 44 45 00 2c 22 00 00 | 47 ff ff ff 68 4e a4 ce |IDE.,"..|G...hN..|
|00000a30| a0 00 00 00 13 00 00 00 | 00 00 00 00 53 65 63 74 |........|....Sect|
|00000a40| 6f 72 4f 70 00 00 00 00 | cc 22 00 00 47 ff ff ff |orOp....|."..G...|
|00000a50| 74 57 a4 ce a6 00 00 00 | 13 00 00 00 00 00 00 00 |tW......|........|
|00000a60| 46 72 65 65 53 70 61 63 | 65 36 34 00 44 41 54 41 |FreeSpac|e64.DATA|
|00000a70| 19 01 00 00 41 44 46 53 | 0a 23 50 72 65 66 69 78 |....ADFS|.#Prefix|
|00000a80| 20 41 44 46 53 5f 0a 23 | 50 61 72 65 6e 74 20 21 | ADFS_.#|Parent !|
|00000a90| 52 6f 6f 74 0a 23 54 61 | 62 6c 65 20 43 6f 6c 75 |Root.#Ta|ble Colu|
|00000aa0| 6d 6e 73 20 32 0a 3c 43 | 6f 6e 74 72 6f 6c 6c 65 |mns 2.<C|ontrolle|
|00000ab0| 72 54 79 70 65 3e 0a 3c | 44 65 73 63 72 69 62 65 |rType>.<|Describe|
|00000ac0| 44 69 73 63 3e 0a 3c 44 | 69 73 63 4f 70 3e 0a 3c |Disc>.<D|iscOp>.<|
|00000ad0| 44 72 69 76 65 73 3e 0a | 3c 45 43 43 53 41 6e 64 |Drives>.|<ECCSAnd|
|00000ae0| 52 65 74 72 69 65 73 3e | 0a 3c 46 6c 70 50 72 6f |Retries>|.<FlpPro|
|00000af0| 63 65 73 73 44 43 42 3e | 0a 3c 46 72 65 65 53 70 |cessDCB>|.<FreeSp|
|00000b00| 61 63 65 3e 0a 3c 46 72 | 65 65 53 70 61 63 65 36 |ace>.<Fr|eeSpace6|
|00000b10| 34 3e 0a 3c 48 44 43 3e | 0a 3c 49 44 45 55 73 65 |4>.<HDC>|.<IDEUse|
|00000b20| 72 4f 70 3e 0a 3c 4c 6f | 63 6b 49 44 45 3e 0a 3c |rOp>.<Lo|ckIDE>.<|
|00000b30| 4d 69 73 63 4f 70 3e 0a | 3c 50 6f 77 65 72 43 6f |MiscOp>.|<PowerCo|
|00000b40| 6e 74 72 6f 6c 3e 0a 3c | 52 65 74 72 69 65 73 3e |ntrol>.<|Retries>|
|00000b50| 0a 3c 53 65 63 74 6f 72 | 4f 70 3e 0a 3c 53 65 74 |.<Sector|Op>.<Set|
|00000b60| 49 44 45 43 6f 6e 74 72 | 6f 6c 6c 65 72 3e 0a 3c |IDEContr|oller>.<|
|00000b70| 56 65 74 46 6f 72 6d 61 | 74 3e 0a 23 45 6e 64 54 |VetForma|t>.#EndT|
|00000b80| 61 62 6c 65 0a 00 00 00 | 44 41 54 41 09 01 00 00 |able....|DATA....|
|00000b90| 41 44 46 53 5f 43 6f 6e | 74 72 6f 6c 6c 65 72 54 |ADFS_Con|trollerT|
|00000ba0| 79 70 65 20 28 26 34 30 | 32 34 38 29 0a 3d 3e 09 |ype (&40|248).=>.|
|00000bb0| 52 30 20 3d 09 64 72 69 | 76 65 20 6e 75 6d 62 65 |R0 =.dri|ve numbe|
|00000bc0| 72 20 28 30 2d 37 29 0a | 3c 3d 09 52 30 20 3d 09 |r (0-7).|<=.R0 =.|
|00000bd0| 63 6f 6e 74 72 6f 6c 6c | 65 72 20 74 79 70 65 3a |controll|er type:|
|00000be0| 0a 09 20 09 30 20 3d 3e | 20 64 69 73 63 20 6e 6f |.. .0 =>| disc no|
|00000bf0| 74 20 70 72 65 73 65 6e | 74 0a 09 20 09 31 20 3d |t presen|t.. .1 =|
|00000c00| 3e 20 31 37 37 32 0a 09 | 20 09 32 20 3d 3e 20 37 |> 1772..| .2 => 7|
|00000c10| 31 30 2f 37 31 31 0a 09 | 20 09 33 20 3d 3e 20 53 |10/711..| .3 => S|
|00000c20| 54 35 30 36 0a 09 20 09 | 34 20 3d 3e 20 49 44 45 |T506.. .|4 => IDE|
|00000c30| 0a 0a 54 68 69 73 20 63 | 61 6c 6c 20 72 65 74 75 |..This c|all retu|
|00000c40| 72 6e 73 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 6c |rns the |controll|
|00000c50| 65 72 20 74 79 70 65 20 | 6f 66 20 74 68 65 20 67 |er type |of the g|
|00000c60| 69 76 65 6e 20 64 72 69 | 76 65 2c 20 61 6e 64 20 |iven dri|ve, and |
|00000c70| 69 73 20 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |is not a|vailable|
|00000c80| 20 75 6e 64 65 72 20 52 | 49 53 43 20 4f 53 20 32 | under R|ISC OS 2|
|00000c90| 2e 00 00 00 44 41 54 41 | 9d 00 00 00 41 44 46 53 |....DATA|....ADFS|
|00000ca0| 5f 44 72 69 76 65 73 20 | 20 28 26 34 30 32 34 32 |_Drives | (&40242|
|00000cb0| 29 0a 23 50 61 72 65 6e | 74 20 41 44 46 53 5f 0a |).#Paren|t ADFS_.|
|00000cc0| 54 68 69 73 20 53 57 49 | 20 63 61 6c 6c 73 20 3c |This SWI| calls <|
|00000cd0| 46 69 6c 65 43 6f 72 65 | 5f 44 72 69 76 65 73 3e |FileCore|_Drives>|
|00000ce0| 2c 20 61 66 74 65 72 20 | 66 69 72 73 74 20 73 65 |, after |first se|
|00000cf0| 74 74 69 6e 67 20 52 38 | 20 74 6f 20 70 6f 69 6e |tting R8| to poin|
|00000d00| 74 20 74 6f 20 74 68 65 | 20 46 69 6c 65 43 6f 72 |t to the| FileCor|
|00000d10| 65 20 69 6e 73 74 61 6e | 63 65 20 70 72 69 76 61 |e instan|ce priva|
|00000d20| 74 65 20 77 6f 72 64 20 | 66 6f 72 20 41 44 46 53 |te word |for ADFS|
|00000d30| 2e 00 00 00 44 41 54 41 | a9 00 00 00 41 44 46 53 |....DATA|....ADFS|
|00000d40| 5f 44 65 73 63 72 69 62 | 65 44 69 73 63 20 28 26 |_Describ|eDisc (&|
|00000d50| 34 30 32 34 35 29 0a 23 | 50 61 72 65 6e 74 20 41 |40245).#|Parent A|
|00000d60| 44 46 53 5f 0a 54 68 69 | 73 20 53 57 49 20 63 61 |DFS_.Thi|s SWI ca|
|00000d70| 6c 6c 73 20 3c 46 69 6c | 65 43 6f 72 65 5f 44 65 |lls <Fil|eCore_De|
|00000d80| 73 63 72 69 62 65 44 69 | 73 63 3e 2c 20 61 66 74 |scribeDi|sc>, aft|
|00000d90| 65 72 20 66 69 72 73 74 | 20 73 65 74 74 69 6e 67 |er first| setting|
|00000da0| 20 52 38 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 | R8 to p|oint to |
|00000db0| 74 68 65 20 46 69 6c 65 | 43 6f 72 65 20 69 6e 73 |the File|Core ins|
|00000dc0| 74 61 6e 63 65 20 70 72 | 69 76 61 74 65 20 77 6f |tance pr|ivate wo|
|00000dd0| 72 64 20 66 6f 72 20 41 | 44 46 53 2e 20 00 00 00 |rd for A|DFS. ...|
|00000de0| 44 41 54 41 9c 00 00 00 | 41 44 46 53 5f 44 69 73 |DATA....|ADFS_Dis|
|00000df0| 63 4f 70 20 28 26 34 30 | 32 34 30 29 0a 23 50 61 |cOp (&40|240).#Pa|
|00000e00| 72 65 6e 74 20 41 44 46 | 53 5f 0a 54 68 69 73 20 |rent ADF|S_.This |
|00000e10| 53 57 49 20 63 61 6c 6c | 73 20 3c 46 69 6c 65 43 |SWI call|s <FileC|
|00000e20| 6f 72 65 5f 44 69 73 63 | 4f 70 3e 2c 20 61 66 74 |ore_Disc|Op>, aft|
|00000e30| 65 72 20 66 69 72 73 74 | 20 73 65 74 74 69 6e 67 |er first| setting|
|00000e40| 20 52 38 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 | R8 to p|oint to |
|00000e50| 74 68 65 20 46 69 6c 65 | 43 6f 72 65 20 69 6e 73 |the File|Core ins|
|00000e60| 74 61 6e 63 65 20 70 72 | 69 76 61 74 65 20 77 6f |tance pr|ivate wo|
|00000e70| 72 64 20 66 6f 72 20 41 | 44 46 53 2e 44 41 54 41 |rd for A|DFS.DATA|
|00000e80| 7a 00 00 00 41 44 46 53 | 5f 45 43 43 53 41 6e 64 |z...ADFS|_ECCSAnd|
|00000e90| 52 65 74 72 69 65 73 20 | 20 28 26 34 30 32 35 30 |Retries | (&40250|
|00000ea0| 29 0a 23 50 61 72 65 6e | 74 20 41 44 46 53 5f 0a |).#Paren|t ADFS_.|
|00000eb0| 54 68 69 73 20 63 61 6c | 6c 20 69 73 20 66 6f 72 |This cal|l is for|
|00000ec0| 20 69 6e 74 65 72 6e 61 | 6c 20 75 73 65 20 6f 6e | interna|l use on|
|00000ed0| 6c 79 2c 20 61 6e 64 20 | 6e 6f 74 20 61 76 61 69 |ly, and |not avai|
|00000ee0| 6c 61 62 6c 65 20 75 6e | 64 65 72 20 52 49 53 43 |lable un|der RISC|
|00000ef0| 20 4f 53 20 32 2e 00 00 | 44 41 54 41 a3 00 00 00 | OS 2...|DATA....|
|00000f00| 41 44 46 53 5f 46 72 65 | 65 53 70 61 63 65 20 20 |ADFS_Fre|eSpace |
|00000f10| 28 26 34 30 32 34 33 29 | 0a 23 50 61 72 65 6e 74 |(&40243)|.#Parent|
|00000f20| 20 41 44 46 53 5f 0a 54 | 68 69 73 20 53 57 49 20 | ADFS_.T|his SWI |
|00000f30| 63 61 6c 6c 73 20 3c 46 | 69 6c 65 43 6f 72 65 5f |calls <F|ileCore_|
|00000f40| 46 72 65 65 53 70 61 63 | 65 3e 2c 20 61 66 74 65 |FreeSpac|e>, afte|
|00000f50| 72 20 66 69 72 73 74 20 | 73 65 74 74 69 6e 67 20 |r first |setting |
|00000f60| 52 38 20 74 6f 20 70 6f | 69 6e 74 20 74 6f 20 74 |R8 to po|int to t|
|00000f70| 68 65 20 46 69 6c 65 43 | 6f 72 65 20 69 6e 73 74 |he FileC|ore inst|
|00000f80| 61 6e 63 65 20 70 72 69 | 76 61 74 65 20 77 6f 72 |ance pri|vate wor|
|00000f90| 64 20 66 6f 72 20 41 44 | 46 53 2e 00 44 41 54 41 |d for AD|FS..DATA|
|00000fa0| 72 02 00 00 41 44 46 53 | 5f 48 44 43 20 20 28 26 |r...ADFS|_HDC (&|
|00000fb0| 34 30 32 34 31 29 0a 23 | 50 61 72 65 6e 74 20 41 |40241).#|Parent A|
|00000fc0| 44 46 53 5f 0a 3d 3e 09 | 52 32 20 3d 09 61 64 64 |DFS_.=>.|R2 =.add|
|00000fd0| 72 65 73 73 20 6f 66 20 | 61 6c 74 65 72 6e 61 74 |ress of |alternat|
|00000fe0| 69 76 65 20 68 61 72 64 | 20 64 69 73 63 20 63 6f |ive hard| disc co|
|00000ff0| 6e 74 72 6f 6c 6c 65 72 | 0a 09 52 33 20 3d 09 61 |ntroller|..R3 =.a|
|00001000| 64 64 72 65 73 73 20 6f | 66 20 70 6f 6c 6c 20 6c |ddress o|f poll l|
|00001010| 6f 63 61 74 69 6f 6e 20 | 66 6f 72 20 49 52 51 2f |ocation |for IRQ/|
|00001020| 44 52 51 0a 09 52 34 20 | 3d 09 62 69 74 73 20 66 |DRQ..R4 |=.bits f|
|00001030| 6f 72 20 49 52 51 2f 44 | 52 51 0a 09 52 35 20 3d |or IRQ/D|RQ..R5 =|
|00001040| 09 61 64 64 72 65 73 73 | 20 74 6f 20 65 6e 61 62 |.address| to enab|
|00001050| 6c 65 20 49 52 51 2f 44 | 52 51 0a 09 52 36 20 3d |le IRQ/D|RQ..R6 =|
|00001060| 09 62 69 74 73 20 74 6f | 20 65 6e 61 62 6c 65 20 |.bits to| enable |
|00001070| 49 52 51 2f 44 52 51 0a | 0a 54 68 69 73 20 63 61 |IRQ/DRQ.|.This ca|
|00001080| 6c 6c 20 73 65 74 73 20 | 75 70 20 74 68 65 20 61 |ll sets |up the a|
|00001090| 64 64 72 65 73 73 20 6f | 66 20 74 68 65 20 53 54 |ddress o|f the ST|
|000010a0| 35 30 35 36 20 68 61 72 | 64 20 64 69 73 63 20 63 |5056 har|d disc c|
|000010b0| 6f 6e 74 72 6f 6c 6c 65 | 72 20 74 6f 20 62 65 20 |ontrolle|r to be |
|000010c0| 75 73 65 64 20 62 79 20 | 74 68 65 20 41 44 46 53 |used by |the ADFS|
|000010d0| 2e 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 |. For in|stance, |
|000010e0| 61 6e 20 65 78 70 61 6e | 73 69 6f 6e 20 63 61 72 |an expan|sion car|
|000010f0| 64 20 63 61 6e 20 73 75 | 70 6c 6c 79 20 61 6e 20 |d can su|plly an |
|00001100| 61 6c 74 65 72 6e 61 74 | 69 76 65 20 63 6f 6e 74 |alternat|ive cont|
|00001110| 72 6f 6c 6c 65 72 20 74 | 6f 20 74 68 65 20 6f 6e |roller t|o the on|
|00001120| 65 20 6e 6f 72 6d 61 6c | 6c 79 20 75 73 65 64 2e |e normal|ly used.|
|00001130| 20 54 68 65 20 63 6f 6e | 74 72 6f 6c 6c 65 72 20 | The con|troller |
|00001140| 6d 75 73 74 20 62 65 20 | 61 6e 20 48 44 36 33 34 |must be |an HD634|
|00001150| 36 33 20 28 6f 72 20 63 | 6f 6d 70 61 74 69 62 6c |63 (or c|ompatibl|
|00001160| 65 29 2e 0a 0a 54 68 65 | 20 70 6f 6c 6c 69 6e 67 |e)...The| polling|
|00001170| 20 61 6e 64 20 69 6e 74 | 65 72 75 70 74 20 73 65 | and int|erupt se|
|00001180| 6e 73 65 20 69 73 20 64 | 6f 6e 65 20 75 73 69 6e |nse is d|one usin|
|00001190| 67 3a 0a 23 49 6e 64 65 | 6e 74 20 32 3b 66 63 6f |g:.#Inde|nt 2;fco|
|000011a0| 64 65 0a 4c 44 52 42 20 | 20 3c 52 6e 3d 3e 41 73 |de.LDRB | <Rn=>As|
|000011b0| 73 65 6d 62 6c 79 3a 52 | 6e 3e 2c 5b 70 6f 6c 6c |sembly:R|n>,[poll|
|000011c0| 20 6c 6f 63 61 74 69 6f | 6e 5d 0a 54 53 54 20 20 | locatio|n].TST |
|000011d0| 20 52 6e 2c 5b 70 6f 6c | 6c 20 62 69 74 73 5d 0a | Rn,[pol|l bits].|
|000011e0| 23 49 6e 64 65 6e 74 3b | 66 0a 0a 54 68 65 20 49 |#Indent;|f..The I|
|000011f0| 52 51 2f 44 52 51 20 6d | 75 73 74 20 62 65 20 31 |RQ/DRQ m|ust be 1|
|00001200| 20 77 68 65 6e 20 61 63 | 74 69 76 65 2e 0a 00 00 | when ac|tive....|
|00001210| 44 41 54 41 a9 02 00 00 | 41 44 46 53 5f 49 44 45 |DATA....|ADFS_IDE|
|00001220| 55 73 65 72 4f 70 20 28 | 26 34 30 32 34 42 29 0a |UserOp (|&4024B).|
|00001230| 23 50 61 72 65 6e 74 20 | 41 44 46 53 5f 0a 3d 3e |#Parent |ADFS_.=>|
|00001240| 09 52 30 20 3d 09 3c 66 | 6c 61 67 73 3d 3e 2e 66 |.R0 =.<f|lags=>.f|
|00001250| 6c 61 67 73 3e 0a 09 52 | 32 20 3d 09 70 6f 69 6e |lags>..R|2 =.poin|
|00001260| 74 65 72 20 74 6f 20 70 | 61 72 61 6d 65 74 65 72 |ter to p|arameter|
|00001270| 20 62 6c 6f 63 6b 20 66 | 6f 72 20 63 6f 6d 6d 61 | block f|or comma|
|00001280| 6e 64 20 61 6e 64 20 72 | 65 73 75 6c 74 73 0a 09 |nd and r|esults..|
|00001290| 52 33 20 3d 09 70 6f 69 | 6e 74 65 72 20 74 6f 20 |R3 =.poi|nter to |
|000012a0| 62 75 66 66 65 72 0a 09 | 52 34 20 3d 09 6c 65 6e |buffer..|R4 =.len|
|000012b0| 67 74 68 20 74 6f 20 74 | 72 61 6e 73 66 65 72 0a |gth to t|ransfer.|
|000012c0| 09 52 35 20 3d 09 74 69 | 6d 65 6f 75 74 20 69 6e |.R5 =.ti|meout in|
|000012d0| 20 63 65 6e 74 69 73 65 | 63 6f 6e 64 73 20 28 30 | centise|conds (0|
|000012e0| 20 3d 3e 20 75 73 65 20 | 64 65 66 61 75 6c 74 29 | => use |default)|
|000012f0| 0a 09 52 31 32 20 3d 09 | 70 6f 69 6e 74 65 72 20 |..R12 =.|pointer |
|00001300| 74 6f 20 73 74 61 74 69 | 63 20 77 6f 72 6b 20 73 |to stati|c work s|
|00001310| 70 61 63 65 0a 0a 3c 3d | 09 52 30 20 3d 09 63 6f |pace..<=|.R0 =.co|
|00001320| 6d 6d 61 6e 64 20 73 74 | 61 74 75 73 20 28 30 20 |mmand st|atus (0 |
|00001330| 6f 72 20 61 20 64 69 73 | 63 20 65 72 72 6f 72 20 |or a dis|c error |
|00001340| 6e 75 6d 62 65 72 29 0a | 09 52 32 20 70 72 65 73 |number).|.R2 pres|
|00001350| 65 72 76 65 64 0a 09 52 | 33 2c 52 34 20 75 70 64 |erved..R|3,R4 upd|
|00001360| 61 74 65 64 0a 09 52 35 | 20 63 6f 72 72 75 70 74 |ated..R5| corrupt|
|00001370| 65 64 0a 0a 54 68 69 73 | 20 63 61 6c 6c 20 70 72 |ed..This| call pr|
|00001380| 6f 76 69 64 65 73 20 74 | 68 65 20 64 69 72 65 63 |ovides t|he direc|
|00001390| 74 20 75 73 65 20 69 6e | 74 65 72 66 61 63 65 20 |t use in|terface |
|000013a0| 66 6f 72 20 6c 6f 77 2d | 6c 65 76 65 6c 20 49 44 |for low-|level ID|
|000013b0| 45 20 63 6f 6d 6d 61 6e | 64 73 2e 20 49 74 20 6d |E comman|ds. It m|
|000013c0| 75 73 74 20 6e 6f 74 20 | 62 65 20 63 61 6c 6c 65 |ust not |be calle|
|000013d0| 64 20 69 6e 20 62 61 63 | 6b 67 72 6f 75 6e 64 2e |d in bac|kground.|
|000013e0| 0a 23 53 75 62 70 61 67 | 65 20 66 6c 61 67 73 0a |.#Subpag|e flags.|
|000013f0| 49 44 45 20 43 6f 6e 74 | 72 6f 6c 6c 65 72 20 66 |IDE Cont|roller f|
|00001400| 6c 61 67 73 0a 42 69 74 | 09 4d 65 61 6e 69 6e 67 |lags.Bit|.Meaning|
|00001410| 0a 23 6c 69 6e 65 0a 30 | 09 73 65 74 20 3a 20 72 |.#line.0|.set : r|
|00001420| 65 73 65 74 20 63 6f 6e | 74 72 6f 6c 6c 65 72 0a |eset con|troller.|
|00001430| 09 63 6c 72 20 3a 20 70 | 72 6f 63 65 73 73 20 63 |.clr : p|rocess c|
|00001440| 6f 6d 6d 61 6e 64 0a 32 | 34 2d 32 35 09 74 72 61 |ommand.2|4-25.tra|
|00001450| 6e 73 66 65 72 20 64 69 | 72 65 63 74 69 6f 6e 3a |nsfer di|rection:|
|00001460| 0a 09 30 30 20 3a 20 6e | 6f 20 74 72 61 6e 73 66 |..00 : n|o transf|
|00001470| 65 72 0a 09 30 31 20 3a | 20 72 65 61 64 20 28 69 |er..01 :| read (i|
|00001480| 65 20 62 69 74 20 32 34 | 20 73 65 74 29 0a 09 31 |e bit 24| set)..1|
|00001490| 30 20 3a 20 77 72 69 74 | 65 20 28 69 65 20 62 69 |0 : writ|e (ie bi|
|000014a0| 74 20 32 35 20 73 65 74 | 29 0a 09 31 31 20 3a 20 |t 25 set|)..11 : |
|000014b0| 72 65 73 65 72 76 65 64 | 0a 00 00 00 44 41 54 41 |reserved|....DATA|
|000014c0| 9c 00 00 00 41 44 46 53 | 5f 4d 69 73 63 4f 70 20 |....ADFS|_MiscOp |
|000014d0| 28 26 34 30 32 34 43 29 | 0a 23 50 61 72 65 6e 74 |(&4024C)|.#Parent|
|000014e0| 20 41 44 46 53 5f 0a 54 | 68 69 73 20 53 57 49 20 | ADFS_.T|his SWI |
|000014f0| 63 61 6c 6c 73 20 3c 46 | 69 6c 65 43 6f 72 65 5f |calls <F|ileCore_|
|00001500| 4d 69 73 63 4f 70 3e 2c | 20 61 66 74 65 72 20 66 |MiscOp>,| after f|
|00001510| 69 72 73 74 20 73 65 74 | 74 69 6e 67 20 52 38 20 |irst set|ting R8 |
|00001520| 74 6f 20 70 6f 69 6e 74 | 20 74 6f 20 74 68 65 20 |to point| to the |
|00001530| 46 69 6c 65 43 6f 72 65 | 20 69 6e 73 74 61 6e 63 |FileCore| instanc|
|00001540| 65 20 70 72 69 76 61 74 | 65 20 77 6f 72 64 20 66 |e privat|e word f|
|00001550| 6f 72 20 41 44 46 53 2e | 44 41 54 41 3c 03 00 00 |or ADFS.|DATA<...|
|00001560| 41 44 46 53 5f 50 6f 77 | 65 72 43 6f 6e 74 72 6f |ADFS_Pow|erContro|
|00001570| 6c 20 28 26 34 30 32 34 | 39 29 0a 3d 3e 09 52 30 |l (&4024|9).=>.R0|
|00001580| 20 3d 09 72 65 61 73 6f | 6e 20 63 6f 64 65 0a 09 | =.reaso|n code..|
|00001590| 20 09 30 20 3d 3e 20 72 | 65 61 64 20 64 72 69 76 | .0 => r|ead driv|
|000015a0| 65 20 73 70 69 6e 20 73 | 74 61 74 75 73 0a 09 20 |e spin s|tatus.. |
|000015b0| 09 31 20 3d 3e 20 73 65 | 74 20 64 72 69 76 65 20 |.1 => se|t drive |
|000015c0| 61 75 74 6f 73 70 69 6e | 64 6f 77 6e 0a 09 20 09 |autospin|down.. .|
|000015d0| 32 20 3d 3e 20 63 6f 6e | 74 72 6f 6c 20 64 72 69 |2 => con|trol dri|
|000015e0| 76 65 20 73 70 69 6e 20 | 64 69 72 65 63 74 6c 79 |ve spin |directly|
|000015f0| 20 77 69 74 68 6f 75 74 | 20 61 66 66 65 63 74 69 | without| affecti|
|00001600| 6e 67 20 61 75 74 6f 73 | 70 69 6e 64 6f 77 6e 0a |ng autos|pindown.|
|00001610| 09 52 31 20 3d 09 64 72 | 69 76 65 0a 09 52 32 20 |.R1 =.dr|ive..R2 |
|00001620| 3d 09 64 72 69 76 65 20 | 61 75 74 6f 73 70 69 6e |=.drive |autospin|
|00001630| 64 6f 77 6e 2c 20 69 66 | 20 52 30 20 3d 20 31 3b |down, if| R0 = 1;|
|00001640| 0a 09 20 09 20 20 35 20 | d7 a0 6e 75 6d 62 65 72 |.. . 5 |..number|
|00001650| 20 6f 66 20 73 65 63 6f | 6e 64 73 0a 09 20 09 6f | of seco|nds.. .o|
|00001660| 72 20 61 63 74 69 6f 6e | 20 74 6f 20 74 61 6b 65 |r action| to take|
|00001670| 2c 20 69 66 20 52 30 20 | 3d 20 32 3b 0a 09 20 09 |, if R0 |= 2;.. .|
|00001680| 20 20 30 20 74 6f 20 73 | 70 69 6e 20 64 6f 77 6e | 0 to s|pin down|
|00001690| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 0a 09 20 09 | immedia|tely.. .|
|000016a0| 20 20 6f 74 68 65 72 77 | 69 73 65 2c 20 73 70 69 | otherw|ise, spi|
|000016b0| 6e 20 75 70 20 69 6d 6d | 65 64 69 61 74 65 6c 79 |n up imm|ediately|
|000016c0| 0a 0a 3c 3d 09 52 32 20 | 3d 09 64 72 69 76 65 20 |..<=.R2 |=.drive |
|000016d0| 73 70 69 6e 20 73 74 61 | 74 75 73 2c 20 69 66 20 |spin sta|tus, if |
|000016e0| 52 30 20 3d 20 30 3b 0a | 09 20 09 20 20 30 20 69 |R0 = 0;.|. . 0 i|
|000016f0| 66 20 64 72 69 76 65 20 | 69 73 6e 27 74 20 73 70 |f drive |isn't sp|
|00001700| 69 6e 6e 69 6e 67 0a 09 | 20 09 20 20 30 20 69 66 |inning..| . 0 if|
|00001710| 20 64 72 69 76 65 20 69 | 73 20 73 70 69 6e 6e 69 | drive i|s spinni|
|00001720| 6e 67 0a 09 52 33 20 3d | 09 70 72 65 76 69 6f 75 |ng..R3 =|.previou|
|00001730| 73 6c 79 20 76 61 6c 75 | 65 20 66 6f 72 20 64 72 |sly valu|e for dr|
|00001740| 69 76 65 20 61 75 74 6f | 73 70 69 6e 64 6f 77 6e |ive auto|spindown|
|00001750| 2c 20 69 66 20 52 30 20 | 3d 20 31 0a 0a 54 68 69 |, if R0 |= 1..Thi|
|00001760| 73 20 63 61 6c 6c 20 63 | 6f 6e 74 72 6f 6c 73 20 |s call c|ontrols |
|00001770| 74 68 65 20 70 6f 77 65 | 72 20 73 61 76 69 6e 67 |the powe|r saving|
|00001780| 20 66 65 61 74 75 72 65 | 73 20 6f 66 20 74 68 65 | feature|s of the|
|00001790| 20 41 44 46 53 20 73 79 | 73 74 65 6d 2e 20 49 74 | ADFS sy|stem. It|
|000017a0| 20 63 61 6e 20 62 65 20 | 64 61 6e 67 65 72 6f 75 | can be |dangerou|
|000017b0| 73 20 74 6f 20 75 73 65 | 20 74 68 69 73 20 63 61 |s to use| this ca|
|000017c0| 6c 6c 20 6f 6e 20 64 72 | 69 76 65 73 20 74 68 61 |ll on dr|ives tha|
|000017d0| 74 20 6e 6f 74 20 66 75 | 6c 6c 79 20 73 75 70 70 |t not fu|lly supp|
|000017e0| 6f 72 74 20 64 72 69 76 | 65 20 73 70 69 6e 20 63 |ort driv|e spin c|
|000017f0| 6f 6e 74 72 6f 6c 2e 20 | 54 68 65 20 63 6f 6e 74 |ontrol. |The cont|
|00001800| 72 6f 6c 6c 65 72 20 6f | 6e 20 61 74 20 6c 65 61 |roller o|n at lea|
|00001810| 73 74 20 74 77 6f 20 64 | 72 69 76 65 73 20 74 65 |st two d|rives te|
|00001820| 73 74 65 64 20 68 61 6e | 67 20 75 70 20 77 68 65 |sted han|g up whe|
|00001830| 6e 20 61 75 74 6f 73 70 | 69 6e 64 6f 77 6e 20 69 |n autosp|indown i|
|00001840| 73 20 65 6e 61 62 6c 65 | 64 3b 20 61 20 72 65 73 |s enable|d; a res|
|00001850| 65 74 20 64 6f 65 73 6e | 27 74 20 72 65 63 6f 76 |et doesn|'t recov|
|00001860| 65 72 20 74 68 65 20 73 | 69 74 75 61 74 69 6f 6e |er the s|ituation|
|00001870| 2c 20 61 6c 74 68 6f 75 | 67 68 74 20 61 20 70 6f |, althou|ght a po|
|00001880| 77 65 72 2d 64 6f 77 6e | 20 72 65 73 65 74 20 64 |wer-down| reset d|
|00001890| 6f 65 73 2e 44 41 54 41 | 64 02 00 00 41 44 46 53 |oes.DATA|d...ADFS|
|000018a0| 5f 52 65 74 72 69 65 73 | 20 20 28 26 34 30 32 34 |_Retries| (&4024|
|000018b0| 34 29 0a 23 50 61 72 65 | 6e 74 20 41 44 46 53 5f |4).#Pare|nt ADFS_|
|000018c0| 0a 3d 3e 09 52 30 20 3d | 09 6d 61 73 6b 20 6f 66 |.=>.R0 =|.mask of|
|000018d0| 20 62 69 74 73 20 74 6f | 20 63 68 61 6e 67 65 0a | bits to| change.|
|000018e0| 09 52 31 20 3d 09 6e 65 | 77 20 76 61 6c 75 65 73 |.R1 =.ne|w values|
|000018f0| 20 6f 66 20 62 69 74 73 | 20 74 6f 20 63 68 61 6e | of bits| to chan|
|00001900| 67 65 0a 0a 3c 3d 09 52 | 30 20 70 72 65 73 65 72 |ge..<=.R|0 preser|
|00001910| 76 65 64 0a 09 52 31 20 | 3d 09 52 30 20 41 4e 44 |ved..R1 |=.R0 AND|
|00001920| 20 65 6e 74 72 79 20 76 | 61 6c 75 65 20 6f 66 20 | entry v|alue of |
|00001930| 52 31 0a 09 52 32 20 3d | 09 6f 6c 64 20 76 61 6c |R1..R2 =|.old val|
|00001940| 75 65 20 6f 66 20 72 65 | 74 72 79 20 77 6f 72 64 |ue of re|try word|
|00001950| 0a 09 52 33 20 3d 09 6e | 65 77 20 76 61 6c 75 65 |..R3 =.n|ew value|
|00001960| 20 6f 66 20 72 65 74 72 | 79 20 77 6f 72 64 0a 0a | of retr|y word..|
|00001970| 54 68 69 73 20 63 61 6c | 6c 20 73 65 74 73 20 75 |This cal|l sets u|
|00001980| 70 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |p the nu|mber of |
|00001990| 72 65 74 72 69 65 73 20 | 75 73 65 64 20 62 79 20 |retries |used by |
|000019a0| 77 72 69 74 69 6e 67 20 | 74 6f 20 74 68 65 20 72 |writing |to the r|
|000019b0| 65 74 72 79 20 77 6f 72 | 64 2e 20 54 68 65 20 66 |etry wor|d. The f|
|000019c0| 6f 72 6d 61 74 20 6f 66 | 20 74 68 65 20 77 6f 72 |ormat of| the wor|
|000019d0| 64 20 69 73 3a 0a 0a 23 | 54 61 62 0a 42 79 74 65 |d is:..#|Tab.Byte|
|000019e0| 09 4e 75 6d 62 65 72 20 | 6f 66 20 72 65 74 72 69 |.Number |of retri|
|000019f0| 65 73 20 66 6f 72 0a 23 | 4c 69 6e 65 0a 30 09 68 |es for.#|Line.0.h|
|00001a00| 61 72 64 20 64 69 73 63 | 20 72 65 61 64 2f 77 72 |ard disc| read/wr|
|00001a10| 69 74 65 20 73 65 63 74 | 6f 72 0a 31 09 66 6c 6f |ite sect|or.1.flo|
|00001a20| 70 70 79 20 64 69 73 63 | 20 72 65 61 64 2f 77 72 |ppy disc| read/wr|
|00001a30| 69 74 65 20 73 65 63 74 | 6f 72 0a 32 09 66 6c 6f |ite sect|or.2.flo|
|00001a40| 70 70 79 20 64 69 73 63 | 20 6d 6f 75 6e 74 20 28 |ppy disc| mount (|
|00001a50| 70 65 72 20 63 6f 70 79 | 20 6f 66 20 74 68 65 20 |per copy| of the |
|00001a60| 64 69 73 63 20 6d 61 70 | 29 0a 33 09 76 65 72 69 |disc map|).3.veri|
|00001a70| 66 79 20 61 66 74 65 72 | 20 2a 46 6f 72 6d 61 74 |fy after| *Format|
|00001a80| 2c 20 62 65 66 6f 72 65 | 20 73 65 63 74 6f 72 20 |, before| sector |
|00001a90| 69 73 20 63 6f 6e 73 69 | 64 65 72 65 64 20 61 20 |is consi|dered a |
|00001aa0| 64 65 66 65 63 74 0a 0a | 54 68 65 20 6e 65 77 20 |defect..|The new |
|00001ab0| 76 61 6c 75 65 20 69 73 | 20 63 61 6c 63 75 6c 61 |value is| calcula|
|00001ac0| 74 65 64 20 61 73 20 66 | 6f 6c 6c 6f 77 73 3a 0a |ted as f|ollows:.|
|00001ad0| 20 20 28 6f 6c 64 20 76 | 61 6c 75 65 20 41 4e 44 | (old v|alue AND|
|00001ae0| 20 4e 4f 54 20 52 30 29 | 20 45 4f 52 20 28 52 31 | NOT R0)| EOR (R1|
|00001af0| 20 41 4e 44 20 52 30 29 | 44 41 54 41 d8 01 00 00 | AND R0)|DATA....|
|00001b00| 41 44 46 53 5f 53 65 74 | 49 44 45 43 6f 6e 74 72 |ADFS_Set|IDEContr|
|00001b10| 6f 6c 6c 65 72 20 20 28 | 26 34 30 32 34 41 29 0a |oller (|&4024A).|
|00001b20| 23 50 61 72 65 6e 74 20 | 41 44 46 53 5f 0a 3d 3e |#Parent |ADFS_.=>|
|00001b30| 09 52 32 20 3d 09 70 6f | 69 6e 74 65 72 20 74 6f |.R2 =.po|inter to|
|00001b40| 20 49 44 45 20 63 6f 6e | 74 72 6f 6c 6c 65 72 0a | IDE con|troller.|
|00001b50| 09 52 33 20 3d 09 70 6f | 69 6e 74 65 72 20 74 6f |.R3 =.po|inter to|
|00001b60| 20 69 6e 74 65 72 72 75 | 70 74 20 73 74 61 74 75 | interru|pt statu|
|00001b70| 73 20 6f 66 20 63 6f 6e | 74 72 6f 6c 6c 65 72 0a |s of con|troller.|
|00001b80| 09 52 34 20 3d 09 41 4e | 44 20 77 69 74 68 20 73 |.R4 =.AN|D with s|
|00001b90| 74 61 74 75 73 2c 20 4e | 45 20 3d 3e 20 49 52 51 |tatus, N|E => IRQ|
|00001ba0| 0a 09 52 35 20 3d 09 70 | 6f 69 6e 74 65 72 20 74 |..R5 =.p|ointer t|
|00001bb0| 6f 20 69 6e 74 65 72 72 | 75 70 74 20 6d 61 73 6b |o interr|upt mask|
|00001bc0| 0a 09 52 36 20 3d 09 4f | 52 20 69 6e 74 6f 20 6d |..R6 =.O|R into m|
|00001bd0| 61 73 6b 20 65 6e 61 62 | 6c 65 73 20 49 52 51 0a |ask enab|les IRQ.|
|00001be0| 09 52 37 20 3d 09 70 6f | 69 6e 74 65 72 20 74 6f |.R7 =.po|inter to|
|00001bf0| 20 64 61 74 61 20 72 65 | 61 64 20 72 6f 75 74 69 | data re|ad routi|
|00001c00| 6e 65 20 28 30 20 66 6f | 72 20 64 65 66 61 75 6c |ne (0 fo|r defaul|
|00001c10| 74 29 0a 09 52 38 20 3d | 09 70 6f 69 6e 74 65 72 |t)..R8 =|.pointer|
|00001c20| 20 74 6f 20 64 61 74 61 | 20 77 72 69 74 65 20 72 | to data| write r|
|00001c30| 6f 75 74 69 6e 65 20 28 | 30 20 66 6f 72 20 64 65 |outine (|0 for de|
|00001c40| 66 61 75 6c 74 29 0a 09 | 52 31 32 20 3d 09 70 6f |fault)..|R12 =.po|
|00001c50| 69 6e 74 65 72 20 74 6f | 20 73 74 61 74 69 63 20 |inter to| static |
|00001c60| 77 6f 72 6b 20 73 70 61 | 63 65 0a 0a 3c 3d 09 41 |work spa|ce..<=.A|
|00001c70| 6c 6c 20 72 65 67 69 73 | 74 65 72 73 20 70 72 65 |ll regis|ters pre|
|00001c80| 73 65 72 76 65 64 0a 0a | 54 68 69 73 20 63 61 6c |served..|This cal|
|00001c90| 6c 20 67 69 76 65 73 20 | 74 68 65 20 49 44 45 20 |l gives |the IDE |
|00001ca0| 64 72 69 76 65 72 20 74 | 68 65 20 64 65 74 61 69 |driver t|he detai|
|00001cb0| 6c 73 20 6f 66 20 61 6e | 20 61 6c 74 65 72 6e 61 |ls of an| alterna|
|00001cc0| 74 69 76 65 20 63 6f 6e | 74 72 6f 6c 6c 65 72 2e |tive con|troller.|
|00001cd0| 44 41 54 41 70 04 00 00 | 41 44 46 53 5f 56 65 74 |DATAp...|ADFS_Vet|
|00001ce0| 46 6f 72 6d 61 74 20 20 | 28 26 34 30 32 34 36 29 |Format |(&40246)|
|00001cf0| 0a 23 50 61 72 65 6e 74 | 20 41 44 46 53 5f 0a 3d |.#Parent| ADFS_.=|
|00001d00| 3e 09 52 30 20 3d 09 70 | 6f 69 6e 74 65 72 20 74 |>.R0 =.p|ointer t|
|00001d10| 6f 20 64 69 73 63 20 66 | 6f 72 6d 61 74 20 73 74 |o disc f|ormat st|
|00001d20| 72 75 63 74 75 72 65 20 | 74 6f 20 62 65 20 76 65 |ructure |to be ve|
|00001d30| 74 74 65 64 0a 09 52 31 | 20 3d 09 70 61 72 61 6d |tted..R1| =.param|
|00001d40| 65 74 65 72 73 20 70 72 | 65 76 69 6f 75 73 6c 79 |eters pr|eviously|
|00001d50| 20 70 61 73 73 65 64 20 | 62 79 20 41 44 46 53 20 | passed |by ADFS |
|00001d60| 69 6e 20 52 32 20 74 6f | 20 27 49 6d 61 67 65 27 |in R2 to| 'Image'|
|00001d70| 46 53 5f 44 69 73 63 46 | 6f 72 6d 61 74 20 28 69 |FS_DiscF|ormat (i|
|00001d80| 65 20 64 72 69 76 65 20 | 6e 75 6d 62 65 72 29 0a |e drive |number).|
|00001d90| 0a 3c 3d 09 52 30 2c 52 | 31 20 70 72 65 73 65 72 |.<=.R0,R|1 preser|
|00001da0| 76 65 64 0a 0a 54 68 69 | 73 20 63 61 6c 6c 20 76 |ved..Thi|s call v|
|00001db0| 65 74 73 20 74 68 65 20 | 67 69 76 65 6e 20 64 69 |ets the |given di|
|00001dc0| 73 63 20 66 6f 72 6d 61 | 74 20 73 74 72 75 63 74 |sc forma|t struct|
|00001dd0| 75 72 65 20 66 6f 72 20 | 61 63 68 69 65 76 61 62 |ure for |achievab|
|00001de0| 69 6c 69 74 79 20 77 69 | 74 68 20 74 68 65 20 61 |ility wi|th the a|
|00001df0| 76 61 69 6c 61 62 6c 65 | 20 68 61 72 64 77 61 72 |vailable| hardwar|
|00001e00| 65 2e 20 41 44 46 53 20 | 75 70 64 61 74 65 73 20 |e. ADFS |updates |
|00001e10| 74 68 65 20 64 69 73 63 | 20 66 6f 72 6d 61 74 20 |the disc| format |
|00001e20| 73 74 72 75 63 74 75 72 | 65 73 20 77 69 74 68 20 |structur|es with |
|00001e30| 76 61 6c 75 65 73 20 74 | 68 61 74 20 69 74 20 63 |values t|hat it c|
|00001e40| 61 6e 20 61 63 74 75 61 | 6c 6c 79 20 61 63 68 69 |an actua|lly achi|
|00001e50| 65 76 65 20 77 69 74 68 | 20 74 68 65 20 68 61 72 |eve with| the har|
|00001e60| 64 77 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 2e |dware av|ailable.|
|00001e70| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 20 74 68 65 | For exa|mple the|
|00001e80| 20 6f 6e 6c 79 20 66 69 | 6c 6c 20 62 79 74 65 20 | only fi|ll byte |
|00001e90| 76 61 6c 75 65 20 61 76 | 61 69 6c 61 62 6c 65 20 |value av|ailable |
|00001ea0| 77 68 65 6e 20 66 6f 72 | 6d 61 74 74 69 6e 67 20 |when for|matting |
|00001eb0| 6d 69 67 68 74 20 62 65 | 20 30 2c 20 62 75 74 20 |might be| 0, but |
|00001ec0| 74 68 65 20 72 65 71 75 | 65 73 74 65 64 20 76 61 |the requ|ested va|
|00001ed0| 6c 75 65 20 6d 61 79 20 | 62 65 20 26 34 45 2c 20 |lue may |be &4E, |
|00001ee0| 68 65 6e 63 65 20 30 20 | 77 6f 75 6c 64 20 62 65 |hence 0 |would be|
|00001ef0| 20 66 69 6c 6c 65 64 20 | 69 6e 20 61 73 20 74 68 | filled |in as th|
|00001f00| 65 20 66 69 6c 6c 20 62 | 79 74 65 20 76 61 6c 75 |e fill b|yte valu|
|00001f10| 65 2e 0a 0a 49 66 20 41 | 44 46 53 20 63 61 6e 27 |e...If A|DFS can'|
|00001f20| 74 20 73 65 6e 73 69 62 | 6c 79 20 64 6f 77 6e 67 |t sensib|ly downg|
|00001f30| 72 61 64 65 20 74 68 65 | 20 70 61 72 61 6d 65 74 |rade the| paramet|
|00001f40| 65 72 73 20 73 74 72 75 | 63 74 75 72 65 2c 20 69 |ers stru|cture, i|
|00001f50| 74 20 77 69 6c 6c 20 67 | 65 6e 65 72 61 74 65 20 |t will g|enerate |
|00001f60| 61 6e 20 65 72 72 6f 72 | 2e 0a 0a 54 68 69 73 20 |an error|...This |
|00001f70| 63 61 6c 6c 20 69 73 20 | 74 79 70 69 63 61 6c 6c |call is |typicall|
|00001f80| 79 20 6d 61 64 65 20 62 | 79 20 46 69 6c 65 43 6f |y made b|y FileCo|
|00001f90| 72 65 20 6f 72 20 62 79 | 20 74 68 65 20 69 6d 61 |re or by| the ima|
|00001fa0| 67 65 20 66 69 6c 69 6e | 67 20 73 79 73 74 65 6d |ge filin|g system|
|00001fb0| 20 27 49 6d 61 67 65 46 | 53 27 2c 20 69 6e 20 72 | 'ImageF|S', in r|
|00001fc0| 65 73 70 6f 6e 73 65 20 | 74 6f 20 41 44 46 53 20 |esponse |to ADFS |
|00001fd0| 63 61 6c 6c 69 6e 67 20 | 3c 46 69 6c 65 43 6f 72 |calling |<FileCor|
|00001fe0| 65 5f 44 69 73 63 46 6f | 72 6d 61 74 3e 20 6f 72 |e_DiscFo|rmat> or|
|00001ff0| 20 27 49 6d 61 67 65 46 | 53 27 5f 44 69 73 63 46 | 'ImageF|S'_DiscF|
|00002000| 6f 72 6d 61 74 20 28 65 | 67 20 3c 44 4f 53 46 53 |ormat (e|g <DOSFS|
|00002010| 5f 44 69 73 63 46 6f 72 | 6d 61 74 3e 29 20 72 65 |_DiscFor|mat>) re|
|00002020| 73 70 65 63 74 69 76 65 | 6c 79 2e 0a 0a 54 68 65 |spective|ly...The|
|00002030| 20 76 61 6c 75 65 20 69 | 6e 20 52 31 20 69 73 20 | value i|n R1 is |
|00002040| 75 73 65 64 20 74 6f 20 | 70 61 73 73 20 65 6e 6f |used to |pass eno|
|00002050| 75 67 68 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ugh info|rmation |
|00002060| 6f 6e 20 74 68 65 20 68 | 61 72 64 77 61 72 65 20 |on the h|ardware |
|00002070| 6f 6e 20 77 68 69 63 68 | 20 74 68 65 20 66 6f 72 |on which| the for|
|00002080| 6d 61 74 20 69 73 20 74 | 6f 20 74 61 6b 65 20 70 |mat is t|o take p|
|00002090| 6c 61 63 65 20 66 6f 72 | 20 74 68 65 20 64 69 73 |lace for| the dis|
|000020a0| 63 20 66 6f 72 6d 61 74 | 20 73 74 72 75 63 74 75 |c format| structu|
|000020b0| 72 65 20 74 6f 20 62 65 | 20 76 65 74 74 65 64 2e |re to be| vetted.|
|000020c0| 20 41 44 46 53 20 75 73 | 65 73 20 74 68 65 20 64 | ADFS us|es the d|
|000020d0| 72 69 76 65 20 6e 75 6d | 62 65 72 20 66 6f 72 20 |rive num|ber for |
|000020e0| 74 68 69 73 3b 20 6f 74 | 68 65 72 20 68 61 6e 64 |this; ot|her hand|
|000020f0| 6c 65 72 73 20 6f 66 20 | 64 69 73 63 73 20 6d 61 |lers of |discs ma|
|00002100| 79 20 70 61 73 73 20 64 | 69 66 66 65 72 65 6e 74 |y pass d|ifferent|
|00002110| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 69 66 20 | informa|tion if |
|00002120| 74 68 65 79 20 69 6d 70 | 6c 65 6d 65 6e 74 20 61 |they imp|lement a|
|00002130| 20 56 65 74 46 6f 72 6d | 61 74 20 53 57 49 2e 0a | VetForm|at SWI..|
|00002140| 44 41 54 41 6a 00 00 00 | 41 44 46 53 5f 46 6c 70 |DATAj...|ADFS_Flp|
|00002150| 50 72 6f 63 65 73 73 44 | 43 42 20 28 26 34 30 32 |ProcessD|CB (&402|
|00002160| 34 37 29 0a 54 68 69 73 | 20 63 61 6c 6c 20 69 73 |47).This| call is|
|00002170| 20 66 6f 72 20 69 6e 74 | 65 72 6e 61 6c 20 75 73 | for int|ernal us|
|00002180| 65 20 6f 6e 6c 79 2c 20 | 61 6e 64 20 6e 6f 74 20 |e only, |and not |
|00002190| 61 76 61 69 6c 61 62 6c | 65 20 75 6e 64 65 72 20 |availabl|e under |
|000021a0| 52 49 53 43 20 4f 53 20 | 32 2e 00 00 44 41 54 41 |RISC OS |2...DATA|
|000021b0| 7e 00 00 00 41 44 46 53 | 5f 4c 6f 63 6b 49 44 45 |~...ADFS|_LockIDE|
|000021c0| 20 20 28 26 34 30 32 35 | 31 29 0a 23 50 61 72 65 | (&4025|1).#Pare|
|000021d0| 6e 74 20 41 44 46 53 5f | 0a 3d 3e 09 52 30 20 3d |nt ADFS_|.=>.R0 =|
|000021e0| 09 66 6c 61 67 2c 20 62 | 30 20 73 65 74 20 74 6f |.flag, b|0 set to|
|000021f0| 20 6c 6f 63 6b 2c 20 63 | 6c 65 61 72 20 74 6f 20 | lock, c|lear to |
|00002200| 75 6e 6c 6f 63 6b 0a 0a | 54 68 69 73 20 69 73 20 |unlock..|This is |
|00002210| 75 73 65 64 20 74 6f 20 | 6c 6f 63 6b 20 74 68 65 |used to |lock the|
|00002220| 20 49 44 45 20 62 75 73 | 2e 0a 00 00 44 41 54 41 | IDE bus|....DATA|
|00002230| a0 00 00 00 41 44 46 53 | 5f 53 65 63 74 6f 72 4f |....ADFS|_SectorO|
|00002240| 70 20 28 26 34 30 32 34 | 64 29 0a 23 50 61 72 65 |p (&4024|d).#Pare|
|00002250| 6e 74 20 41 44 46 53 5f | 0a 54 68 69 73 20 53 57 |nt ADFS_|.This SW|
|00002260| 49 20 63 61 6c 6c 73 20 | 3c 46 69 6c 65 43 6f 72 |I calls |<FileCor|
|00002270| 65 5f 53 65 63 74 6f 72 | 4f 70 3e 2c 20 61 66 74 |e_Sector|Op>, aft|
|00002280| 65 72 20 66 69 72 73 74 | 20 73 65 74 74 69 6e 67 |er first| setting|
|00002290| 20 52 38 20 74 6f 20 70 | 6f 69 6e 74 20 74 6f 20 | R8 to p|oint to |
|000022a0| 74 68 65 20 46 69 6c 65 | 43 6f 72 65 20 69 6e 73 |the File|Core ins|
|000022b0| 74 61 6e 63 65 20 70 72 | 69 76 61 74 65 20 77 6f |tance pr|ivate wo|
|000022c0| 72 64 20 66 6f 72 20 41 | 44 46 53 2e 44 41 54 41 |rd for A|DFS.DATA|
|000022d0| a6 00 00 00 41 44 46 53 | 5f 46 72 65 65 53 70 61 |....ADFS|_FreeSpa|
|000022e0| 63 65 36 34 20 28 26 34 | 30 32 35 32 29 0a 23 50 |ce64 (&4|0252).#P|
|000022f0| 61 72 65 6e 74 20 41 44 | 46 53 5f 0a 54 68 69 73 |arent AD|FS_.This|
|00002300| 20 53 57 49 20 63 61 6c | 6c 73 20 3c 46 69 6c 65 | SWI cal|ls <File|
|00002310| 43 6f 72 65 5f 46 72 65 | 65 53 70 61 63 65 36 34 |Core_Fre|eSpace64|
|00002320| 3e 2c 20 61 66 74 65 72 | 20 66 69 72 73 74 20 73 |>, after| first s|
|00002330| 65 74 74 69 6e 67 20 52 | 38 20 74 6f 20 70 6f 69 |etting R|8 to poi|
|00002340| 6e 74 20 74 6f 20 74 68 | 65 20 46 69 6c 65 43 6f |nt to th|e FileCo|
|00002350| 72 65 20 69 6e 73 74 61 | 6e 63 65 20 70 72 69 76 |re insta|nce priv|
|00002360| 61 74 65 20 77 6f 72 64 | 20 66 6f 72 20 41 44 46 |ate word| for ADF|
|00002370| 53 2e 00 00 44 49 52 24 | 2c 00 00 00 2c 00 00 00 |S...DIR$|,...,...|
|00002380| a0 23 00 00 46 fd ff ff | 5b 8b 1d 00 33 00 00 00 |.#..F...|[...3...|
|00002390| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|000023a0| 44 41 54 41 33 00 00 00 | 42 61 73 69 63 54 72 61 |DATA3...|BasicTra|
|000023b0| 6e 73 0a 23 50 61 72 65 | 6e 74 20 21 52 6f 6f 74 |ns.#Pare|nt !Root|
|000023c0| 0a 45 72 72 6f 72 0a 48 | 45 4c 50 0a 4d 65 73 73 |.Error.H|ELP.Mess|
|000023d0| 61 67 65 00 44 49 52 24 | cc 00 00 00 cc 00 00 00 |age.DIR$|........|
|000023e0| a0 24 00 00 46 fd ff ff | 77 c3 63 db 8a 00 00 00 |.$..F...|w.c.....|
|000023f0| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|00002400| 2c 25 00 00 47 ff ff ff | 4f ea a8 cd 34 01 00 00 |,%..G...|O...4...|
|00002410| 13 00 00 00 00 00 00 00 | 47 65 74 49 6e 66 6f 00 |........|GetInfo.|
|00002420| 60 26 00 00 46 fd ff ff | 9d 04 62 88 b1 00 00 00 |`&..F...|..b.....|
|00002430| 13 00 00 00 00 00 00 00 | 62 75 66 66 65 72 73 00 |........|buffers.|
|00002440| 14 27 00 00 46 fd ff ff | 8c 19 1e 44 7a 00 00 00 |.'..F...|...Dz...|
|00002450| 13 00 00 00 00 00 00 00 | 66 6c 61 67 73 00 00 00 |........|flags...|
|00002460| 90 27 00 00 47 ff ff ff | 3a 77 b8 cd 6b 02 00 00 |.'..G...|:w..k...|
|00002470| 13 00 00 00 00 00 00 00 | 43 72 65 61 74 65 00 00 |........|Create..|
|00002480| fc 29 00 00 46 ff ff ff | d8 53 a6 fa 66 01 00 00 |.)..F...|.S..f...|
|00002490| 13 00 00 00 00 00 00 00 | 72 65 6d 6f 76 65 00 00 |........|remove..|
|000024a0| 44 41 54 41 8a 00 00 00 | 42 75 66 66 65 72 0a 23 |DATA....|Buffer.#|
|000024b0| 50 61 72 65 6e 74 20 21 | 52 6f 6f 74 0a 23 50 72 |Parent !|Root.#Pr|
|000024c0| 65 66 69 78 20 42 75 66 | 66 65 72 5f 0a 3c 43 72 |efix Buf|fer_.<Cr|
|000024d0| 65 61 74 65 3e 0a 44 65 | 72 65 67 69 73 74 65 72 |eate>.De|register|
|000024e0| 0a 3c 47 65 74 49 6e 66 | 6f 3e 0a 4c 69 6e 6b 44 |.<GetInf|o>.LinkD|
|000024f0| 65 76 69 63 65 0a 4d 6f | 64 69 66 79 46 6c 61 67 |evice.Mo|difyFlag|
|00002500| 73 0a 3c 52 65 6d 6f 76 | 65 3e 0a 52 65 67 69 73 |s.<Remov|e>.Regis|
|00002510| 74 65 72 0a 54 68 72 65 | 73 68 6f 6c 64 0a 55 6e |ter.Thre|shold.Un|
|00002520| 6c 69 6e 6b 44 65 76 69 | 63 65 00 00 44 41 54 41 |linkDevi|ce..DATA|
|00002530| 34 01 00 00 42 75 66 66 | 65 72 5f 47 65 74 49 6e |4...Buff|er_GetIn|
|00002540| 66 6f 20 28 26 34 32 39 | 34 37 29 0a 23 50 61 72 |fo (&429|47).#Par|
|00002550| 65 6e 74 20 42 75 66 66 | 65 72 5f 0a 3d 3e 09 52 |ent Buff|er_.=>.R|
|00002560| 30 20 3d 09 3c 62 75 66 | 66 65 72 20 6e 75 6d 62 |0 =.<buf|fer numb|
|00002570| 65 72 3d 3e 42 75 66 66 | 65 72 5f 62 75 66 66 65 |er=>Buff|er_buffe|
|00002580| 72 73 3e 0a 3c 3d 09 52 | 30 20 3d 09 3c 66 6c 61 |rs>.<=.R|0 =.<fla|
|00002590| 67 73 3d 3e 42 75 66 66 | 65 72 5f 66 6c 61 67 73 |gs=>Buff|er_flags|
|000025a0| 3e 0a 09 52 31 20 3d 09 | 70 6f 69 6e 74 65 72 20 |>..R1 =.|pointer |
|000025b0| 74 6f 20 62 75 66 66 65 | 72 20 73 74 61 72 74 0a |to buffe|r start.|
|000025c0| 09 52 32 20 3d 09 70 6f | 69 6e 74 65 72 20 74 6f |.R2 =.po|inter to|
|000025d0| 20 62 75 66 66 65 72 20 | 65 6e 64 0a 09 52 33 20 | buffer |end..R3 |
|000025e0| 3d 09 69 6e 73 65 72 74 | 69 6f 6e 20 6f 66 66 73 |=.insert|ion offs|
|000025f0| 65 74 0a 09 52 34 20 3d | 09 72 65 6d 6f 76 61 6c |et..R4 =|.removal|
|00002600| 20 6f 66 66 73 65 74 0a | 09 52 35 20 3d 09 62 79 | offset.|.R5 =.by|
|00002610| 74 65 73 20 66 72 65 65 | 0a 09 52 36 20 3d 09 62 |tes free|..R6 =.b|
|00002620| 79 74 65 73 20 75 73 65 | 64 0a 0a 54 68 69 73 20 |ytes use|d..This |
|00002630| 53 57 49 20 72 65 61 64 | 73 20 69 6e 66 6f 72 6d |SWI read|s inform|
|00002640| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 61 20 70 61 |ation ab|out a pa|
|00002650| 72 74 69 63 75 6c 61 72 | 20 62 75 66 66 65 72 2e |rticular| buffer.|
|00002660| 44 41 54 41 b1 00 00 00 | 42 75 66 66 65 72 20 62 |DATA....|Buffer b|
|00002670| 75 66 66 65 72 73 0a 5c | 23 09 46 6f 72 0a 23 4c |uffers.\|#.For.#L|
|00002680| 69 6e 65 0a 30 09 4b 65 | 79 62 6f 61 72 64 0a 31 |ine.0.Ke|yboard.1|
|00002690| 09 53 65 72 69 61 6c 20 | 69 6e 70 75 74 0a 32 09 |.Serial |input.2.|
|000026a0| 53 65 72 69 61 6c 20 6f | 75 74 70 75 74 0a 33 09 |Serial o|utput.3.|
|000026b0| 50 72 69 6e 74 65 72 0a | 34 09 53 6f 75 6e 64 20 |Printer.|4.Sound |
|000026c0| 63 68 61 6e 6e 65 6c 20 | 30 0a 35 09 53 6f 75 6e |channel |0.5.Soun|
|000026d0| 64 20 63 68 61 6e 6e 65 | 6c 20 31 0a 36 09 53 6f |d channe|l 1.6.So|
|000026e0| 75 6e 64 20 63 68 61 6e | 6e 65 6c 20 32 0a 37 09 |und chan|nel 2.7.|
|000026f0| 53 6f 75 6e 64 20 63 68 | 61 6e 6e 65 6c 20 33 0a |Sound ch|annel 3.|
|00002700| 38 09 53 70 65 65 63 68 | 0a 39 09 4d 6f 75 73 65 |8.Speech|.9.Mouse|
|00002710| 0a 00 00 00 44 41 54 41 | 7a 00 00 00 42 75 66 66 |....DATA|z...Buff|
|00002720| 65 72 20 66 6c 61 67 73 | 0a 42 69 74 09 4d 65 61 |er flags|.Bit.Mea|
|00002730| 6e 69 6e 67 0a 23 4c 69 | 6e 65 0a 30 09 44 6f 72 |ning.#Li|ne.0.Dor|
|00002740| 6d 61 6e 74 0a 31 09 47 | 65 6e 65 72 61 74 65 20 |mant.1.G|enerate |
|00002750| 65 76 65 6e 74 20 6f 6e | 20 65 6d 70 74 79 0a 32 |event on| empty.2|
|00002760| 09 47 65 6e 65 72 61 74 | 65 20 65 76 65 6e 74 20 |.Generat|e event |
|00002770| 6f 6e 20 66 75 6c 6c 0a | 33 09 55 70 43 61 6c 6c |on full.|3.UpCall|
|00002780| 20 6f 6e 20 74 68 72 65 | 73 68 6f 6c 64 0a 00 00 | on thre|shold...|
|00002790| 44 41 54 41 6b 02 00 00 | 42 75 66 66 65 72 5f 43 |DATAk...|Buffer_C|
|000027a0| 72 65 61 74 65 20 28 26 | 34 32 39 34 30 29 0a 23 |reate (&|42940).#|
|000027b0| 50 61 72 65 6e 74 20 42 | 75 66 66 65 72 5f 0a 3d |Parent B|uffer_.=|
|000027c0| 3e 09 52 30 20 3d 09 62 | 75 66 66 65 72 27 73 20 |>.R0 =.b|uffer's |
|000027d0| 3c 66 6c 61 67 20 77 6f | 72 64 3d 3e 62 75 66 66 |<flag wo|rd=>buff|
|000027e0| 65 72 5f 66 6c 61 67 73 | 3e 0a 09 52 31 20 3d 09 |er_flags|>..R1 =.|
|000027f0| 73 69 7a 65 20 6f 66 20 | 62 75 66 66 65 72 20 74 |size of |buffer t|
|00002800| 6f 20 62 65 20 63 72 65 | 61 74 65 64 0a 09 52 32 |o be cre|ated..R2|
|00002810| 20 3d 09 70 72 65 66 65 | 72 72 65 64 20 68 61 6e | =.prefe|rred han|
|00002820| 64 6c 65 20 66 6f 72 20 | 74 68 65 20 62 75 66 66 |dle for |the buff|
|00002830| 65 72 2c 20 2d 31 20 74 | 6f 20 67 65 74 20 74 68 |er, -1 t|o get th|
|00002840| 65 20 62 75 66 66 65 72 | 20 6d 61 6e 61 67 65 72 |e buffer| manager|
|00002850| 20 74 6f 20 67 65 6e 65 | 72 61 74 65 20 6f 6e 65 | to gene|rate one|
|00002860| 0a 3c 3d 09 52 30 20 3d | 09 62 75 66 66 65 72 20 |.<=.R0 =|.buffer |
|00002870| 68 61 6e 64 6c 65 0a 0a | 54 68 69 73 20 63 6c 61 |handle..|This cla|
|00002880| 69 6d 73 20 61 6e 20 61 | 72 65 61 20 6f 66 20 74 |ims an a|rea of t|
|00002890| 68 65 20 52 4d 41 20 61 | 6e 64 20 72 65 67 69 73 |he RMA a|nd regis|
|000028a0| 74 65 72 73 20 69 74 20 | 61 73 20 61 20 62 75 66 |ters it |as a buf|
|000028b0| 66 65 72 2e 20 49 74 20 | 63 61 6e 20 61 74 20 6d |fer. It |can at m|
|000028c0| 6f 73 74 20 68 6f 6c 64 | 20 52 31 2d 31 20 62 79 |ost hold| R1-1 by|
|000028d0| 74 65 73 2e 0a 49 66 20 | 52 32 20 5c 3c 3e 2d 31 |tes..If |R2 \<>-1|
|000028e0| 2c 20 74 68 65 20 67 69 | 76 65 6e 20 6e 75 6d 62 |, the gi|ven numb|
|000028f0| 65 72 20 69 73 20 63 68 | 65 63 6b 65 64 20 66 6f |er is ch|ecked fo|
|00002900| 72 20 75 6e 69 71 75 65 | 2c 20 69 66 20 69 74 20 |r unique|, if it |
|00002910| 61 6c 72 65 61 64 79 20 | 65 78 69 73 74 2c 20 61 |already |exist, a|
|00002920| 20 6e 65 77 20 6f 6e 65 | 20 69 73 20 69 6e 76 65 | new one| is inve|
|00002930| 6e 74 65 64 2e 0a 4e 6f | 74 65 2c 20 74 68 61 74 |nted..No|te, that|
|00002940| 20 79 6f 75 20 61 72 65 | 20 6e 6f 74 20 6e 65 65 | you are| not nee|
|00002950| 64 69 6e 67 20 61 6e 79 | 20 63 6f 6d 70 6c 69 63 |ding any| complic|
|00002960| 61 74 65 64 20 63 61 6c | 63 75 6c 61 74 69 6f 6e |ated cal|culation|
|00002970| 73 20 74 6f 20 77 72 69 | 74 65 20 64 61 74 61 20 |s to wri|te data |
|00002980| 69 6e 74 6f 20 74 68 65 | 20 62 75 66 66 65 72 2e |into the| buffer.|
|00002990| 20 49 74 27 73 20 61 20 | 70 69 65 63 65 20 6f 66 | It's a |piece of|
|000029a0| 20 6d 65 6d 6f 72 79 20 | 6c 69 6b 65 20 61 6c 6c | memory |like all|
|000029b0| 20 6f 74 68 65 72 73 20 | 74 6f 6f 2e 20 47 65 74 | others |too. Get|
|000029c0| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 77 69 74 | the add|ress wit|
|000029d0| 68 20 3c 42 75 66 66 65 | 72 5f 47 65 74 49 6e 66 |h <Buffe|r_GetInf|
|000029e0| 6f 3e 20 61 6e 64 20 77 | 72 69 74 65 20 74 6f 20 |o> and w|rite to |
|000029f0| 74 68 65 20 62 75 66 66 | 65 72 2e 00 44 41 54 41 |the buff|er..DATA|
|00002a00| 66 01 00 00 42 75 66 66 | 65 72 5f 52 65 6d 6f 76 |f...Buff|er_Remov|
|00002a10| 65 20 28 26 34 32 39 34 | 31 29 0a 23 50 61 72 65 |e (&4294|1).#Pare|
|00002a20| 6e 74 20 42 75 66 66 65 | 72 5f 0a 3d 3e 09 52 30 |nt Buffe|r_.=>.R0|
|00002a30| 20 3d 09 48 61 6e 64 6c | 65 20 6f 66 20 62 75 66 | =.Handl|e of buf|
|00002a40| 66 65 72 20 74 6f 20 62 | 65 20 72 65 6d 6f 76 65 |fer to b|e remove|
|00002a50| 64 0a 0a 54 68 69 73 20 | 72 65 6d 6f 76 65 73 20 |d..This |removes |
|00002a60| 74 68 65 20 62 75 66 66 | 65 72 20 73 70 65 63 69 |the buff|er speci|
|00002a70| 66 69 65 64 20 62 79 20 | 69 74 73 20 68 61 6e 64 |fied by |its hand|
|00002a80| 6c 65 20 67 69 76 65 6e | 20 69 6e 20 52 30 2e 20 |le given| in R0. |
|00002a90| 49 74 20 72 65 6c 65 61 | 73 65 73 20 74 68 65 20 |It relea|ses the |
|00002aa0| 77 6f 72 6b 73 70 61 63 | 65 20 69 6e 20 74 68 65 |workspac|e in the|
|00002ab0| 20 52 4d 41 20 72 65 73 | 65 72 76 65 64 20 66 6f | RMA res|erved fo|
|00002ac0| 72 20 74 68 69 73 20 62 | 75 66 66 65 72 2e 20 59 |r this b|uffer. Y|
|00002ad0| 6f 75 20 73 68 6f 75 6c | 64 20 74 68 69 73 20 74 |ou shoul|d this t|
|00002ae0| 6f 20 72 65 6d 6f 76 65 | 20 62 75 66 66 65 72 73 |o remove| buffers|
|00002af0| 20 63 72 65 61 74 65 64 | 20 77 69 74 68 20 3c 42 | created| with <B|
|00002b00| 75 66 66 65 72 5f 43 72 | 65 61 74 65 3e 20 62 75 |uffer_Cr|eate> bu|
|00002b10| 74 20 66 6f 72 20 62 75 | 66 66 65 72 73 20 6d 61 |t for bu|ffers ma|
|00002b20| 64 65 20 75 73 69 6e 67 | 20 42 75 66 66 65 72 5f |de using| Buffer_|
|00002b30| 52 65 67 69 73 74 65 72 | 20 79 6f 75 20 73 68 6f |Register| you sho|
|00002b40| 75 6c 64 20 75 73 65 20 | 42 75 66 66 65 72 5f 44 |uld use |Buffer_D|
|00002b50| 65 52 65 67 69 73 74 65 | 72 20 69 6e 73 74 65 61 |eRegiste|r instea|
|00002b60| 64 2e 00 00 44 49 52 24 | 2c 00 00 00 2c 00 00 00 |d...DIR$|,...,...|
|00002b70| 90 2b 00 00 46 fd ff ff | b4 4b 22 a5 9c 00 00 00 |.+..F...|.K".....|
|00002b80| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|00002b90| 44 41 54 41 9c 00 00 00 | 43 61 63 68 65 0a 23 50 |DATA....|Cache.#P|
|00002ba0| 61 72 65 6e 74 20 21 52 | 6f 6f 74 0a 23 50 72 65 |arent !R|oot.#Pre|
|00002bb0| 66 69 78 20 43 61 63 68 | 65 5f 0a 23 54 61 62 6c |fix Cach|e_.#Tabl|
|00002bc0| 65 20 43 6f 6c 75 6d 6e | 73 20 32 0a 43 6f 6e 74 |e Column|s 2.Cont|
|00002bd0| 72 6f 6c 0a 43 61 63 68 | 65 61 62 6c 65 0a 55 70 |rol.Cach|eable.Up|
|00002be0| 64 61 74 65 61 62 6c 65 | 0a 44 69 73 72 75 70 74 |dateable|.Disrupt|
|00002bf0| 69 76 65 0a 46 6c 75 73 | 68 0a 23 45 6e 64 54 61 |ive.Flus|h.#EndTa|
|00002c00| 62 6c 65 0a 0a 4e 6f 74 | 20 61 76 61 69 6c 61 62 |ble..Not| availab|
|00002c10| 6c 65 20 66 72 6f 6d 20 | 52 49 53 43 20 4f 53 20 |le from |RISC OS |
|00002c20| 33 2e 35 20 6f 6e 77 61 | 72 64 73 2e 44 49 52 24 |3.5 onwa|rds.DIR$|
|00002c30| 48 03 00 00 48 03 00 00 | 74 2f 00 00 46 fd ff ff |H...H...|t/..F...|
|00002c40| 7e 77 65 db c2 02 00 00 | 13 00 00 00 00 00 00 00 |~we.....|........|
|00002c50| 21 52 6f 6f 74 00 00 00 | 38 32 00 00 46 ff ff ff |!Root...|82..F...|
|00002c60| cb 17 65 db 30 02 00 00 | 13 00 00 00 00 00 00 00 |..e.0...|........|
|00002c70| 53 65 74 46 6f 6e 74 43 | 6f 6c 6f 75 72 73 00 00 |SetFontC|olours..|
|00002c80| 68 34 00 00 46 ff ff ff | 77 02 64 db 2a 01 00 00 |h4..F...|w.d.*...|
|00002c90| 13 00 00 00 00 00 00 00 | 43 6f 6c 6f 75 72 4e 75 |........|ColourNu|
|00002ca0| 6d 62 65 72 54 6f 47 43 | 4f 4c 00 00 94 35 00 00 |mberToGC|OL...5..|
|00002cb0| 46 ff ff ff fd 14 64 db | aa 00 00 00 13 00 00 00 |F.....d.|........|
|00002cc0| 00 00 00 00 47 43 4f 4c | 54 6f 43 6f 6c 6f 75 72 |....GCOL|ToColour|
|00002cd0| 4e 75 6d 62 65 72 00 00 | 40 36 00 00 46 ff ff ff |Number..|@6..F...|
|00002ce0| f7 1e 64 db 2a 01 00 00 | 13 00 00 00 00 00 00 00 |..d.*...|........|
|00002cf0| 49 6e 76 61 6c 69 64 61 | 74 65 43 61 63 68 65 00 |Invalida|teCache.|
|00002d00| 6c 37 00 00 46 ff ff ff | 89 2c 64 db d6 00 00 00 |l7..F...|.,d.....|
|00002d10| 13 00 00 00 00 00 00 00 | 52 65 74 75 72 6e 43 6f |........|ReturnCo|
|00002d20| 6c 6f 75 72 4e 75 6d 62 | 65 72 00 00 44 38 00 00 |lourNumb|er..D8..|
|00002d30| 46 ff ff ff 81 36 64 db | 5a 01 00 00 13 00 00 00 |F....6d.|Z.......|
|00002d40| 00 00 00 00 52 65 74 75 | 72 6e 43 6f 6c 6f 75 72 |....Retu|rnColour|
|00002d50| 4e 75 6d 62 65 72 46 6f | 72 4d 6f 64 65 00 00 00 |NumberFo|rMode...|
|00002d60| a0 39 00 00 46 ff ff ff | 88 51 64 db e0 03 00 00 |.9..F...|.Qd.....|
|00002d70| 13 00 00 00 00 00 00 00 | 52 65 74 75 72 6e 46 6f |........|ReturnFo|
|00002d80| 6e 74 43 6f 6c 6f 75 72 | 73 00 00 00 80 3d 00 00 |ntColour|s....=..|
|00002d90| 46 ff ff ff 22 61 64 db | 49 01 00 00 13 00 00 00 |F..."ad.|I.......|
|00002da0| 00 00 00 00 52 65 74 75 | 72 6e 47 43 4f 4c 00 00 |....Retu|rnGCOL..|
|00002db0| cc 3e 00 00 46 ff ff ff | 5c 70 64 db 51 01 00 00 |.>..F...|\pd.Q...|
|00002dc0| 13 00 00 00 00 00 00 00 | 52 65 74 75 72 6e 47 43 |........|ReturnGC|
|00002dd0| 4f 4c 46 6f 72 4d 6f 64 | 65 00 00 00 20 40 00 00 |OLForMod|e... @..|
|00002de0| 46 ff ff ff b3 7f 64 db | da 00 00 00 13 00 00 00 |F.....d.|........|
|00002df0| 00 00 00 00 52 65 74 75 | 72 6e 4f 70 70 43 6f 6c |....Retu|rnOppCol|
|00002e00| 6f 75 72 4e 75 6d 62 65 | 72 00 00 00 fc 40 00 00 |ourNumbe|r....@..|
|00002e10| 46 ff ff ff 6c 8b 64 db | 73 01 00 00 13 00 00 00 |F...l.d.|s.......|
|00002e20| 00 00 00 00 52 65 74 75 | 72 6e 4f 70 70 43 6f 6c |....Retu|rnOppCol|
|00002e30| 6f 75 72 4e 75 6d 62 65 | 72 46 6f 72 4d 6f 64 65 |ourNumbe|rForMode|
|00002e40| 00 00 00 00 70 42 00 00 | 46 ff ff ff 91 97 64 db |....pB..|F.....d.|
|00002e50| c0 00 00 00 13 00 00 00 | 00 00 00 00 52 65 74 75 |........|....Retu|
|00002e60| 72 6e 4f 70 70 47 43 4f | 4c 00 00 00 30 43 00 00 |rnOppGCO|L...0C..|
|00002e70| 46 ff ff ff 5c a3 64 db | 55 01 00 00 13 00 00 00 |F...\.d.|U.......|
|00002e80| 00 00 00 00 52 65 74 75 | 72 6e 4f 70 70 47 43 4f |....Retu|rnOppGCO|
|00002e90| 4c 46 6f 72 4d 6f 64 65 | 00 00 00 00 88 44 00 00 |LForMode|.....D..|
|00002ea0| 46 ff ff ff 32 ae 64 db | 70 01 00 00 13 00 00 00 |F...2.d.|p.......|
|00002eb0| 00 00 00 00 53 65 6c 65 | 63 74 47 43 4f 4c 54 61 |....Sele|ctGCOLTa|
|00002ec0| 62 6c 65 00 f8 45 00 00 | 47 ff ff ff fa 0f bd cd |ble..E..|G.......|
|00002ed0| 4b 03 00 00 13 00 00 00 | 00 00 00 00 53 65 6c 65 |K.......|....Sele|
|00002ee0| 63 74 54 61 62 6c 65 00 | 44 49 00 00 46 ff ff ff |ctTable.|DI..F...|
|00002ef0| 98 43 65 db 5b 01 00 00 | 13 00 00 00 00 00 00 00 |.Ce.[...|........|
|00002f00| 53 65 74 47 43 4f 4c 00 | a0 4a 00 00 46 fd ff ff |SetGCOL.|.J..F...|
|00002f10| d6 5c 65 db 27 01 00 00 | 13 00 00 00 00 00 00 00 |.\e.'...|........|
|00002f20| 47 43 4f 4c 66 6c 61 67 | 73 00 00 00 c8 4b 00 00 |GCOLflag|s....K..|
|00002f30| 46 ff ff ff ad 72 65 db | b4 01 00 00 13 00 00 00 |F....re.|........|
|00002f40| 00 00 00 00 53 65 74 4f | 70 70 47 43 4f 4c 00 00 |....SetO|ppGCOL..|
|00002f50| 7c 4d 00 00 47 fd ff ff | 64 a0 d7 07 c8 00 00 00 ||M..G...|d.......|
|00002f60| 13 00 00 00 00 00 00 00 | 70 69 78 74 72 61 6e 73 |........|pixtrans|
|00002f70| 00 00 00 00 44 41 54 41 | c2 02 00 00 43 6f 6c 6f |....DATA|....Colo|
|00002f80| 75 72 54 72 61 6e 73 0a | 23 50 61 72 65 6e 74 20 |urTrans.|#Parent |
|00002f90| 21 52 6f 6f 74 0a 23 50 | 72 65 66 69 78 20 43 6f |!Root.#P|refix Co|
|00002fa0| 6c 6f 75 72 54 72 61 6e | 73 5f 0a 23 54 61 62 6c |lourTran|s_.#Tabl|
|00002fb0| 65 20 20 31 38 20 32 37 | 0a 3c 43 6f 6c 6f 75 72 |e 18 27|.<Colour|
|00002fc0| 4e 75 6d 62 65 72 54 6f | 47 43 4f 4c 3e 0a 43 6f |NumberTo|GCOL>.Co|
|00002fd0| 6e 76 65 72 74 43 49 45 | 54 6f 52 47 42 0a 43 6f |nvertCIE|ToRGB.Co|
|00002fe0| 6e 76 65 72 74 43 4d 59 | 4b 54 6f 52 47 42 0a 43 |nvertCMY|KToRGB.C|
|00002ff0| 6f 6e 76 65 72 74 44 65 | 76 69 63 65 43 6f 6c 6f |onvertDe|viceColo|
|00003000| 75 72 0a 43 6f 6e 76 65 | 72 74 44 65 76 69 63 65 |ur.Conve|rtDevice|
|00003010| 50 61 6c 65 74 74 65 0a | 43 6f 6e 76 65 72 74 48 |Palette.|ConvertH|
|00003020| 53 56 54 6f 52 47 42 0a | 43 6f 6e 76 65 72 74 52 |SVToRGB.|ConvertR|
|00003030| 47 42 54 6f 43 49 45 0a | 43 6f 6e 76 65 72 74 52 |GBToCIE.|ConvertR|
|00003040| 47 42 54 6f 43 4d 59 4b | 0a 43 6f 6e 76 65 72 74 |GBToCMYK|.Convert|
|00003050| 52 47 42 54 6f 48 53 56 | 0a 3c 47 43 4f 4c 54 6f |RGBToHSV|.<GCOLTo|
|00003060| 43 6f 6c 6f 75 72 4e 75 | 6d 62 65 72 3e 0a 47 65 |ColourNu|mber>.Ge|
|00003070| 6e 65 72 61 74 65 54 61 | 62 6c 65 0a 3c 49 6e 76 |nerateTa|ble.<Inv|
|00003080| 61 6c 69 64 61 74 65 43 | 61 63 68 65 3e 0a 4d 69 |alidateC|ache>.Mi|
|00003090| 73 63 4f 70 0a 52 65 61 | 64 43 61 6c 69 62 72 61 |scOp.Rea|dCalibra|
|000030a0| 74 69 6f 6e 0a 52 65 61 | 64 50 61 6c 65 74 74 65 |tion.Rea|dPalette|
|000030b0| 0a 3c 52 65 74 75 72 6e | 43 6f 6c 6f 75 72 4e 75 |.<Return|ColourNu|
|000030c0| 6d 62 65 72 3e 0a 3c 52 | 65 74 75 72 6e 43 6f 6c |mber>.<R|eturnCol|
|000030d0| 6f 75 72 4e 75 6d 62 65 | 72 46 6f 72 4d 6f 64 65 |ourNumbe|rForMode|
|000030e0| 3e 0a 3c 52 65 74 75 72 | 6e 46 6f 6e 74 43 6f 6c |>.<Retur|nFontCol|
|000030f0| 6f 75 72 73 3e 0a 3c 52 | 65 74 75 72 6e 47 43 4f |ours>.<R|eturnGCO|
|00003100| 4c 3e 0a 3c 52 65 74 75 | 72 6e 47 43 4f 4c 46 6f |L>.<Retu|rnGCOLFo|
|00003110| 72 4d 6f 64 65 3e 0a 3c | 52 65 74 75 72 6e 4f 70 |rMode>.<|ReturnOp|
|00003120| 70 43 6f 6c 6f 75 72 4e | 75 6d 62 65 72 3e 0a 3c |pColourN|umber>.<|
|00003130| 52 65 74 75 72 6e 4f 70 | 70 43 6f 6c 6f 75 72 4e |ReturnOp|pColourN|
|00003140| 75 6d 62 65 72 46 6f 72 | 4d 6f 64 65 3e 0a 3c 52 |umberFor|Mode>.<R|
|00003150| 65 74 75 72 6e 4f 70 70 | 47 43 4f 4c 3e 0a 3c 52 |eturnOpp|GCOL>.<R|
|00003160| 65 74 75 72 6e 4f 70 70 | 47 43 4f 4c 46 6f 72 4d |eturnOpp|GCOLForM|
|00003170| 6f 64 65 3e 0a 3c 53 65 | 6c 65 63 74 47 43 4f 4c |ode>.<Se|lectGCOL|
|00003180| 54 61 62 6c 65 3e 0a 3c | 53 65 6c 65 63 74 54 61 |Table>.<|SelectTa|
|00003190| 62 6c 65 3e 0a 53 65 74 | 43 61 6c 69 62 72 61 74 |ble>.Set|Calibrat|
|000031a0| 69 6f 6e 0a 53 65 74 43 | 6f 6c 6f 75 72 0a 3c 53 |ion.SetC|olour.<S|
|000031b0| 65 74 46 6f 6e 74 43 6f | 6c 6f 75 72 73 3e 0a 3c |etFontCo|lours>.<|
|000031c0| 53 65 74 47 43 4f 4c 3e | 0a 3c 53 65 74 4f 70 70 |SetGCOL>|.<SetOpp|
|000031d0| 47 43 4f 4c 3e 0a 53 65 | 74 4f 70 70 54 65 78 74 |GCOL>.Se|tOppText|
|000031e0| 43 6f 6c 6f 75 72 0a 53 | 65 74 54 65 78 74 43 6f |Colour.S|etTextCo|
|000031f0| 6c 6f 75 72 0a 57 72 69 | 74 65 43 61 6c 69 62 72 |lour.Wri|teCalibr|
|00003200| 61 74 69 6f 6e 54 6f 46 | 69 6c 65 0a 57 72 69 74 |ationToF|ile.Writ|
|00003210| 65 4c 6f 61 64 69 6e 67 | 73 54 6f 46 69 6c 65 0a |eLoading|sToFile.|
|00003220| 57 72 69 74 65 50 61 6c | 65 74 74 65 0a 23 45 6e |WritePal|ette.#En|
|00003230| 64 54 61 62 6c 65 00 00 | 44 41 54 41 30 02 00 00 |dTable..|DATA0...|
|00003240| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 53 65 74 46 |ColourTr|ans_SetF|
|00003250| 6f 6e 74 43 6f 6c 6f 75 | 72 73 20 28 26 34 30 37 |ontColou|rs (&407|
|00003260| 34 46 29 0a 23 50 61 72 | 65 6e 74 20 43 6f 6c 6f |4F).#Par|ent Colo|
|00003270| 75 72 54 72 61 6e 73 5f | 0a 3d 3e 09 52 30 20 3d |urTrans_|.=>.R0 =|
|00003280| 09 66 6f 6e 74 20 68 61 | 6e 64 6c 65 2c 20 6f 72 |.font ha|ndle, or|
|00003290| 20 30 20 66 6f 72 20 63 | 75 72 72 65 6e 74 20 66 | 0 for c|urrent f|
|000032a0| 6f 6e 74 0a 09 52 31 20 | 3d 09 62 61 63 6b 67 72 |ont..R1 |=.backgr|
|000032b0| 6f 75 6e 64 20 70 61 6c | 65 74 74 65 20 65 6e 74 |ound pal|ette ent|
|000032c0| 72 79 0a 09 52 32 20 3d | 09 66 6f 72 65 67 72 6f |ry..R2 =|.foregro|
|000032d0| 75 6e 64 20 70 61 6c 65 | 74 74 65 20 65 6e 74 72 |und pale|tte entr|
|000032e0| 79 0a 09 52 33 20 3d 09 | 6d 61 78 69 6d 75 6d 20 |y..R3 =.|maximum |
|000032f0| 66 6f 72 65 67 72 6f 75 | 6e 64 20 63 6f 6c 6f 75 |foregrou|nd colou|
|00003300| 72 20 6f 66 66 73 65 74 | 20 28 30 2d 31 34 29 0a |r offset| (0-14).|
|00003310| 0a 3c 3d 09 52 30 20 70 | 72 65 73 65 72 76 65 64 |.<=.R0 p|reserved|
|00003320| 0a 09 52 31 20 3d 09 62 | 61 63 6b 67 72 6f 75 6e |..R1 =.b|ackgroun|
|00003330| 64 20 6c 6f 67 69 63 61 | 6c 20 63 6f 6c 6f 75 72 |d logica|l colour|
|00003340| 20 28 70 72 65 73 65 72 | 76 65 64 20 69 66 20 69 | (preser|ved if i|
|00003350| 6e 20 32 35 36 20 63 6f | 6c 6f 75 72 20 6d 6f 64 |n 256 co|lour mod|
|00003360| 65 29 0a 09 52 32 20 3d | 09 66 6f 72 65 67 72 6f |e)..R2 =|.foregro|
|00003370| 75 6e 64 20 6c 6f 67 69 | 63 61 6c 20 63 6f 6c 6f |und logi|cal colo|
|00003380| 75 72 0a 09 52 33 20 3d | 09 6d 61 78 69 6d 75 6d |ur..R3 =|.maximum|
|00003390| 20 73 65 6e 73 69 62 6c | 65 20 63 6f 6c 6f 75 72 | sensibl|e colour|
|000033a0| 20 6f 66 66 73 65 74 20 | 28 75 70 20 74 6f 20 52 | offset |(up to R|
|000033b0| 33 20 6f 6e 20 65 6e 74 | 72 79 29 0a 0a 54 68 69 |3 on ent|ry)..Thi|
|000033c0| 73 20 63 61 6c 6c 2c 20 | 67 69 76 65 6e 20 61 20 |s call, |given a |
|000033d0| 70 61 69 72 20 6f 66 20 | 70 61 6c 65 74 74 65 20 |pair of |palette |
|000033e0| 65 6e 74 72 69 65 73 2c | 20 66 69 6e 64 73 20 74 |entries,| finds t|
|000033f0| 68 65 20 62 65 73 74 20 | 61 76 61 69 6c 61 62 6c |he best |availabl|
|00003400| 65 20 72 61 6e 67 65 20 | 6f 66 20 61 6e 74 69 2d |e range |of anti-|
|00003410| 61 6c 69 61 73 69 6e 67 | 20 63 6f 6c 6f 75 72 73 |aliasing| colours|
|00003420| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00003430| 70 61 6c 65 74 74 65 2c | 20 61 6e 64 20 73 65 74 |palette,| and set|
|00003440| 73 20 74 68 65 20 66 6f | 6e 74 20 6d 61 6e 61 67 |s the fo|nt manag|
|00003450| 65 72 20 74 6f 20 75 73 | 65 20 74 68 65 73 65 20 |er to us|e these |
|00003460| 63 6f 6c 6f 75 72 73 2e | 44 41 54 41 2a 01 00 00 |colours.|DATA*...|
|00003470| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 43 6f 6c 6f |ColourTr|ans_Colo|
|00003480| 75 72 4e 75 6d 62 65 72 | 54 6f 47 43 4f 4c 20 28 |urNumber|ToGCOL (|
|00003490| 26 34 30 37 34 44 29 0a | 23 50 61 72 65 6e 74 20 |&4074D).|#Parent |
|000034a0| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 0a 3d 3e 09 |ColourTr|ans_.=>.|
|000034b0| 52 30 20 3d 09 63 6f 6c | 6f 75 72 20 6e 75 6d 62 |R0 =.col|our numb|
|000034c0| 65 72 0a 3c 3d 09 52 30 | 20 3d 09 47 43 4f 4c 0a |er.<=.R0| =.GCOL.|
|000034d0| 0a 54 68 69 73 20 63 61 | 6c 6c 20 63 68 61 6e 67 |.This ca|ll chang|
|000034e0| 65 73 20 74 68 65 20 76 | 61 6c 75 65 20 70 61 73 |es the v|alue pas|
|000034f0| 73 65 64 20 66 72 6f 6d | 20 61 20 63 6f 6c 6f 75 |sed from| a colou|
|00003500| 72 20 6e 75 6d 62 65 72 | 2c 20 74 6f 20 61 20 47 |r number|, to a G|
|00003510| 43 4f 4c 2e 0a 0a 55 73 | 65 20 74 68 69 73 20 61 |COL...Us|e this a|
|00003520| 6e 64 20 3c 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |nd <Colo|urTrans_|
|00003530| 47 43 4f 4c 54 6f 43 6f | 6c 6f 75 72 4e 75 6d 62 |GCOLToCo|lourNumb|
|00003540| 65 72 3e 2c 20 6f 6e 6c | 79 20 69 6e 20 32 35 36 |er>, onl|y in 256|
|00003550| 20 63 6f 6c 6f 75 72 20 | 6d 6f 64 65 73 2c 20 74 | colour |modes, t|
|00003560| 68 65 20 72 65 73 75 6c | 74 73 20 69 6e 20 61 6e |he resul|ts in an|
|00003570| 79 20 6f 74 68 65 72 20 | 6d 6f 64 65 73 20 77 69 |y other |modes wi|
|00003580| 6c 6c 20 62 65 20 6d 65 | 61 6e 69 6e 67 6c 65 73 |ll be me|aningles|
|00003590| 73 2e 00 00 44 41 54 41 | aa 00 00 00 43 6f 6c 6f |s...DATA|....Colo|
|000035a0| 75 72 54 72 61 6e 73 5f | 47 43 4f 4c 54 6f 43 6f |urTrans_|GCOLToCo|
|000035b0| 6c 6f 75 72 4e 75 6d 62 | 65 72 20 28 26 34 30 37 |lourNumb|er (&407|
|000035c0| 34 43 29 0a 23 50 61 72 | 65 6e 74 20 43 6f 6c 6f |4C).#Par|ent Colo|
|000035d0| 75 72 54 72 61 6e 73 5f | 0a 3d 3e 09 52 30 20 3d |urTrans_|.=>.R0 =|
|000035e0| 09 47 43 4f 4c 0a 3c 3d | 09 52 30 20 3d 09 63 6f |.GCOL.<=|.R0 =.co|
|000035f0| 6c 6f 75 72 20 6e 75 6d | 62 65 72 0a 0a 54 68 69 |lour num|ber..Thi|
|00003600| 73 20 63 61 6c 6c 20 63 | 68 61 6e 67 65 73 20 74 |s call c|hanges t|
|00003610| 68 65 20 76 61 6c 75 65 | 20 70 61 73 73 65 64 20 |he value| passed |
|00003620| 66 72 6f 6d 20 47 43 4f | 4c 2c 20 74 6f 20 61 20 |from GCO|L, to a |
|00003630| 63 6f 6c 6f 75 72 20 6e | 75 6d 62 65 72 2e 00 00 |colour n|umber...|
|00003640| 44 41 54 41 2a 01 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA*...|ColourTr|
|00003650| 61 6e 73 5f 49 6e 76 61 | 6c 69 64 61 74 65 43 61 |ans_Inva|lidateCa|
|00003660| 63 68 65 20 28 26 34 30 | 37 35 30 29 0a 23 50 61 |che (&40|750).#Pa|
|00003670| 72 65 6e 74 20 43 6f 6c | 6f 75 72 54 72 61 6e 73 |rent Col|ourTrans|
|00003680| 5f 0a 54 68 69 73 20 63 | 61 6c 6c 20 6d 75 73 74 |_.This c|all must|
|00003690| 20 62 65 20 69 73 73 75 | 65 64 20 77 68 65 6e 65 | be issu|ed whene|
|000036a0| 76 65 72 20 74 68 65 20 | 70 61 6c 65 74 74 65 20 |ver the |palette |
|000036b0| 68 61 73 20 63 68 61 6e | 67 65 64 20 73 69 6e 63 |has chan|ged sinc|
|000036c0| 65 20 43 6f 6c 6f 75 72 | 54 72 61 6e 73 20 77 61 |e Colour|Trans wa|
|000036d0| 73 20 6c 61 73 74 20 63 | 61 6c 6c 65 64 2e 20 4e |s last c|alled. N|
|000036e0| 6f 74 65 20 74 68 61 74 | 20 63 6f 6c 6f 75 72 20 |ote that| colour |
|000036f0| 63 68 61 6e 67 65 73 20 | 64 75 65 20 74 6f 20 61 |changes |due to a|
|00003700| 20 6d 6f 64 65 20 63 68 | 61 6e 67 65 20 61 72 65 | mode ch|ange are|
|00003710| 20 64 65 74 65 63 74 65 | 64 2e 20 59 6f 75 20 6f | detecte|d. You o|
|00003720| 6e 6c 79 20 6e 65 65 64 | 20 74 6f 20 75 73 65 20 |nly need| to use |
|00003730| 74 68 69 73 20 69 66 20 | 61 6e 6f 74 68 65 72 20 |this if |another |
|00003740| 6f 66 20 74 68 65 20 70 | 61 6c 65 74 74 65 20 63 |of the p|alette c|
|00003750| 68 61 6e 67 65 20 6f 70 | 65 72 61 74 69 6f 6e 73 |hange op|erations|
|00003760| 20 77 61 73 20 75 73 65 | 64 2e 00 00 44 41 54 41 | was use|d...DATA|
|00003770| d6 00 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |....Colo|urTrans_|
|00003780| 52 65 74 75 72 6e 43 6f | 6c 6f 75 72 4e 75 6d 62 |ReturnCo|lourNumb|
|00003790| 65 72 20 28 26 34 30 37 | 34 34 29 0a 23 50 61 72 |er (&407|44).#Par|
|000037a0| 65 6e 74 20 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |ent Colo|urTrans_|
|000037b0| 0a 3d 3e 09 52 30 20 3d | 09 70 61 6c 65 74 74 65 |.=>.R0 =|.palette|
|000037c0| 20 65 6e 74 72 79 0a 3c | 3d 09 52 30 20 3d 09 63 | entry.<|=.R0 =.c|
|000037d0| 6f 6c 6f 75 72 20 6e 75 | 6d 62 65 72 0a 0a 54 68 |olour nu|mber..Th|
|000037e0| 69 73 20 63 61 6c 6c 2c | 20 67 69 76 65 6e 20 61 |is call,| given a|
|000037f0| 20 70 61 6c 65 74 74 65 | 20 65 6e 74 72 79 2c 20 | palette| entry, |
|00003800| 72 65 74 75 72 6e 73 20 | 74 68 65 20 63 6c 6f 73 |returns |the clos|
|00003810| 65 73 74 20 63 6f 6c 6f | 75 72 20 6e 75 6d 62 65 |est colo|ur numbe|
|00003820| 72 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |r in the| current|
|00003830| 20 6d 6f 64 65 20 61 6e | 64 20 70 61 6c 65 74 74 | mode an|d palett|
|00003840| 65 2e 00 00 44 41 54 41 | 5a 01 00 00 43 6f 6c 6f |e...DATA|Z...Colo|
|00003850| 75 72 54 72 61 6e 73 5f | 52 65 74 75 72 6e 43 6f |urTrans_|ReturnCo|
|00003860| 6c 6f 75 72 4e 75 6d 62 | 65 72 46 6f 72 4d 6f 64 |lourNumb|erForMod|
|00003870| 65 20 28 26 34 30 37 34 | 36 29 0a 3d 3e 09 52 30 |e (&4074|6).=>.R0|
|00003880| 20 3d 09 70 61 6c 65 74 | 74 65 20 65 6e 74 72 79 | =.palet|te entry|
|00003890| 0a 09 52 31 20 3d 09 64 | 65 73 74 69 6e 61 74 69 |..R1 =.d|estinati|
|000038a0| 6f 6e 20 6d 6f 64 65 2c | 20 6f 72 20 2d 31 20 66 |on mode,| or -1 f|
|000038b0| 6f 72 20 63 75 72 72 65 | 6e 74 20 6d 6f 64 65 0a |or curre|nt mode.|
|000038c0| 09 52 32 20 3d 09 70 61 | 6c 65 74 74 65 20 70 6f |.R2 =.pa|lette po|
|000038d0| 69 6e 74 65 72 2c 20 6f | 72 20 2d 31 20 66 6f 72 |inter, o|r -1 for|
|000038e0| 20 63 75 72 72 65 6e 74 | 20 70 61 6c 65 74 74 65 | current| palette|
|000038f0| 2c 20 6f 72 20 30 20 66 | 6f 72 20 64 65 66 61 75 |, or 0 f|or defau|
|00003900| 6c 74 20 66 6f 72 20 74 | 68 65 20 6d 6f 64 65 0a |lt for t|he mode.|
|00003910| 0a 3c 3d 09 52 30 20 3d | 09 63 6f 6c 6f 75 72 20 |.<=.R0 =|.colour |
|00003920| 6e 75 6d 62 65 72 0a 09 | 52 31 2c 52 32 20 70 72 |number..|R1,R2 pr|
|00003930| 65 73 65 72 76 65 64 20 | 0a 0a 54 68 69 73 20 63 |eserved |..This c|
|00003940| 61 6c 6c 2c 20 67 69 76 | 65 6e 20 61 20 70 61 6c |all, giv|en a pal|
|00003950| 65 74 74 65 20 65 6e 74 | 72 79 2c 20 61 20 64 65 |ette ent|ry, a de|
|00003960| 73 74 69 6e 61 74 69 6f | 6e 20 6d 6f 64 65 20 61 |stinatio|n mode a|
|00003970| 6e 64 20 70 61 6c 65 74 | 74 65 2c 20 72 65 74 75 |nd palet|te, retu|
|00003980| 72 6e 73 20 74 68 65 20 | 63 6c 6f 73 65 73 74 20 |rns the |closest |
|00003990| 63 6f 6c 6f 75 72 20 6e | 75 6d 62 65 72 2e 00 00 |colour n|umber...|
|000039a0| 44 41 54 41 e0 03 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA....|ColourTr|
|000039b0| 61 6e 73 5f 52 65 74 75 | 72 6e 46 6f 6e 74 43 6f |ans_Retu|rnFontCo|
|000039c0| 6c 6f 75 72 73 20 28 26 | 34 30 37 34 45 29 0a 23 |lours (&|4074E).#|
|000039d0| 50 61 72 65 6e 74 20 43 | 6f 6c 6f 75 72 54 72 61 |Parent C|olourTra|
|000039e0| 6e 73 5f 0a 3d 3e 09 52 | 30 20 3d 09 66 6f 6e 74 |ns_.=>.R|0 =.font|
|000039f0| 20 68 61 6e 64 6c 65 2c | 20 6f 72 20 30 20 66 6f | handle,| or 0 fo|
|00003a00| 72 20 63 75 72 72 65 6e | 74 20 66 6f 6e 74 0a 09 |r curren|t font..|
|00003a10| 52 31 20 3d 09 62 61 63 | 6b 67 6f 72 75 6e 64 20 |R1 =.bac|kgorund |
|00003a20| 70 61 6c 65 74 74 65 20 | 65 6e 74 72 79 0a 09 52 |palette |entry..R|
|00003a30| 32 20 3d 09 66 6f 72 65 | 67 72 6f 75 6e 64 20 70 |2 =.fore|ground p|
|00003a40| 61 6c 65 74 74 65 20 65 | 6e 74 72 79 0a 09 52 33 |alette e|ntry..R3|
|00003a50| 20 3d 09 6d 61 78 69 6d | 75 6d 20 66 6f 72 65 67 | =.maxim|um foreg|
|00003a60| 72 6f 75 6e 64 20 63 6f | 6c 6f 75 72 20 6f 66 66 |round co|lour off|
|00003a70| 73 65 74 20 28 30 2d 31 | 34 29 0a 0a 3c 3d 09 52 |set (0-1|4)..<=.R|
|00003a80| 30 20 70 72 65 73 65 72 | 76 65 64 0a 09 52 31 20 |0 preser|ved..R1 |
|00003a90| 3d 09 62 61 63 6b 67 72 | 6f 75 6e 64 20 6c 6f 67 |=.backgr|ound log|
|00003aa0| 69 63 61 6c 20 63 6f 6c | 6f 75 72 20 28 70 72 65 |ical col|our (pre|
|00003ab0| 73 65 72 76 65 64 20 69 | 66 20 69 6e 20 32 35 36 |served i|f in 256|
|00003ac0| 20 63 6f 6c 6f 75 72 20 | 6d 6f 64 65 29 0a 09 52 | colour |mode)..R|
|00003ad0| 32 20 3d 09 66 6f 72 65 | 67 72 6f 75 6e 64 20 6c |2 =.fore|ground l|
|00003ae0| 6f 67 69 63 61 6c 20 63 | 6f 6c 6f 75 72 0a 09 52 |ogical c|olour..R|
|00003af0| 33 20 3d 09 6d 61 78 69 | 6d 75 6d 20 73 65 6e 73 |3 =.maxi|mum sens|
|00003b00| 69 62 6c 65 20 63 6f 6c | 6f 75 72 20 6f 66 66 73 |ible col|our offs|
|00003b10| 65 74 20 28 75 70 20 74 | 6f 20 52 33 20 6f 6e 20 |et (up t|o R3 on |
|00003b20| 65 6e 74 72 79 29 0a 0a | 54 68 69 73 20 63 61 6c |entry)..|This cal|
|00003b30| 6c 2c 20 67 69 76 65 6e | 20 62 61 63 6b 67 72 6f |l, given| backgro|
|00003b40| 75 6e 64 20 61 6e 64 20 | 66 6f 72 65 67 72 6f 75 |und and |foregrou|
|00003b50| 6e 64 20 63 6f 6c 6f 75 | 72 73 20 61 6e 64 20 74 |nd colou|rs and t|
|00003b60| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 61 6e 74 |he numbe|r of ant|
|00003b70| 69 20 61 6c 69 61 73 69 | 6e 67 20 63 6f 6c 6f 75 |i aliasi|ng colou|
|00003b80| 72 73 20 64 65 73 69 72 | 65 64 2c 20 66 69 6e 64 |rs desir|ed, find|
|00003b90| 73 20 74 68 65 20 6d 61 | 78 69 6d 75 6d 20 72 61 |s the ma|ximum ra|
|00003ba0| 6e 67 65 20 6f 66 20 63 | 6f 6c 6f 75 72 20 74 68 |nge of c|olour th|
|00003bb0| 61 74 20 63 61 6e 20 73 | 65 6e 73 69 62 6c 79 20 |at can s|ensibly |
|00003bc0| 62 65 20 75 73 65 64 2e | 20 53 6f 20 66 6f 72 20 |be used.| So for |
|00003bd0| 74 68 65 20 67 69 76 65 | 6e 20 70 61 6c 65 74 74 |the give|n palett|
|00003be0| 65 20 65 6e 74 72 69 65 | 73 2c 20 69 74 20 66 69 |e entrie|s, it fi|
|00003bf0| 6e 64 73 20 74 68 65 20 | 62 65 73 74 20 66 69 74 |nds the |best fit|
|00003c00| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|00003c10| 70 61 6c 65 74 74 65 2c | 20 61 6e 64 20 74 68 65 |palette,| and the|
|00003c20| 6e 20 69 6e 73 70 65 63 | 74 73 20 74 68 65 20 6f |n inspec|ts the o|
|00003c30| 74 68 65 72 20 61 76 61 | 69 6c 61 62 6c 65 20 63 |ther ava|ilable c|
|00003c40| 6f 6c 6f 75 72 73 20 74 | 6f 20 64 65 64 75 63 65 |olours t|o deduce|
|00003c50| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 70 6f 73 | the max|imum pos|
|00003c60| 73 69 62 6c 65 20 61 6d | 6f 75 6e 74 20 6f 66 20 |sible am|ount of |
|00003c70| 61 6e 74 69 2d 61 6c 69 | 61 73 69 6e 67 20 75 70 |anti-ali|asing up|
|00003c80| 20 74 6f 20 74 68 65 20 | 6c 69 6d 69 74 20 69 6e | to the |limit in|
|00003c90| 20 52 33 2e 0a 0a 49 66 | 20 61 6e 74 69 2d 61 6c | R3...If| anti-al|
|00003ca0| 69 61 73 69 6e 67 20 69 | 73 20 64 65 73 69 72 61 |iasing i|s desira|
|00003cb0| 62 6c 65 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ble, you| should |
|00003cc0| 73 65 74 20 52 33 3d 31 | 34 20 6f 6e 20 65 6e 74 |set R3=1|4 on ent|
|00003cd0| 72 79 3b 20 6f 74 68 65 | 72 77 69 73 65 20 73 65 |ry; othe|rwise se|
|00003ce0| 74 20 52 33 3d 30 20 66 | 6f 72 20 6d 6f 6e 6f 63 |t R3=0 f|or monoc|
|00003cf0| 68 72 6f 6d 65 2e 0a 0a | 54 68 65 20 76 61 6c 75 |hrome...|The valu|
|00003d00| 65 73 20 69 6e 20 52 31 | 2d 52 33 20 6f 6e 20 65 |es in R1|-R3 on e|
|00003d10| 78 69 74 20 61 72 65 20 | 73 75 69 74 61 62 6c 65 |xit are |suitable|
|00003d20| 20 66 6f 72 20 70 61 73 | 73 69 6e 67 20 74 6f 20 | for pas|sing to |
|00003d30| 3c 46 6f 6e 74 5f 53 65 | 74 46 6f 6e 74 43 6f 6c |<Font_Se|tFontCol|
|00003d40| 6f 75 72 73 3e 2c 20 6f | 72 20 69 6e 63 6c 75 64 |ours>, o|r includ|
|00003d50| 69 6e 67 20 69 6e 20 61 | 20 66 6f 6e 74 20 73 74 |ing in a| font st|
|00003d60| 72 69 6e 67 20 69 6e 20 | 61 20 63 6f 6d 6d 61 6e |ring in |a comman|
|00003d70| 64 20 28 31 38 29 20 73 | 65 71 75 65 6e 63 65 2e |d (18) s|equence.|
|00003d80| 44 41 54 41 49 01 00 00 | 43 6f 6c 6f 75 72 54 72 |DATAI...|ColourTr|
|00003d90| 61 6e 73 5f 52 65 74 75 | 72 6e 47 43 4f 4c 20 28 |ans_Retu|rnGCOL (|
|00003da0| 26 34 30 37 34 32 29 0a | 23 50 61 72 65 6e 74 20 |&40742).|#Parent |
|00003db0| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 0a 3d 3e 09 |ColourTr|ans_.=>.|
|00003dc0| 52 30 20 3d 09 50 61 6c | 65 74 74 65 20 65 6e 74 |R0 =.Pal|ette ent|
|00003dd0| 72 79 0a 3c 3d 09 52 30 | 20 3d 09 47 43 4f 4c 0a |ry.<=.R0| =.GCOL.|
|00003de0| 0a 54 68 69 73 20 63 61 | 6c 6c 2c 20 67 69 76 65 |.This ca|ll, give|
|00003df0| 6e 20 61 20 70 61 6c 65 | 74 74 65 20 65 6e 74 72 |n a pale|tte entr|
|00003e00| 79 2c 20 72 65 74 75 72 | 6e 73 20 74 68 65 20 63 |y, retur|ns the c|
|00003e10| 6c 6f 73 65 73 74 20 47 | 43 4f 4c 20 69 6e 20 74 |losest G|COL in t|
|00003e20| 68 65 20 63 75 72 72 65 | 6e 74 20 6d 6f 64 65 20 |he curre|nt mode |
|00003e30| 61 6e 64 20 70 61 6c 65 | 74 74 65 2e 20 49 74 27 |and pale|tte. It'|
|00003e40| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|00003e50| 3c 43 6f 6c 6f 75 72 54 | 72 61 6e 73 5f 52 65 74 |<ColourT|rans_Ret|
|00003e60| 75 72 6e 47 43 4f 4c 46 | 6f 72 4d 6f 64 65 3e 20 |urnGCOLF|orMode> |
|00003e70| 66 6f 72 20 74 68 65 20 | 67 69 76 65 6e 20 70 61 |for the |given pa|
|00003e80| 6c 65 74 74 65 20 65 6e | 74 72 79 2c 20 77 69 74 |lette en|try, wit|
|00003e90| 68 20 70 61 72 61 6d 65 | 74 65 72 73 20 6f 66 20 |h parame|ters of |
|00003ea0| 2d 31 20 66 6f 72 20 62 | 6f 74 68 20 74 68 65 20 |-1 for b|oth the |
|00003eb0| 6d 6f 64 65 20 61 6e 64 | 20 70 61 6c 65 74 74 65 |mode and| palette|
|00003ec0| 20 70 6f 69 6e 74 65 72 | 2e 00 00 00 44 41 54 41 | pointer|....DATA|
|00003ed0| 51 01 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |Q...Colo|urTrans_|
|00003ee0| 52 65 74 75 72 6e 47 43 | 4f 4c 46 6f 72 4d 6f 64 |ReturnGC|OLForMod|
|00003ef0| 65 20 28 26 34 30 37 34 | 35 29 0a 23 50 61 72 65 |e (&4074|5).#Pare|
|00003f00| 6e 74 20 43 6f 6c 6f 75 | 72 54 72 61 6e 73 5f 0a |nt Colou|rTrans_.|
|00003f10| 3d 3e 09 52 30 20 3d 09 | 50 61 6c 65 74 74 65 20 |=>.R0 =.|Palette |
|00003f20| 65 6e 74 72 79 0a 09 52 | 31 20 3d 09 64 65 73 74 |entry..R|1 =.dest|
|00003f30| 69 6e 61 74 69 6f 6e 20 | 6d 6f 64 65 2c 20 2d 31 |ination |mode, -1|
|00003f40| 20 66 6f 72 20 63 75 72 | 72 65 6e 74 20 6d 6f 64 | for cur|rent mod|
|00003f50| 65 0a 09 52 32 20 3d 09 | 70 61 6c 65 74 74 65 20 |e..R2 =.|palette |
|00003f60| 70 6f 69 6e 74 65 72 2c | 20 6f 72 20 2d 31 20 66 |pointer,| or -1 f|
|00003f70| 6f 72 20 63 75 72 72 65 | 6e 74 20 70 61 6c 65 74 |or curre|nt palet|
|00003f80| 74 65 2c 20 6f 72 20 30 | 20 66 6f 72 20 64 65 66 |te, or 0| for def|
|00003f90| 61 75 6c 74 20 66 6f 72 | 20 74 68 65 20 6d 6f 64 |ault for| the mod|
|00003fa0| 65 0a 0a 3c 3d 09 52 30 | 20 3d 09 47 43 4f 4c 0a |e..<=.R0| =.GCOL.|
|00003fb0| 09 52 31 2c 52 32 20 70 | 72 65 73 65 72 76 65 64 |.R1,R2 p|reserved|
|00003fc0| 0a 0a 54 68 69 73 20 63 | 61 6c 6c 2c 20 67 69 76 |..This c|all, giv|
|00003fd0| 65 6e 20 61 20 70 61 6c | 65 74 74 65 20 65 6e 74 |en a pal|ette ent|
|00003fe0| 72 79 2c 20 61 20 64 65 | 73 74 69 6e 61 74 69 6f |ry, a de|stinatio|
|00003ff0| 6e 20 6d 6f 64 65 20 61 | 6e 64 20 70 61 6c 65 74 |n mode a|nd palet|
|00004000| 74 65 2c 20 72 65 74 75 | 72 6e 73 20 74 68 65 20 |te, retu|rns the |
|00004010| 63 6c 6f 73 65 73 74 20 | 47 43 4f 4c 2e 00 00 00 |closest |GCOL....|
|00004020| 44 41 54 41 da 00 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA....|ColourTr|
|00004030| 61 6e 73 5f 52 65 74 75 | 72 6e 4f 70 70 43 6f 6c |ans_Retu|rnOppCol|
|00004040| 6f 75 72 4e 75 6d 62 65 | 72 20 28 26 34 30 37 34 |ourNumbe|r (&4074|
|00004050| 39 29 0a 23 50 61 72 65 | 6e 74 20 43 6f 6c 6f 75 |9).#Pare|nt Colou|
|00004060| 72 54 72 61 6e 73 5f 0a | 3d 3e 09 52 30 20 3d 09 |rTrans_.|=>.R0 =.|
|00004070| 70 61 6c 65 74 74 65 20 | 65 6e 74 72 79 0a 3c 3d |palette |entry.<=|
|00004080| 09 52 30 20 3d 09 63 6f | 6c 6f 75 72 20 6e 75 6d |.R0 =.co|lour num|
|00004090| 62 65 72 0a 0a 54 68 69 | 73 20 63 61 6c 6c 2c 20 |ber..Thi|s call, |
|000040a0| 67 69 76 65 6e 20 61 20 | 70 61 6c 65 74 74 65 20 |given a |palette |
|000040b0| 65 6e 74 72 79 2c 20 72 | 65 74 75 72 6e 73 20 74 |entry, r|eturns t|
|000040c0| 68 65 20 66 75 72 74 68 | 65 73 74 20 63 6f 6c 6f |he furth|est colo|
|000040d0| 75 72 20 6e 75 6d 62 65 | 72 20 69 6e 20 74 68 65 |ur numbe|r in the|
|000040e0| 20 63 75 72 72 65 6e 74 | 20 6d 6f 64 65 20 61 6e | current| mode an|
|000040f0| 64 20 70 61 6c 65 74 74 | 65 2e 00 00 44 41 54 41 |d palett|e...DATA|
|00004100| 73 01 00 00 43 6f 6c 6f | 75 72 54 72 61 6e 73 5f |s...Colo|urTrans_|
|00004110| 52 65 74 75 72 6e 4f 70 | 70 43 6f 6c 6f 75 72 4e |ReturnOp|pColourN|
|00004120| 75 6d 62 65 72 46 6f 72 | 4d 6f 64 65 20 28 26 34 |umberFor|Mode (&4|
|00004130| 30 37 34 42 29 0a 23 50 | 61 72 65 6e 74 20 43 6f |074B).#P|arent Co|
|00004140| 6c 6f 75 72 54 72 61 6e | 73 5f 0a 3d 3e 09 52 30 |lourTran|s_.=>.R0|
|00004150| 20 3d 09 70 61 6c 65 74 | 74 65 20 65 6e 74 72 79 | =.palet|te entry|
|00004160| 0a 09 52 31 20 3d 09 64 | 65 73 74 69 6e 61 74 69 |..R1 =.d|estinati|
|00004170| 6f 6e 20 6d 6f 64 65 2c | 20 6f 72 20 2d 31 20 66 |on mode,| or -1 f|
|00004180| 6f 72 20 63 75 72 72 65 | 6e 74 20 6d 6f 64 65 0a |or curre|nt mode.|
|00004190| 09 52 32 20 3d 09 70 61 | 6c 65 74 74 65 20 70 6f |.R2 =.pa|lette po|
|000041a0| 69 6e 74 65 72 2c 20 6f | 72 20 2d 31 20 66 6f 72 |inter, o|r -1 for|
|000041b0| 20 63 75 72 72 65 6e 74 | 20 70 61 6c 65 74 74 65 | current| palette|
|000041c0| 2c 20 6f 72 20 30 20 66 | 6f 72 20 64 65 66 61 75 |, or 0 f|or defau|
|000041d0| 6c 74 20 66 6f 72 20 74 | 68 65 20 6d 6f 64 65 0a |lt for t|he mode.|
|000041e0| 0a 3c 3d 09 52 30 20 3d | 09 63 6f 6c 6f 75 72 20 |.<=.R0 =|.colour |
|000041f0| 6e 75 6d 62 65 72 0a 09 | 52 31 2c 52 32 20 70 72 |number..|R1,R2 pr|
|00004200| 65 73 65 72 76 65 64 20 | 0a 0a 54 68 69 73 20 63 |eserved |..This c|
|00004210| 61 6c 6c 2c 20 67 69 76 | 65 6e 20 61 20 70 61 6c |all, giv|en a pal|
|00004220| 65 74 74 65 20 65 6e 74 | 72 79 2c 20 61 20 64 65 |ette ent|ry, a de|
|00004230| 73 74 69 6e 61 74 69 6f | 6e 20 6d 6f 64 65 20 61 |stinatio|n mode a|
|00004240| 6e 64 20 70 61 6c 65 74 | 74 65 2c 20 72 65 74 75 |nd palet|te, retu|
|00004250| 72 6e 73 20 74 68 65 20 | 66 75 72 74 68 65 73 74 |rns the |furthest|
|00004260| 20 63 6f 6c 6f 75 72 20 | 6e 75 6d 62 65 72 2e 00 | colour |number..|
|00004270| 44 41 54 41 c0 00 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA....|ColourTr|
|00004280| 61 6e 73 5f 52 65 74 75 | 72 6e 4f 70 70 47 43 4f |ans_Retu|rnOppGCO|
|00004290| 4c 20 28 26 34 30 37 34 | 37 29 0a 23 50 61 72 65 |L (&4074|7).#Pare|
|000042a0| 6e 74 20 43 6f 6c 6f 75 | 72 54 72 61 6e 73 5f 0a |nt Colou|rTrans_.|
|000042b0| 3d 3e 09 52 30 20 3d 09 | 70 61 6c 65 74 74 65 20 |=>.R0 =.|palette |
|000042c0| 65 6e 74 72 79 0a 3c 3d | 09 52 30 20 3d 09 47 43 |entry.<=|.R0 =.GC|
|000042d0| 4f 4c 0a 0a 54 68 69 73 | 20 63 61 6c 6c 2c 20 67 |OL..This| call, g|
|000042e0| 69 76 65 6e 20 61 20 70 | 61 6c 65 74 74 65 20 65 |iven a p|alette e|
|000042f0| 6e 74 72 79 2c 20 72 65 | 74 75 72 6e 73 20 74 68 |ntry, re|turns th|
|00004300| 65 20 66 75 72 74 68 65 | 73 74 20 47 43 4f 4c 20 |e furthe|st GCOL |
|00004310| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6d |in the c|urrent m|
|00004320| 6f 64 65 20 61 6e 64 20 | 70 61 6c 65 74 74 65 2e |ode and |palette.|
|00004330| 44 41 54 41 55 01 00 00 | 43 6f 6c 6f 75 72 54 72 |DATAU...|ColourTr|
|00004340| 61 6e 73 5f 52 65 74 75 | 72 6e 4f 70 70 47 43 4f |ans_Retu|rnOppGCO|
|00004350| 4c 46 6f 72 4d 6f 64 65 | 20 28 26 34 30 37 34 41 |LForMode| (&4074A|
|00004360| 29 0a 23 50 61 72 65 6e | 74 20 43 6f 6c 6f 75 72 |).#Paren|t Colour|
|00004370| 54 72 61 6e 73 5f 0a 3d | 3e 09 52 30 20 3d 09 50 |Trans_.=|>.R0 =.P|
|00004380| 61 6c 65 74 74 65 20 65 | 6e 74 72 79 0a 09 52 31 |alette e|ntry..R1|
|00004390| 20 3d 09 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 6d | =.desti|nation m|
|000043a0| 6f 64 65 2c 20 2d 31 20 | 66 6f 72 20 63 75 72 72 |ode, -1 |for curr|
|000043b0| 65 6e 74 20 6d 6f 64 65 | 0a 09 52 32 20 3d 09 70 |ent mode|..R2 =.p|
|000043c0| 61 6c 65 74 74 65 20 70 | 6f 69 6e 74 65 72 2c 20 |alette p|ointer, |
|000043d0| 6f 72 20 2d 31 20 66 6f | 72 20 63 75 72 72 65 6e |or -1 fo|r curren|
|000043e0| 74 20 70 61 6c 65 74 74 | 65 2c 20 6f 72 20 30 20 |t palett|e, or 0 |
|000043f0| 66 6f 72 20 64 65 66 61 | 75 6c 74 20 66 6f 72 20 |for defa|ult for |
|00004400| 74 68 65 20 6d 6f 64 65 | 0a 0a 3c 3d 09 52 30 20 |the mode|..<=.R0 |
|00004410| 3d 09 47 43 4f 4c 0a 09 | 52 31 2c 52 32 20 70 72 |=.GCOL..|R1,R2 pr|
|00004420| 65 73 65 72 76 65 64 0a | 0a 54 68 69 73 20 63 61 |eserved.|.This ca|
|00004430| 6c 6c 2c 20 67 69 76 65 | 6e 20 61 20 70 61 6c 65 |ll, give|n a pale|
|00004440| 74 74 65 20 65 6e 74 72 | 79 2c 20 61 20 64 65 73 |tte entr|y, a des|
|00004450| 74 69 6e 61 74 69 6f 6e | 20 6d 6f 64 65 20 61 6e |tination| mode an|
|00004460| 64 20 70 61 6c 65 74 74 | 65 2c 20 72 65 74 75 72 |d palett|e, retur|
|00004470| 6e 73 20 74 68 65 20 66 | 75 72 74 68 65 73 74 20 |ns the f|urthest |
|00004480| 47 43 4f 4c 2e 00 00 00 | 44 41 54 41 70 01 00 00 |GCOL....|DATAp...|
|00004490| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 53 65 6c 65 |ColourTr|ans_Sele|
|000044a0| 63 74 47 43 4f 4c 54 61 | 62 6c 65 20 28 26 34 30 |ctGCOLTa|ble (&40|
|000044b0| 37 34 31 29 0a 23 50 61 | 72 65 6e 74 20 43 6f 6c |741).#Pa|rent Col|
|000044c0| 6f 75 72 54 72 61 6e 73 | 5f 0a 54 68 65 20 72 65 |ourTrans|_.The re|
|000044d0| 67 69 73 74 65 72 73 20 | 66 6f 72 20 74 68 69 73 |gisters |for this|
|000044e0| 20 63 61 6c 6c 20 61 72 | 65 20 75 73 65 64 20 6a | call ar|e used j|
|000044f0| 75 73 74 20 61 73 20 69 | 6e 20 3c 43 6f 6c 6f 75 |ust as i|n <Colou|
|00004500| 72 54 72 61 6e 73 5f 53 | 65 6c 65 63 74 54 61 62 |rTrans_S|electTab|
|00004510| 6c 65 3e 2e 0a 0a 54 68 | 69 73 20 63 61 6c 6c 2c |le>...Th|is call,|
|00004520| 20 67 69 76 65 6e 20 61 | 20 73 6f 75 72 63 65 20 | given a| source |
|00004530| 6d 6f 64 65 20 61 6e 64 | 20 70 61 6c 65 74 74 65 |mode and| palette|
|00004540| 2c 20 61 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |, a dest|ination |
|00004550| 6d 6f 64 65 20 61 6e 64 | 20 70 61 6c 65 74 74 65 |mode and| palette|
|00004560| 2c 20 61 6e 64 20 61 20 | 62 75 66 66 65 72 2c 20 |, and a |buffer, |
|00004570| 73 65 74 73 20 75 70 20 | 61 20 6c 69 73 74 20 6f |sets up |a list o|
|00004580| 66 20 47 43 4f 4c 73 20 | 69 6e 20 74 68 65 20 62 |f GCOLs |in the b|
|00004590| 75 66 66 65 72 2e 20 54 | 68 65 20 76 61 6c 75 65 |uffer. T|he value|
|000045a0| 73 20 63 61 6e 20 73 75 | 62 73 65 71 75 65 6e 74 |s can su|bsequent|
|000045b0| 6c 79 20 62 65 20 75 73 | 65 64 20 62 79 20 70 61 |ly be us|ed by pa|
|000045c0| 73 73 69 6e 67 20 74 68 | 65 6d 20 74 6f 20 3c 47 |ssing th|em to <G|
|000045d0| 43 4f 4c 3d 3e 42 41 53 | 49 43 3a 47 43 4f 4c 3e |COL=>BAS|IC:GCOL>|
|000045e0| 20 61 6e 64 20 3c 54 49 | 4e 54 3d 3e 42 41 53 49 | and <TI|NT=>BASI|
|000045f0| 43 3a 54 49 4e 54 3e 2e | 44 41 54 41 4b 03 00 00 |C:TINT>.|DATAK...|
|00004600| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 53 65 6c 65 |ColourTr|ans_Sele|
|00004610| 63 74 54 61 62 6c 65 20 | 28 26 34 30 37 34 30 29 |ctTable |(&40740)|
|00004620| 0a 23 50 61 72 65 6e 74 | 20 43 6f 6c 6f 75 72 54 |.#Parent| ColourT|
|00004630| 72 61 6e 73 5f 0a 3d 3e | 09 52 30 20 3d 09 73 6f |rans_.=>|.R0 =.so|
|00004640| 75 72 63 65 20 6d 6f 64 | 65 20 6f 72 20 28 69 66 |urce mod|e or (if|
|00004650| 20 3e 3d 20 32 35 36 29 | 20 70 6f 69 6e 74 65 72 | >= 256)| pointer|
|00004660| 20 74 6f 20 73 70 72 69 | 74 65 20 61 72 65 61 0a | to spri|te area.|
|00004670| 09 52 31 20 3d 09 73 6f | 75 72 63 65 20 70 61 6c |.R1 =.so|urce pal|
|00004680| 65 74 74 65 20 70 6f 69 | 6e 74 65 72 20 6f 72 20 |ette poi|nter or |
|00004690| 28 69 66 20 3e 3d 20 32 | 35 36 29 20 70 6f 69 6e |(if >= 2|56) poin|
|000046a0| 74 65 72 20 74 6f 20 73 | 70 72 69 74 65 20 6e 61 |ter to s|prite na|
|000046b0| 6d 65 2f 73 70 72 69 74 | 65 20 69 6e 20 61 72 65 |me/sprit|e in are|
|000046c0| 61 20 70 6f 69 6e 74 65 | 64 20 74 6f 20 62 79 20 |a pointe|d to by |
|000046d0| 52 30 20 28 61 73 20 73 | 70 65 63 69 66 69 65 64 |R0 (as s|pecified|
|000046e0| 20 62 79 20 52 35 29 0a | 09 52 32 20 3d 09 64 65 | by R5).|.R2 =.de|
|000046f0| 73 74 69 6e 61 74 69 6f | 6e 20 6d 6f 64 65 2c 20 |stinatio|n mode, |
|00004700| 6f 72 20 2d 31 20 66 6f | 72 20 63 75 72 72 65 6e |or -1 fo|r curren|
|00004710| 74 20 6d 6f 64 65 0a 09 | 52 33 20 3d 09 64 65 73 |t mode..|R3 =.des|
|00004720| 74 69 6e 61 74 69 6f 6e | 20 70 61 6c 65 74 74 65 |tination| palette|
|00004730| 20 70 6f 69 6e 74 65 72 | 2c 20 6f 72 20 2d 31 20 | pointer|, or -1 |
|00004740| 66 6f 72 20 63 75 72 72 | 65 6e 74 20 70 61 6c 65 |for curr|ent pale|
|00004750| 74 74 65 2c 20 6f 72 20 | 30 20 66 6f 72 20 64 65 |tte, or |0 for de|
|00004760| 66 61 75 6c 74 20 66 6f | 72 20 74 68 65 20 6d 6f |fault fo|r the mo|
|00004770| 64 65 0a 09 52 34 20 3d | 09 70 6f 69 6e 74 65 72 |de..R4 =|.pointer|
|00004780| 20 74 6f 20 3c 62 75 66 | 66 65 72 3d 3e 63 6f 6c | to <buf|fer=>col|
|00004790| 6f 75 72 74 72 61 6e 73 | 5f 70 69 78 74 72 61 6e |ourtrans|_pixtran|
|000047a0| 73 3e 0a 09 52 35 20 3d | 09 3c 66 6c 61 67 73 3d |s>..R5 =|.<flags=|
|000047b0| 3e 2e 66 6c 61 67 73 3e | 20 28 6f 6e 6c 79 20 75 |>.flags>| (only u|
|000047c0| 73 65 64 20 69 66 20 52 | 30 20 3e 3d 20 32 35 36 |sed if R|0 >= 256|
|000047d0| 29 0a 0a 3c 3d 09 41 6c | 6c 20 72 65 67 69 73 74 |)..<=.Al|l regist|
|000047e0| 65 72 73 20 70 72 65 73 | 65 72 76 65 64 0a 0a 54 |ers pres|erved..T|
|000047f0| 68 69 73 20 63 61 6c 6c | 20 73 65 74 73 20 75 70 |his call| sets up|
|00004800| 20 61 20 74 72 61 6e 73 | 6c 61 74 69 6f 6e 20 74 | a trans|lation t|
|00004810| 61 62 6c 65 20 69 6e 20 | 61 20 62 75 66 66 65 72 |able in |a buffer|
|00004820| 20 2d 20 74 68 61 74 20 | 69 73 2c 20 61 20 73 65 | - that |is, a se|
|00004830| 74 20 6f 66 20 63 6f 6c | 6f 75 72 20 6e 75 6d 62 |t of col|our numb|
|00004840| 65 72 73 20 61 73 20 75 | 73 65 64 20 62 79 20 73 |ers as u|sed by s|
|00004850| 63 61 6c 65 64 20 73 70 | 72 69 74 65 20 70 6c 6f |caled sp|rite plo|
|00004860| 74 74 69 6e 67 2e 0a 23 | 53 75 62 70 61 67 65 20 |tting..#|Subpage |
|00004870| 66 6c 61 67 73 0a 53 65 | 6c 65 63 74 20 54 61 62 |flags.Se|lect Tab|
|00004880| 6c 65 20 66 6c 61 67 73 | 0a 42 69 74 09 4d 65 61 |le flags|.Bit.Mea|
|00004890| 6e 69 6e 67 20 69 66 20 | 73 65 74 0a 23 4c 69 6e |ning if |set.#Lin|
|000048a0| 65 0a 30 09 52 31 20 3d | 09 70 6f 69 6e 74 65 72 |e.0.R1 =|.pointer|
|000048b0| 20 74 6f 20 73 70 72 69 | 74 65 20 28 6f 74 68 65 | to spri|te (othe|
|000048c0| 72 77 69 73 65 20 73 70 | 72 69 74 65 20 6e 61 6d |rwise sp|rite nam|
|000048d0| 65 29 0a 31 09 75 73 65 | 20 63 75 72 72 65 6e 74 |e).1.use| current|
|000048e0| 20 70 61 6c 65 74 74 65 | 20 69 66 20 73 70 72 69 | palette| if spri|
|000048f0| 74 65 20 64 6f 65 73 6e | 27 74 20 68 61 76 65 20 |te doesn|'t have |
|00004900| 6f 6e 65 20 28 6f 74 68 | 65 72 77 69 73 65 20 64 |one (oth|erwise d|
|00004910| 65 66 61 75 6c 74 20 70 | 61 6c 65 74 74 65 29 0a |efault p|alette).|
|00004920| 6f 74 68 65 72 20 62 69 | 74 73 20 72 65 73 65 72 |other bi|ts reser|
|00004930| 76 65 64 20 28 6d 75 73 | 74 20 62 65 20 7a 65 72 |ved (mus|t be zer|
|00004940| 6f 29 0a 00 44 41 54 41 | 5b 01 00 00 43 6f 6c 6f |o)..DATA|[...Colo|
|00004950| 75 72 54 72 61 6e 73 5f | 53 65 74 47 43 4f 4c 20 |urTrans_|SetGCOL |
|00004960| 28 26 34 30 37 34 33 29 | 0a 23 50 61 72 65 6e 74 |(&40743)|.#Parent|
|00004970| 20 43 6f 6c 6f 75 72 54 | 72 61 6e 73 5f 0a 3d 3e | ColourT|rans_.=>|
|00004980| 09 52 30 20 3d 09 50 61 | 6c 65 74 74 65 20 65 6e |.R0 =.Pa|lette en|
|00004990| 74 72 79 0a 09 52 33 20 | 3d 09 3c 66 6c 61 67 73 |try..R3 |=.<flags|
|000049a0| 3d 3e 43 6f 6c 6f 75 72 | 54 72 61 6e 73 5f 47 43 |=>Colour|Trans_GC|
|000049b0| 4f 4c 66 6c 61 67 73 3e | 0a 09 52 34 20 3d 09 47 |OLflags>|..R4 =.G|
|000049c0| 43 4f 4c 20 61 63 74 69 | 6f 6e 0a 20 20 20 0a 3c |COL acti|on. .<|
|000049d0| 3d 09 52 30 20 3d 09 47 | 43 4f 4c 0a 09 52 32 20 |=.R0 =.G|COL..R2 |
|000049e0| 3d 09 6c 6f 67 32 20 6f | 66 20 62 69 74 73 2d 70 |=.log2 o|f bits-p|
|000049f0| 65 72 2d 70 69 78 65 6c | 20 66 6f 72 20 63 75 72 |er-pixel| for cur|
|00004a00| 72 65 6e 74 20 6d 6f 64 | 65 0a 09 52 33 20 3d 09 |rent mod|e..R3 =.|
|00004a10| 69 6e 69 74 69 61 6c 20 | 76 61 6c 75 65 20 41 4e |initial |value AN|
|00004a20| 44 20 26 38 30 0a 09 52 | 34 20 70 72 65 73 65 72 |D &80..R|4 preser|
|00004a30| 76 65 64 0a 0a 54 68 69 | 73 20 63 61 6c 6c 2c 20 |ved..Thi|s call, |
|00004a40| 67 69 76 65 6e 20 61 20 | 70 61 6c 65 74 74 65 20 |given a |palette |
|00004a50| 65 6e 74 72 79 2c 20 77 | 6f 72 6b 73 20 6f 75 74 |entry, w|orks out|
|00004a60| 20 74 68 65 20 63 6c 6f | 73 65 73 74 20 47 43 4f | the clo|sest GCO|
|00004a70| 4c 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |L in the| current|
|00004a80| 20 6d 6f 64 65 20 61 6e | 64 20 70 61 6c 65 74 74 | mode an|d palett|
|00004a90| 65 2c 20 61 6e 64 20 73 | 65 74 73 20 69 74 2e 00 |e, and s|ets it..|
|00004aa0| 44 41 54 41 27 01 00 00 | 43 6f 6c 6f 75 72 54 72 |DATA'...|ColourTr|
|00004ab0| 61 6e 73 5f 53 65 74 47 | 43 4f 4c 20 66 6c 61 67 |ans_SetG|COL flag|
|00004ac0| 73 20 66 6f 72 20 52 33 | 0a 42 69 74 09 4d 65 61 |s for R3|.Bit.Mea|
|00004ad0| 6e 69 6e 67 20 69 66 20 | 73 65 74 0a 23 4c 69 6e |ning if |set.#Lin|
|00004ae0| 65 0a 37 09 73 65 74 20 | 62 61 63 6b 67 72 6f 75 |e.7.set |backgrou|
|00004af0| 6e 64 20 63 6f 6c 6f 75 | 72 20 28 6f 74 68 65 72 |nd colou|r (other|
|00004b00| 77 69 73 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 29 |wise for|eground)|
|00004b10| 0a 38 09 75 73 65 20 45 | 43 46 27 73 20 74 6f 20 |.8.use E|CF's to |
|00004b20| 67 69 76 65 20 61 20 62 | 65 74 74 65 72 20 61 70 |give a b|etter ap|
|00004b30| 70 72 6f 78 69 6d 61 74 | 69 6f 6e 20 74 6f 20 74 |proximat|ion to t|
|00004b40| 68 65 20 63 6f 6c 6f 75 | 72 0a 0a 54 68 65 20 72 |he colou|r..The r|
|00004b50| 65 6d 61 69 6e 69 6e 67 | 20 62 69 74 73 20 6f 66 |emaining| bits of|
|00004b60| 20 52 33 20 61 6e 64 20 | 74 68 65 20 74 6f 70 20 | R3 and |the top |
|00004b70| 74 68 72 65 65 20 62 79 | 74 65 73 20 6f 66 20 52 |three by|tes of R|
|00004b80| 34 20 61 72 65 20 72 65 | 73 65 72 76 65 64 2c 20 |4 are re|served, |
|00004b90| 61 6e 64 20 73 68 6f 75 | 6c 64 20 62 65 20 73 65 |and shou|ld be se|
|00004ba0| 74 20 74 6f 20 7a 65 72 | 6f 20 74 6f 20 61 6c 6c |t to zer|o to all|
|00004bb0| 6f 77 20 66 6f 72 20 66 | 75 74 75 72 65 20 65 78 |ow for f|uture ex|
|00004bc0| 70 61 6e 73 69 6f 6e 00 | 44 41 54 41 b4 01 00 00 |pansion.|DATA....|
|00004bd0| 43 6f 6c 6f 75 72 54 72 | 61 6e 73 5f 53 65 74 4f |ColourTr|ans_SetO|
|00004be0| 70 70 47 43 4f 4c 20 28 | 26 34 30 37 34 38 29 0a |ppGCOL (|&40748).|
|00004bf0| 23 50 61 72 65 6e 74 20 | 43 6f 6c 6f 75 72 54 72 |#Parent |ColourTr|
|00004c00| 61 6e 73 5f 0a 3d 3e 09 | 52 30 20 3d 09 70 61 6c |ans_.=>.|R0 =.pal|
|00004c10| 65 74 74 65 20 65 6e 74 | 72 79 0a 09 52 33 20 3d |ette ent|ry..R3 =|
|00004c20| 09 30 20 66 6f 72 20 66 | 6f 72 65 67 72 6f 75 6e |.0 for f|oregroun|
|00004c30| 64 20 6f 72 20 31 32 38 | 20 66 6f 72 20 62 61 63 |d or 128| for bac|
|00004c40| 6b 67 72 6f 75 6e 64 0a | 09 52 34 20 3d 09 47 43 |kground.|.R4 =.GC|
|00004c50| 4f 4c 20 61 63 74 69 6f | 6e 0a 0a 3c 3d 09 52 30 |OL actio|n..<=.R0|
|00004c60| 20 3d 09 47 43 4f 4c 0a | 09 52 32 20 3d 09 6c 6f | =.GCOL.|.R2 =.lo|
|00004c70| 67 32 20 6f 66 20 62 69 | 74 73 2d 70 65 72 2d 70 |g2 of bi|ts-per-p|
|00004c80| 69 78 65 6c 20 66 6f 72 | 20 63 75 72 72 65 6e 74 |ixel for| current|
|00004c90| 20 6d 6f 64 65 0a 09 52 | 33 20 3d 09 69 6e 69 74 | mode..R|3 =.init|
|00004ca0| 69 61 6c 20 76 61 6c 75 | 65 20 41 4e 44 20 26 38 |ial valu|e AND &8|
|00004cb0| 30 0a 09 52 34 20 70 72 | 65 73 65 72 76 65 64 20 |0..R4 pr|eserved |
|00004cc0| 0a 0a 54 68 69 73 20 63 | 61 6c 6c 2c 20 67 69 76 |..This c|all, giv|
|00004cd0| 65 6e 20 61 20 70 61 6c | 65 74 74 65 20 65 6e 74 |en a pal|ette ent|
|00004ce0| 72 79 2c 20 77 6f 72 6b | 73 20 6f 75 74 20 74 68 |ry, work|s out th|
|00004cf0| 65 20 66 75 72 74 68 65 | 73 74 20 47 43 4f 4c 20 |e furthe|st GCOL |
|00004d00| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 6d |in the c|urrent m|
|00004d10| 6f 64 65 20 61 6e 64 20 | 70 61 6c 65 74 74 65 2c |ode and |palette,|
|00004d20| 20 61 6e 64 20 73 65 74 | 73 20 69 74 2e 0a 0a 54 | and set|s it...T|
|00004d30| 68 65 20 74 6f 70 20 74 | 68 72 65 65 20 62 69 74 |he top t|hree bit|
|00004d40| 73 20 6f 66 20 52 33 20 | 61 6e 64 20 52 34 20 73 |s of R3 |and R4 s|
|00004d50| 68 6f 75 6c 64 20 62 65 | 20 7a 65 72 6f 20 74 6f |hould be| zero to|
|00004d60| 20 61 6c 6c 6f 77 20 66 | 6f 72 20 66 75 74 75 72 | allow f|or futur|
|00004d70| 65 20 65 78 70 61 6e 73 | 69 6f 6e 2e 44 41 54 41 |e expans|ion.DATA|
|00004d80| c8 00 00 00 43 6f 6c 6f | 75 72 20 74 72 61 6e 73 |....Colo|ur trans|
|00004d90| 6c 61 74 69 6f 6e 20 74 | 61 62 6c 65 0a 23 50 61 |lation t|able.#Pa|
|00004da0| 72 65 6e 74 20 43 6f 6c | 6f 75 72 54 72 61 6e 73 |rent Col|ourTrans|
|00004db0| 5f 53 65 6c 65 63 74 54 | 61 62 6c 65 0a 30 09 43 |_SelectT|able.0.C|
|00004dc0| 6f 6c 6f 75 72 20 74 6f | 20 75 73 65 20 69 6e 73 |olour to| use ins|
|00004dd0| 74 65 61 64 20 6f 66 20 | 73 70 72 69 74 65 20 63 |tead of |sprite c|
|00004de0| 6f 6c 6f 75 72 20 30 0a | 31 09 43 6f 6c 6f 75 72 |olour 0.|1.Colour|
|00004df0| 20 74 6f 20 75 73 65 20 | 69 6e 73 74 65 61 64 20 | to use |instead |
|00004e00| 6f 66 20 73 70 72 69 74 | 65 20 63 6f 6c 6f 75 72 |of sprit|e colour|
|00004e10| 20 31 0a 2e 0a 2e 0a 31 | 35 09 43 6f 6c 6f 75 72 | 1.....1|5.Colour|
|00004e20| 20 74 6f 20 75 73 65 20 | 69 6e 73 74 65 61 64 20 | to use |instead |
|00004e30| 6f 66 20 73 70 72 69 74 | 65 20 63 6f 6c 6f 75 72 |of sprit|e colour|
|00004e40| 20 31 35 0a 44 49 52 24 | 50 00 00 00 50 00 00 00 | 15.DIR$|P...P...|
|00004e50| 94 4e 00 00 46 fd ff ff | 68 8b 1d 00 3e 00 00 00 |.N..F...|h...>...|
|00004e60| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|00004e70| d4 4e 00 00 47 ff ff ff | f2 f5 a8 cd 33 01 00 00 |.N..G...|....3...|
|00004e80| 13 00 00 00 00 00 00 00 | 44 69 73 61 73 73 65 6d |........|Disassem|
|00004e90| 62 6c 65 00 44 41 54 41 | 3e 00 00 00 44 65 62 75 |ble.DATA|>...Debu|
|00004ea0| 67 67 65 72 0a 23 50 61 | 72 65 6e 74 20 21 52 6f |gger.#Pa|rent !Ro|
|00004eb0| 6f 74 0a 23 50 72 65 66 | 69 78 20 44 65 62 75 67 |ot.#Pref|ix Debug|
|00004ec0| 67 65 72 5f 0a 3c 44 69 | 73 61 73 73 65 6d 62 6c |ger_.<Di|sassembl|
|00004ed0| 65 3e 00 00 44 41 54 41 | 33 01 00 00 44 65 62 75 |e>..DATA|3...Debu|
|00004ee0| 67 67 65 72 5f 44 69 73 | 61 73 73 65 6d 62 6c 65 |gger_Dis|assemble|
|00004ef0| 20 20 28 26 34 30 33 38 | 30 29 0a 23 50 61 72 65 | (&4038|0).#Pare|
|00004f00| 6e 74 20 44 65 62 75 67 | 67 65 72 5f 0a 3d 3e 09 |nt Debug|ger_.=>.|
|00004f10| 52 30 20 3d 09 69 6e 73 | 74 72 75 63 74 69 6f 6e |R0 =.ins|truction|
|00004f20| 0a 09 52 31 20 3d 09 61 | 64 64 72 65 73 73 20 69 |..R1 =.a|ddress i|
|00004f30| 74 20 63 61 6d 65 20 66 | 72 6f 6d 0a 0a 3c 3d 09 |t came f|rom..<=.|
|00004f40| 52 31 20 3d 09 70 6f 69 | 6e 74 65 72 20 74 6f 20 |R1 =.poi|nter to |
|00004f50| 7a 65 72 6f 20 74 65 72 | 6d 69 6e 61 74 65 64 20 |zero ter|minated |
|00004f60| 73 74 72 69 6e 67 0a 09 | 52 32 20 3d 09 6c 65 6e |string..|R2 =.len|
|00004f70| 67 74 68 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 74 |gth, inc|luding t|
|00004f80| 65 72 6d 69 6e 61 74 6f | 72 0a 0a 54 68 69 73 20 |erminato|r..This |
|00004f90| 53 57 49 20 64 69 73 61 | 73 73 65 6d 62 6c 65 73 |SWI disa|ssembles|
|00004fa0| 20 61 6e 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 2e | an inst|ruction.|
|00004fb0| 20 54 68 65 20 61 64 64 | 72 65 73 73 20 69 6e 20 | The add|ress in |
|00004fc0| 52 31 20 69 73 20 6e 65 | 65 64 65 64 20 66 6f 72 |R1 is ne|eded for|
|00004fd0| 20 50 43 20 72 65 6c 61 | 74 69 76 65 20 69 6e 73 | PC rela|tive ins|
|00004fe0| 74 72 75 63 74 69 6f 6e | 73 20 28 6c 69 6b 65 20 |truction|s (like |
|00004ff0| 42 2c 20 42 4c 2c 20 4c | 44 52 20 78 2c 5b 50 43 |B, BL, L|DR x,[PC|
|00005000| 2c 23 2e 2e 5d 20 29 00 | 44 49 52 24 2c 00 00 00 |,#..] ).|DIR$,...|
|00005010| 2c 00 00 00 34 50 00 00 | 46 fd ff ff 71 8b 1d 00 |,...4P..|F...q...|
|00005020| 8d 00 00 00 13 00 00 00 | 00 00 00 00 21 52 6f 6f |........|....!Roo|
|00005030| 74 00 00 00 44 41 54 41 | 8d 00 00 00 44 65 76 69 |t...DATA|....Devi|
|00005040| 63 65 46 53 0a 23 50 61 | 72 65 6e 74 20 21 52 6f |ceFS.#Pa|rent !Ro|
|00005050| 6f 74 0a 43 61 6c 6c 44 | 65 76 69 63 65 0a 44 65 |ot.CallD|evice.De|
|00005060| 72 65 67 69 73 74 65 72 | 0a 44 65 72 65 67 69 73 |register|.Deregis|
|00005070| 74 65 72 4f 62 6a 65 63 | 74 73 0a 52 65 63 69 65 |terObjec|ts.Recie|
|00005080| 76 65 64 43 68 61 72 61 | 63 74 65 72 0a 52 65 67 |vedChara|cter.Reg|
|00005090| 69 73 74 65 72 0a 52 65 | 67 69 73 74 65 72 4f 62 |ister.Re|gisterOb|
|000050a0| 6a 65 63 74 73 0a 54 68 | 72 65 73 68 6f 6c 64 0a |jects.Th|reshold.|
|000050b0| 54 72 61 6e 73 6d 69 74 | 43 68 61 72 61 63 74 65 |Transmit|Characte|
|000050c0| 72 00 00 00 44 49 52 24 | 2c 00 00 00 2c 00 00 00 |r...DIR$|,...,...|
|000050d0| f0 50 00 00 47 fd ff ff | ed 0d 84 82 b3 00 00 00 |.P..G...|........|
|000050e0| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|000050f0| 44 41 54 41 b3 00 00 00 | 44 4d 41 0a 23 50 61 72 |DATA....|DMA.#Par|
|00005100| 65 6e 74 20 21 52 6f 6f | 74 0a 23 50 72 65 66 69 |ent !Roo|t.#Prefi|
|00005110| 78 20 44 4d 41 5f 0a 23 | 54 61 62 6c 65 20 43 6f |x DMA_.#|Table Co|
|00005120| 6c 75 6d 6e 73 20 32 0a | 52 65 67 69 73 74 65 72 |lumns 2.|Register|
|00005130| 43 68 61 6e 6e 65 6c 0a | 44 65 72 65 67 69 73 74 |Channel.|Deregist|
|00005140| 65 72 43 68 61 6e 6e 65 | 6c 0a 51 75 65 75 65 54 |erChanne|l.QueueT|
|00005150| 72 61 6e 73 66 65 72 0a | 54 65 72 6d 69 6e 61 74 |ransfer.|Terminat|
|00005160| 65 54 72 61 6e 73 66 65 | 72 0a 53 75 73 70 65 6e |eTransfe|r.Suspen|
|00005170| 64 54 72 61 6e 73 66 65 | 72 0a 52 65 73 75 6d 65 |dTransfe|r.Resume|
|00005180| 54 72 61 6e 73 66 65 72 | 0a 45 78 61 6d 69 6e 65 |Transfer|.Examine|
|00005190| 54 72 61 6e 73 66 65 72 | 0a 23 45 6e 64 54 61 62 |Transfer|.#EndTab|
|000051a0| 6c 65 0a 00 44 49 52 24 | 9c 00 00 00 9c 00 00 00 |le..DIR$|........|
|000051b0| 40 52 00 00 46 fd ff ff | 61 58 66 db 49 00 00 00 |@R..F...|aXf.I...|
|000051c0| 13 00 00 00 00 00 00 00 | 21 52 6f 6f 74 00 00 00 |........|!Root...|
|000051d0| 8c 52 00 00 46 ff ff ff | d9 fb 65 db 30 04 00 00 |.R..F...|..e.0...|
|000051e0| 13 00 00 00 00 00 00 00 | 44 69 73 63 46 6f 72 6d |........|DiscForm|
|000051f0| 61 74 00 00 bc 56 00 00 | 46 fd ff ff 6d 2b 66 db |at...V..|F...m+f.|
|00005200| 83 01 00 00 13 00 00 00 | 00 00 00 00 46 6f 72 6d |........|....Form|
|00005210| 61 74 53 70 65 63 00 00 | 40 58 00 00 46 ff ff ff |atSpec..|@X..F...|
|00005220| 20 4e 66 db 09 05 00 00 | 13 00 00 00 00 00 00 00 | Nf.....|........|
|00005230| 4c 61 79 6f 75 74 53 74 | 72 75 63 74 75 72 65 00 |LayoutSt|ructure.|
|00005240| 44 41 54 41 49 00 00 00 | 44 4f 53 46 53 0a 23 50 |DATAI...|DOSFS.#P|
|00005250| 61 72 65 6e 74 20 21 52 | 6f 6f 74 0a 23 50 72 65 |arent !R|oot.#Pre|
|00005260| 66 69 78 20 44 4f 53 46 | 53 5f 0a 3c 44 69 73 63 |fix DOSF|S_.<Disc|
|00005270| 46 6f 72 6d 61 74 3e 0a | 3c 4c 61 79 6f 75 74 53 |Format>.|<LayoutS|
|00005280| 74 72 75 63 74 75 72 65 | 3e 00 00 00 44 41 54 41 |tructure|>...DATA|
|00005290| 30 04 00 00 44 4f 53 46 | 53 5f 44 69 73 63 46 6f |0...DOSF|S_DiscFo|
|000052a0| 72 6d 61 74 20 28 26 34 | 31 41 43 30 29 0a 23 50 |rmat (&4|1AC0).#P|
|000052b0| 61 72 65 6e 74 20 44 4f | 53 46 53 5f 0a 3d 3e 09 |arent DO|SFS_.=>.|
|000052c0| 52 30 20 3d 09 70 6f 69 | 6e 74 65 72 20 74 6f 20 |R0 =.poi|nter to |
|000052d0| 3c 64 69 73 63 20 66 6f | 72 6d 61 74 20 73 74 72 |<disc fo|rmat str|
|000052e0| 75 63 74 75 72 65 3d 3e | 46 69 6c 65 43 6f 72 65 |ucture=>|FileCore|
|000052f0| 5f 46 6f 72 6d 61 74 3e | 20 74 6f 20 62 65 20 66 |_Format>| to be f|
|00005300| 69 6c 6c 65 64 20 69 6e | 0a 09 52 31 20 3d 09 53 |illed in|..R1 =.S|
|00005310| 57 49 20 6e 75 6d 62 65 | 72 20 74 6f 20 63 61 6c |WI numbe|r to cal|
|00005320| 6c 20 74 6f 20 76 65 74 | 20 64 69 73 63 20 66 6f |l to vet| disc fo|
|00005330| 72 6d 61 74 20 28 65 67 | 20 3c 41 44 46 53 5f 56 |rmat (eg| <ADFS_V|
|00005340| 65 74 46 6f 72 6d 61 74 | 3e 29 0a 09 52 32 20 3d |etFormat|>)..R2 =|
|00005350| 09 70 61 72 61 6d 65 74 | 65 72 20 69 6e 20 52 31 |.paramet|er in R1|
|00005360| 20 74 6f 20 75 73 65 20 | 77 68 65 6e 20 63 61 6c | to use |when cal|
|00005370| 6c 69 6e 67 20 76 65 74 | 74 69 6e 67 20 53 57 49 |ling vet|ting SWI|
|00005380| 0a 09 52 33 20 3d 09 3c | 66 6f 72 6d 61 74 20 73 |..R3 =.<|format s|
|00005390| 70 65 63 69 66 69 65 72 | 3d 3e 44 4f 53 46 53 5f |pecifier|=>DOSFS_|
|000053a0| 46 6f 72 6d 61 74 53 70 | 65 63 3e 0a 0a 3c 3d 09 |FormatSp|ec>..<=.|
|000053b0| 52 30 2d 52 33 20 70 72 | 65 73 65 72 76 65 64 0a |R0-R3 pr|eserved.|
|000053c0| 0a 54 68 69 73 20 63 61 | 6c 6c 20 66 69 6c 6c 73 |.This ca|ll fills|
|000053d0| 20 69 6e 20 74 68 65 20 | 64 69 73 63 20 66 6f 72 | in the |disc for|
|000053e0| 6d 61 74 20 73 74 72 75 | 63 74 75 72 65 20 70 6f |mat stru|cture po|
|000053f0| 69 6e 74 65 64 20 74 6f | 20 62 79 20 52 30 20 77 |inted to| by R0 w|
|00005400| 69 74 68 20 74 68 65 20 | 27 70 72 65 66 65 63 74 |ith the |'prefect|
|00005410| 27 20 70 61 72 61 6d 65 | 74 65 72 73 20 66 6f 72 |' parame|ters for|
|00005420| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 66 | the spe|cified f|
|00005430| 6f 72 6d 61 74 2c 20 74 | 61 6b 69 6e 67 20 6e 6f |ormat, t|aking no|
|00005440| 20 61 63 63 6f 75 6e 74 | 20 6f 66 20 74 68 65 20 | account| of the |
|00005450| 61 62 69 6c 69 74 69 65 | 73 20 6f 66 20 74 68 65 |abilitie|s of the|
|00005460| 20 61 76 61 69 6c 61 62 | 6c 65 20 68 61 72 64 77 | availab|le hardw|
|00005470| 61 72 65 20 74 68 61 74 | 20 77 69 6c 6c 20 68 61 |are that| will ha|
|00005480| 76 65 20 74 6f 20 70 65 | 72 66 6f 72 6d 20 74 68 |ve to pe|rform th|
|00005490| 65 20 66 6f 72 6d 61 74 | 2e 20 4f 6e 63 65 20 66 |e format|. Once f|
|000054a0| 69 6c 6c 65 64 20 69 6e | 2c 20 74 68 69 73 20 53 |illed in|, this S|
|000054b0| 57 49 20 63 61 6c 6c 73 | 20 74 68 65 20 76 65 74 |WI calls| the vet|
|000054c0| 74 69 6e 67 20 53 57 49 | 20 74 6f 20 63 68 65 63 |ting SWI| to chec|
|000054d0| 6b 20 74 68 65 20 66 6f | 72 6d 61 79 20 73 74 72 |k the fo|rmay str|
|000054e0| 75 63 74 75 72 65 20 66 | 6f 72 20 61 63 68 69 65 |ucture f|or achie|
|000054f0| 76 61 62 69 6c 69 74 79 | 20 6f 6e 20 74 68 65 20 |vability| on the |
|00005500| 61 76 61 69 6c 61 62 6c | 65 20 68 61 72 64 77 61 |availabl|e hardwa|
|00005510| 72 65 2e 20 54 68 65 20 | 76 65 74 74 69 6e 67 20 |re. The |vetting |
|00005520| 53 57 49 20 6d 61 79 20 | 67 65 6e 65 72 61 74 65 |SWI may |generate|
|00005530| 20 61 6e 20 65 72 72 6f | 72 20 69 66 20 74 68 65 | an erro|r if the|
|00005540| 20 66 6f 72 6d 61 74 20 | 64 69 66 66 65 72 73 20 | format |differs |
|00005550| 77 69 64 65 6c 79 20 66 | 72 6f 6d 20 77 68 61 74 |widely f|rom what|
|00005560| 20 63 61 6e 20 62 65 20 | 61 63 68 69 65 76 65 64 | can be |achieved|
|00005570| 3b 20 61 6c 74 65 72 6e | 61 74 69 76 65 6c 79 20 |; altern|atively |
|00005580| 69 74 20 6d 61 79 20 61 | 6c 74 65 72 20 74 68 65 |it may a|lter the|
|00005590| 20 66 6f 72 6d 61 74 20 | 73 74 72 75 63 74 75 72 | format |structur|
|000055a0| 65 20 74 6f 20 74 68 65 | 20 63 6c 6f 73 65 73 74 |e to the| closest|
|000055b0| 20 6d 61 74 63 68 20 74 | 68 61 74 20 63 61 6e 20 | match t|hat can |
|000055c0| 62 65 20 61 63 68 69 65 | 76 65 64 2e 20 54 68 65 |be achie|ved. The|
|000055d0| 20 76 65 74 74 69 6e 67 | 20 53 57 49 20 74 68 65 | vetting| SWI the|
|000055e0| 6e 20 72 65 74 75 72 6e | 73 20 74 6f 20 74 68 69 |n return|s to thi|
|000055f0| 73 20 53 57 49 2c 20 77 | 68 69 63 68 20 63 68 65 |s SWI, w|hich che|
|00005600| 63 6b 73 20 77 68 65 74 | 68 65 72 20 74 68 65 20 |cks whet|her the |
|00005610| 66 6f 72 6d 61 74 20 62 | 6c 6f 63 6b 20 2d 20 61 |format b|lock - a|
|00005620| 73 20 75 70 64 61 74 65 | 64 20 62 79 20 74 68 65 |s update|d by the|
|00005630| 20 76 65 74 74 69 6e 67 | 20 53 57 49 20 2d 20 69 | vetting| SWI - i|
|00005640| 73 20 73 74 69 6c 6c 20 | 61 6e 20 61 64 65 71 75 |s still |an adequ|
|00005650| 61 74 65 20 6d 61 74 63 | 68 20 66 6f 72 20 74 68 |ate matc|h for th|
|00005660| 65 20 64 65 73 69 72 65 | 64 20 66 6f 72 6d 61 74 |e desire|d format|
|00005670| 2e 20 49 66 20 69 74 20 | 69 73 2c 20 74 68 69 73 |. If it |is, this|
|00005680| 20 53 57 49 20 72 65 74 | 75 72 6e 73 20 74 6f 20 | SWI ret|urns to |
|00005690| 69 74 73 20 63 61 6c 6c | 65 72 3b 20 6f 74 68 65 |its call|er; othe|
|000056a0| 72 77 69 73 65 20 69 74 | 20 67 65 6e 65 72 61 74 |rwise it| generat|
|000056b0| 65 73 20 61 6e 20 65 72 | 72 6f 72 2e 44 41 54 41 |es an er|ror.DATA|
|000056c0| 83 01 00 00 46 6f 72 6d | 61 74 20 73 70 65 63 69 |....Form|at speci|
|000056d0| 66 69 65 72 0a 5c 23 09 | 4e 61 6d 65 09 53 69 7a |fier.\#.|Name.Siz|
|000056e0| 65 09 4f 53 09 09 54 79 | 70 65 0a 23 4c 69 6e 65 |e.OS..Ty|pe.#Line|
|000056f0| 0a 30 09 44 4f 53 2f 51 | 09 31 2e 34 34 4d 09 4d |.0.DOS/Q|.1.44M.M|
|00005700| 53 2d 44 4f 53 20 33 2e | 32 30 09 64 6f 75 62 6c |S-DOS 3.|20.doubl|
|00005710| 65 20 73 69 64 65 64 0a | 31 09 44 4f 53 2f 4d 09 |e sided.|1.DOS/M.|
|00005720| 37 32 30 6b 09 4d 53 2d | 44 4f 53 20 33 2e 32 30 |720k.MS-|DOS 3.20|
|00005730| 09 64 6f 75 62 6c 65 20 | 73 69 64 65 64 0a 32 09 |.double |sided.2.|
|00005740| 44 4f 53 2f 48 09 31 2e | 32 30 4d 09 4d 53 2d 44 |DOS/H.1.|20M.MS-D|
|00005750| 4f 53 20 33 09 64 6f 75 | 62 6c 65 20 73 69 64 65 |OS 3.dou|ble side|
|00005760| 64 0a 33 09 44 4f 53 2f | 4e 09 33 36 30 6b 09 4d |d.3.DOS/|N.360k.M|
|00005770| 53 2d 44 4f 53 20 32 2c | 33 09 64 6f 75 62 6c 65 |S-DOS 2,|3.double|
|00005780| 20 73 69 64 65 64 0a 34 | 09 44 4f 53 2f 50 09 31 | sided.4|.DOS/P.1|
|00005790| 38 30 6b 09 4d 53 2d 44 | 4f 53 20 32 2c 33 09 73 |80k.MS-D|OS 2,3.s|
|000057a0| 69 6e 67 6c 65 20 73 69 | 64 65 64 0a 35 09 44 4f |ingle si|ded.5.DO|
|000057b0| 53 2f 54 09 33 32 30 6b | 09 4d 53 2d 44 4f 53 20 |S/T.320k|.MS-DOS |
|000057c0| 31 2c 32 2c 33 09 64 6f | 75 62 6c 65 20 73 69 64 |1,2,3.do|uble sid|
|000057d0| 65 64 0a 36 09 44 4f 53 | 2f 55 09 31 36 30 6b 09 |ed.6.DOS|/U.160k.|
|000057e0| 4d 53 2d 44 4f 53 20 31 | 2c 32 2c 33 09 73 69 6e |MS-DOS 1|,2,3.sin|
|000057f0| 67 6c 65 20 73 69 64 65 | 64 0a 37 09 41 74 61 72 |gle side|d.7.Atar|
|00005800| 69 2f 4d 09 37 32 30 6b | 09 41 74 61 72 69 09 09 |i/M.720k|.Atari..|
|00005810| 64 6f 75 62 6c 65 20 73 | 69 64 65 64 0a 38 09 41 |double s|ided.8.A|
|00005820| 74 61 72 69 2f 4e 09 33 | 36 30 6b 09 41 74 61 72 |tari/N.3|60k.Atar|
|00005830| 69 09 09 73 69 6e 67 6c | 65 20 73 69 64 65 64 00 |i..singl|e sided.|
|00005840| 44 41 54 41 09 05 00 00 | 44 4f 53 46 53 5f 4c 61 |DATA....|DOSFS_La|
|00005850| 79 6f 75 74 53 74 72 75 | 63 74 75 72 65 20 28 26 |youtStru|cture (&|
|00005860| 34 31 41 43 31 29 0a 23 | 50 61 72 65 6e 74 20 44 |41AC1).#|Parent D|
|00005870| 4f 53 46 53 5f 0a 3d 3e | 09 52 30 20 3d 09 3c 73 |OSFS_.=>|.R0 =.<s|
|00005880| 74 72 75 63 74 75 72 65 | 20 73 70 65 63 69 66 69 |tructure| specifi|
|00005890| 65 72 3d 3e 44 4f 53 46 | 53 5f 46 6f 72 6d 61 74 |er=>DOSF|S_Format|
|000058a0| 53 70 65 63 3e 0a 09 52 | 31 20 3d 09 70 6f 69 6e |Spec>..R|1 =.poin|
|000058b0| 74 65 72 20 74 6f 20 62 | 61 64 20 62 6c 6f 63 6b |ter to b|ad block|
|000058c0| 20 6c 69 73 74 20 28 74 | 65 72 6d 69 6e 61 74 65 | list (t|erminate|
|000058d0| 64 20 62 79 20 2d 31 29 | 0a 09 52 32 20 3d 09 70 |d by -1)|..R2 =.p|
|000058e0| 6f 69 6e 74 65 72 20 74 | 6f 20 6e 75 6c 6c 20 74 |ointer t|o null t|
|000058f0| 65 72 6d 69 6e 61 74 65 | 64 20 64 69 73 63 20 6e |erminate|d disc n|
|00005900| 61 6d 65 0a 09 52 33 20 | 3d 09 69 6d 61 67 65 20 |ame..R3 |=.image |
|00005910| 66 69 6c 65 20 68 61 6e | 64 6c 65 0a 0a 3c 3d 20 |file han|dle..<= |
|00005920| 52 30 2d 52 33 20 70 72 | 65 73 65 72 76 65 64 0a |R0-R3 pr|eserved.|
|00005930| 0a 54 68 69 73 20 63 61 | 6c 6c 20 6c 61 79 73 20 |.This ca|ll lays |
|00005940| 6f 75 74 20 69 6e 20 74 | 68 65 20 73 70 65 63 69 |out in t|he speci|
|00005950| 66 69 65 64 20 69 6d 61 | 67 65 20 61 6c 6c 20 6e |fied ima|ge all n|
|00005960| 65 63 65 73 73 61 72 79 | 20 73 74 72 75 63 74 75 |ecessary| structu|
|00005970| 72 65 73 20 74 6f 20 68 | 61 76 65 20 61 20 76 61 |res to h|ave a va|
|00005980| 6c 69 64 2c 20 65 6d 70 | 74 79 20 64 69 73 63 2e |lid, emp|ty disc.|
|00005990| 20 49 74 20 63 61 6e 20 | 62 65 20 75 73 65 64 3a | It can |be used:|
|000059a0| 0a 0a 23 49 6e 64 65 6e | 74 20 32 0a 8f 20 74 6f |..#Inden|t 2.. to|
|000059b0| 20 6c 61 79 6f 75 74 20 | 61 20 73 74 72 75 63 74 | layout |a struct|
|000059c0| 75 72 65 20 6f 6e 20 61 | 20 62 6c 61 63 6b 2c 20 |ure on a| black, |
|000059d0| 66 6f 72 6d 61 74 74 65 | 64 20 64 69 73 63 20 28 |formatte|d disc (|
|000059e0| 69 6e 20 77 68 69 63 68 | 20 63 61 73 65 20 74 68 |in which| case th|
|000059f0| 65 20 73 70 65 63 69 66 | 69 65 64 20 69 6d 61 67 |e specif|ied imag|
|00005a00| 65 20 73 68 6f 75 6c 64 | 20 62 65 20 74 68 65 20 |e should| be the |
|00005a10| 77 68 6f 6c 65 20 64 69 | 73 63 20 69 6d 61 67 65 |whole di|sc image|
|00005a20| 29 0a 8f 20 74 6f 20 6c | 61 79 6f 75 74 20 61 20 |).. to l|ayout a |
|00005a30| 70 61 72 74 69 74 69 6f | 6e 20 69 6e 20 61 20 66 |partitio|n in a f|
|00005a40| 69 6c 65 20 6f 6e 20 61 | 20 64 69 73 63 20 74 68 |ile on a| disc th|
|00005a50| 61 74 20 68 61 73 20 61 | 6c 72 65 61 64 79 20 62 |at has a|lready b|
|00005a60| 65 65 6e 20 66 6f 72 6d | 61 74 74 65 64 20 28 66 |een form|atted (f|
|00005a70| 6f 72 20 65 78 61 6d 70 | 6c 65 20 66 6f 72 20 74 |or examp|le for t|
|00005a80| 68 65 20 50 43 20 65 6d | 75 6c 61 74 6f 72 29 2e |he PC em|ulator).|
|00005a90| 0a 23 49 6e 64 65 6e 74 | 0a 0a 49 66 20 74 68 65 |.#Indent|..If the|
|00005aa0| 20 67 69 76 65 6e 20 69 | 6d 61 67 65 20 66 6f 72 | given i|mage for|
|00005ab0| 6d 61 74 20 68 61 73 20 | 6e 6f 20 6f 70 74 69 6f |mat has |no optio|
|00005ac0| 6e 20 74 6f 20 73 74 6f | 72 65 20 61 20 64 69 73 |n to sto|re a dis|
|00005ad0| 63 20 6e 61 6d 65 20 74 | 68 65 6e 20 74 68 69 73 |c name t|hen this|
|00005ae0| 20 70 61 72 61 6d 65 74 | 65 72 20 73 68 6f 75 6c | paramet|er shoul|
|00005af0| 64 20 62 65 20 69 67 6e | 6f 72 65 64 2e 0a 0a 54 |d be ign|ored...T|
|00005b00| 68 65 20 62 61 64 20 62 | 6c 6f 63 6b 20 6c 69 73 |he bad b|lock lis|
|00005b10| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 70 72 65 73 |t should| be pres|
|00005b20| 65 6e 74 65 64 20 61 73 | 20 61 6e 20 61 72 72 61 |ented as| an arra|
|00005b30| 79 20 6f 66 20 62 61 64 | 20 62 6c 6f 63 6b 20 61 |y of bad| block a|
|00005b40| 64 64 72 65 73 73 65 73 | 2e 20 45 61 63 68 20 61 |ddresses|. Each a|
|00005b50| 64 64 72 65 73 73 20 69 | 73 20 34 20 62 79 74 65 |ddress i|s 4 byte|
|00005b60| 73 20 6c 6f 6e 67 2e 20 | 54 68 65 20 61 72 72 61 |s long. |The arra|
|00005b70| 79 20 69 73 20 74 65 72 | 6d 69 6e 61 74 65 64 20 |y is ter|minated |
|00005b80| 62 79 20 61 20 2d 31 20 | 65 6e 74 72 79 2e 0a 0a |by a -1 |entry...|
|00005b90| 49 74 27 73 20 61 73 73 | 75 6d 65 64 20 74 68 61 |It's ass|umed tha|
|00005ba0| 74 20 52 30 20 67 69 76 | 65 73 20 65 6e 6f 75 67 |t R0 giv|es enoug|
|00005bb0| 68 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 66 6f |h inform|ation fo|
|00005bc0| 72 20 74 68 65 20 66 6f | 72 6d 61 74 20 2d 20 69 |r the fo|rmat - i|
|00005bd0| 74 20 6d 61 74 20 62 65 | 20 74 68 61 74 20 52 30 |t mat be| that R0|
|00005be0| 20 63 6f 6e 74 61 69 6e | 73 20 6d 61 6e 79 20 62 | contain|s many b|
|00005bf0| 69 74 20 66 69 65 6c 64 | 73 20 6f 72 20 70 6f 69 |it field|s or poi|
|00005c00| 6e 74 73 20 74 6f 20 61 | 20 62 6c 6f 63 6b 20 6f |nts to a| block o|
|00005c10| 66 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 73 20 2d |f inform|ations -|
|00005c20| 20 74 68 65 20 63 68 6f | 69 63 65 20 69 73 20 75 | the cho|ice is u|
|00005c30| 70 20 74 6f 20 74 68 65 | 20 69 6d 61 67 65 20 66 |p to the| image f|
|00005c40| 69 6c 69 6e 67 20 73 79 | 73 74 65 6d 20 6d 6f 64 |iling sy|stem mod|
|00005c50| 75 6c 65 2e 20 54 68 65 | 20 76 61 6c 75 65 20 69 |ule. The| value i|
|00005c60| 6e 20 52 30 20 69 73 20 | 75 73 65 64 20 74 6f 20 |n R0 is |used to |
|00005c70| 70 61 73 73 20 65 6e 6f | 75 67 68 20 69 6e 66 6f |pass eno|ugh info|
|00005c80| 72 6d 61 74 69 6f 6e 20 | 74 6f 20 73 70 65 63 69 |rmation |to speci|
|00005c90| 66 79 20 74 68 65 20 64 | 69 73 63 20 73 74 72 75 |fy the d|isc stru|
|00005ca0| 63 74 75 72 65 20 44 4f | 53 46 53 20 75 73 65 73 |cture DO|SFS uses|
|00005cb0| 20 61 20 73 69 6d 70 6c | 65 20 74 61 62 6c 65 20 | a simpl|e table |
|00005cc0| 69 6e 64 65 78 20 66 6f | 72 20 74 68 69 73 3b 20 |index fo|r this; |
|00005cd0| 6f 74 68 65 72 20 69 6d | 61 67 65 20 66 69 6c 69 |other im|age fili|
|00005ce0| 6e 67 20 73 79 73 74 65 | 6d 73 20 6d 61 79 20 70 |ng syste|ms may p|
|00005cf0| 61 73 73 20 64 69 66 66 | 65 72 65 6e 74 20 69 6e |ass diff|erent in|
|00005d00| 66 6f 72 6d 61 74 69 6f | 6e 73 20 28 75 73 69 6e |formatio|ns (usin|
|00005d10| 67 20 61 20 70 6f 69 6e | 74 65 72 20 69 66 20 6e |g a poin|ter if n|
|00005d20| 65 63 65 73 73 61 72 79 | 29 20 66 6f 72 20 74 68 |ecessary|) for th|
|00005d30| 65 69 72 20 4c 61 79 6f | 75 74 53 74 72 75 63 74 |eir Layo|utStruct|
|00005d40| 75 72 65 20 53 57 49 2e | 0a 00 00 00 44 49 52 24 |ure SWI.|....DIR$|
|00005d50| 6c 00 00 00 6c 00 00 00 | b8 5d 00 00 47 fd ff ff |l...l...|.]..G...|
|00005d60| 5e 6c 18 1e 69 00 00 00 | 13 00 00 00 00 00 00 00 |^l..i...|........|
|00005d70| 21 52 6f 6f 74 00 00 00 | 24 5e 00 00 47 ff ff ff |!Root...|$^..G...|
|00005d80| db 4a 17 1e 2f 04 00 00 | 13 00 00 00 00 00 00 00 |.J../...|........|
|00005d90| 52 65 6e 64 65 72 00 00 | 54 62 00 00 47 ff ff ff |Render..|Tb..G...|
|00005da0| 63 7d 18 1e f0 01 00 00 | 13 00 00 00 00 00 00 00 |c}......|........|
|00005db0| 42 42 6f 78 00 00 00 00 | 44 41 54 41 69 00 00 00 |BBox....|DATAi...|
|00005dc0| 44 72 61 77 46 69 6c 65 | 0a 23 50 61 72 65 6e 74 |DrawFile|.#Parent|
|00005dd0| 20 21 52 6f 6f 74 0a 23 | 50 72 65 66 69 78 20 44 | !Root.#|Prefix D|
|00005de0| 72 61 77 46 69 6c 65 5f | 0a 23 54 61 62 6c 65 20 |rawFile_|.#Table |
|00005df0| 43 6f 6c 75 6d 6e 73 20 | 31 0a 3c 52 65 6e 64 65 |Columns |1.<Rende|
|00005e00| 72 3e 0a 3c 42 42 6f 78 | 3e 0a 44 65 63 6c 61 72 |r>.<BBox|>.Declar|
|00005e10| 65 46 6f 6e 74 73 0a 23 | 45 6e 64 54 61 62 6c 65 |eFonts.#|EndTable|
|00005e20| 0a 00 00 00 44 41 54 41 | 2f 04 00 00 44 72 61 77 |....DATA|/...Draw|
|00005e30| 46 69 6c 65 5f 52 65 6e | 64 65 72 0a 23 50 61 72 |File_Ren|der.#Par|
|00005e40| 65 6e 74 20 44 72 61 77 | 46 69 6c 65 5f 0a 3d 3e |ent Draw|File_.=>|
|00005e50| 09 52 30 20 3d 09 3c 66 | 6c 61 67 73 3d 3e 2e 66 |.R0 =.<f|lags=>.f|
|00005e60| 6c 61 67 73 3e 0a 09 52 | 31 20 3d 09 70 6f 69 6e |lags>..R|1 =.poin|
|00005e70| 74 65 72 20 74 6f 20 64 | 72 61 77 66 69 6c 65 20 |ter to d|rawfile |
|00005e80| 62 6c 6f 63 6b 0a 09 52 | 32 20 3d 09 6c 65 6e 67 |block..R|2 =.leng|
|00005e90| 74 68 20 6f 66 20 62 6c | 6f 63 6b 0a 09 52 33 20 |th of bl|ock..R3 |
|00005ea0| 3d 09 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |=.transf|ormation|
|00005eb0| 20 6d 61 74 72 69 78 2c | 20 6f 72 20 30 20 74 6f | matrix,| or 0 to|
|00005ec0| 20 75 73 65 20 69 64 65 | 6e 74 69 74 79 20 6d 61 | use ide|ntity ma|
|00005ed0| 74 72 69 78 0a 09 52 34 | 20 3d 09 70 6f 69 6e 74 |trix..R4| =.point|
|00005ee0| 65 72 20 74 6f 20 63 6c | 69 70 70 69 6e 67 20 72 |er to cl|ipping r|
|00005ef0| 65 63 74 61 6e 67 6c 65 | 20 69 6e 20 4f 53 20 75 |ectangle| in OS u|
|00005f00| 6e 69 74 73 2c 20 6f 72 | 20 30 20 66 6f 72 20 6e |nits, or| 0 for n|
|00005f10| 6f 6e 65 0a 09 52 35 20 | 3d 09 66 6c 61 74 6e 65 |one..R5 |=.flatne|
|00005f20| 73 73 20 69 66 20 62 69 | 74 20 32 20 6f 66 20 52 |ss if bi|t 2 of R|
|00005f30| 30 20 73 65 74 0a 3c 3d | 09 41 6c 6c 20 70 72 65 |0 set.<=|.All pre|
|00005f40| 73 65 72 76 65 64 0a 0a | 54 68 69 73 20 53 57 49 |served..|This SWI|
|00005f50| 20 72 65 6e 64 65 72 73 | 20 61 20 64 72 61 77 20 | renders| a draw |
|00005f60| 66 69 6c 65 20 61 74 20 | 61 20 67 69 76 65 6e 20 |file at |a given |
|00005f70| 73 63 72 65 65 6e 20 70 | 6f 73 69 74 69 6f 6e 20 |screen p|osition |
|00005f80| 77 68 65 72 65 20 74 68 | 61 74 20 70 6f 73 69 74 |where th|at posit|
|00005f90| 69 6f 6e 20 69 73 20 64 | 65 66 69 6e 65 64 20 61 |ion is d|efined a|
|00005fa0| 73 20 73 63 72 65 65 6e | 20 70 6f 73 69 74 69 6f |s screen| positio|
|00005fb0| 6e 20 30 2c 20 30 20 77 | 69 74 68 20 74 68 65 20 |n 0, 0 w|ith the |
|00005fc0| 78 2d 20 61 6e 64 20 79 | 2d 74 72 61 6e 73 6c 61 |x- and y|-transla|
|00005fd0| 74 69 6f 6e 73 20 61 73 | 20 73 70 65 63 69 66 69 |tions as| specifi|
|00005fe0| 65 64 20 69 6e 20 74 68 | 65 20 74 72 61 6e 73 66 |ed in th|e transf|
|00005ff0| 6f 72 6d 61 74 69 6f 6e | 20 6d 61 74 72 69 78 2e |ormation| matrix.|
|00006000| 20 48 65 6e 63 65 2c 20 | 74 6f 20 72 65 6e 64 65 | Hence, |to rende|
|00006010| 72 20 61 20 6e 6f 6e 2d | 72 6f 74 61 74 65 64 20 |r a non-|rotated |
|00006020| 31 3a 31 20 64 72 61 77 | 20 66 69 6c 65 20 61 74 |1:1 draw| file at|
|00006030| 20 28 78 2c 20 79 29 20 | 28 73 63 72 65 65 6e 20 | (x, y) |(screen |
|00006040| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 69 6e 20 4f |coordina|tes in O|
|00006050| 53 20 75 6e 69 74 73 29 | 20 74 68 65 20 74 72 61 |S units)| the tra|
|00006060| 6e 73 66 6f 72 6d 61 74 | 69 6f 6e 20 6d 61 74 72 |nsformat|ion matr|
|00006070| 69 78 20 69 73 20 3a 0a | 23 49 6e 64 65 6e 74 20 |ix is :.|#Indent |
|00006080| 32 3b 54 61 62 0a 28 09 | 31 20 3c 3c 20 31 36 09 |2;Tab.(.|1 << 16.|
|00006090| 30 09 29 0a 28 09 30 09 | 31 20 3c 3c 20 31 36 09 |0.).(.0.|1 << 16.|
|000060a0| 29 0a 28 09 32 35 36 2a | 78 09 32 35 36 2a 79 09 |).(.256*|x.256*y.|
|000060b0| 29 0a 23 49 6e 64 65 6e | 74 0a 0a 54 68 65 20 63 |).#Inden|t..The c|
|000060c0| 6c 69 70 70 69 6e 67 20 | 72 65 63 74 61 6e 67 6c |lipping |rectangl|
|000060d0| 65 20 69 73 20 74 79 70 | 69 63 61 6c 6c 79 20 61 |e is typ|ically a|
|000060e0| 20 72 65 64 72 61 77 20 | 72 65 63 74 61 6e 67 6c | redraw |rectangl|
|000060f0| 65 20 72 65 74 75 72 6e | 65 64 20 62 79 20 74 68 |e return|ed by th|
|00006100| 65 20 57 69 6d 70 20 6f | 6e 20 61 20 72 65 64 72 |e Wimp o|n a redr|
|00006110| 61 77 20 77 69 6e 64 6f | 77 20 72 65 71 75 65 73 |aw windo|w reques|
|00006120| 74 2e 20 20 49 66 20 52 | 34 20 3d 20 30 2c 20 74 |t. If R|4 = 0, t|
|00006130| 68 65 6e 20 74 68 65 20 | 77 68 6f 6c 65 20 64 72 |hen the |whole dr|
|00006140| 61 77 20 66 69 6c 65 20 | 69 73 20 72 65 6e 64 65 |aw file |is rende|
|00006150| 72 65 64 2e 20 49 66 20 | 6e 6f 6e 2d 7a 65 72 6f |red. If |non-zero|
|00006160| 2c 20 6f 6e 6c 79 20 6f | 62 6a 65 63 74 73 20 77 |, only o|bjects w|
|00006170| 68 69 63 68 20 69 6e 74 | 65 72 73 65 63 74 20 74 |hich int|ersect t|
|00006180| 68 65 20 63 6c 69 70 70 | 69 6e 67 20 72 65 63 74 |he clipp|ing rect|
|00006190| 61 6e 67 6c 65 20 61 72 | 65 20 72 65 6e 64 65 72 |angle ar|e render|
|000061a0| 65 64 2e 0a 23 0a 23 53 | 75 62 70 61 67 65 20 66 |ed..#.#S|ubpage f|
|000061b0| 6c 61 67 73 0a 44 72 61 | 77 46 69 6c 65 5f 52 65 |lags.Dra|wFile_Re|
|000061c0| 6e 64 65 72 20 66 6c 61 | 67 73 0a 42 69 74 09 4d |nder fla|gs.Bit.M|
|000061d0| 65 61 6e 69 6e 67 20 69 | 66 20 73 65 74 0a 23 4c |eaning i|f set.#L|
|000061e0| 69 6e 65 0a 30 09 72 65 | 6e 64 65 72 20 62 6f 75 |ine.0.re|nder bou|
|000061f0| 6e 64 69 6e 67 20 62 6f | 78 65 73 20 28 61 73 20 |nding bo|xes (as |
|00006200| 64 6f 74 74 65 64 20 72 | 65 64 20 72 65 63 74 61 |dotted r|ed recta|
|00006210| 6e 67 6c 65 73 29 0a 31 | 09 64 6f 20 6e 6f 74 20 |ngles).1|.do not |
|00006220| 72 65 6e 64 65 72 20 74 | 68 65 20 6f 62 6a 65 63 |render t|he objec|
|00006230| 74 73 20 74 68 65 6d 73 | 65 6c 76 65 73 0a 32 09 |ts thems|elves.2.|
|00006240| 75 73 65 20 52 35 20 61 | 73 20 66 6c 61 74 6e 65 |use R5 a|s flatne|
|00006250| 73 73 0a 00 44 41 54 41 | f0 01 00 00 44 72 61 77 |ss..DATA|....Draw|
|00006260| 46 69 6c 65 5f 42 42 6f | 78 0a 23 50 61 72 65 6e |File_BBo|x.#Paren|
|00006270| 74 20 44 72 61 77 46 69 | 6c 65 5f 0a 3d 3e 09 52 |t DrawFi|le_.=>.R|
|00006280| 30 20 3d 09 66 6c 61 67 | 73 20 28 6d 75 73 74 20 |0 =.flag|s (must |
|00006290| 62 65 20 30 29 0a 09 52 | 31 20 3d 09 70 6f 69 6e |be 0)..R|1 =.poin|
|000062a0| 74 65 72 20 74 6f 20 64 | 72 61 77 66 69 6c 65 20 |ter to d|rawfile |
|000062b0| 62 6c 6f 63 6b 0a 09 52 | 32 20 3d 09 6c 65 6e 67 |block..R|2 =.leng|
|000062c0| 74 68 20 6f 66 20 62 6c | 6f 63 6b 0a 09 52 33 20 |th of bl|ock..R3 |
|000062d0| 3d 09 74 72 61 6e 73 66 | 6f 72 6d 61 74 69 6f 6e |=.transf|ormation|
|000062e0| 20 6d 61 74 72 69 78 2c | 20 6f 72 20 30 20 74 6f | matrix,| or 0 to|
|000062f0| 20 75 73 65 20 69 64 65 | 6e 74 69 74 79 0a 09 52 | use ide|ntity..R|
|00006300| 34 20 3d 09 70 6f 69 6e | 74 65 72 20 74 6f 20 34 |4 =.poin|ter to 4|
|00006310| 20 77 6f 72 64 20 62 75 | 66 66 65 72 20 66 6f 72 | word bu|ffer for|
|00006320| 20 3c 62 6f 75 6e 64 69 | 6e 67 20 62 6f 78 3d 3e | <boundi|ng box=>|
|00006330| 2e 62 62 6f 78 3e 0a 3c | 3d 09 41 6c 6c 20 70 72 |.bbox>.<|=.All pr|
|00006340| 65 73 65 72 76 65 64 0a | 0a 54 68 69 73 20 53 57 |eserved.|.This SW|
|00006350| 49 20 69 73 20 75 73 65 | 64 20 74 6f 20 64 65 74 |I is use|d to det|
|00006360| 65 72 6d 69 6e 65 20 74 | 68 65 20 62 6f 75 6e 64 |ermine t|he bound|
|00006370| 69 6e 67 20 62 6f 78 20 | 28 69 6e 20 64 72 61 77 |ing box |(in draw|
|00006380| 20 75 6e 69 74 73 29 20 | 6f 66 20 74 68 65 20 67 | units) |of the g|
|00006390| 69 76 65 6e 20 64 72 61 | 77 20 66 69 6c 65 2c 20 |iven dra|w file, |
|000063a0| 61 73 20 69 66 20 69 74 | 20 77 65 72 65 20 70 6c |as if it| were pl|
|000063b0| 6f 74 74 65 64 20 77 69 | 74 68 20 74 68 65 20 74 |otted wi|th the t|
|000063c0| 72 61 6e 73 66 6f 72 6d | 61 74 69 6f 6e 20 67 69 |ransform|ation gi|
|000063d0| 76 65 6e 2e 0a 23 0a 23 | 53 75 62 70 61 67 65 20 |ven..#.#|Subpage |
|000063e0| 62 62 6f 78 0a 42 6f 75 | 6e 64 69 6e 67 20 62 6f |bbox.Bou|nding bo|
|000063f0| 78 0a 4f 66 66 73 65 74 | 09 43 6f 6e 74 65 6e 74 |x.Offset|.Content|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.