home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / debug / error < prev    next >
ArcFS Archive  |  1995-10-01  |  5.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: ArcFS Archive (archive/arcFS).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert ArcFS Archive (archive/arcFS) magic Supported
100% file RISC OS archive (ArcFS format) default
99% file data default
100% TrID Acorn ArcFS Archive default
100% gt2 Kopftext: 'Archive' default (weak)
100% detectItEasy Archive: ArcFS default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 41 72 63 68 69 76 65 00 | 6c 00 00 00 54 03 00 00 |Archive.|l...T...|
|00000010| 28 00 00 00 64 00 00 00 | 00 00 00 00 00 00 00 00 |(...d...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 82 45 72 72 6f 72 00 00 | 00 00 00 00 34 02 00 00 |.Error..|....4...|
|00000070| 42 fa ff ff 69 e7 6f d8 | 03 00 00 f3 34 02 00 00 |B...i.o.|....4...|
|00000080| 24 00 00 00 82 52 65 61 | 64 a0 6d 65 00 00 00 00 |$....Rea|d.me....|
|00000090| 64 0f 00 00 43 ff ff ff | cf 75 13 16 03 00 f5 7e |d...C...|.u.....~|
|000000a0| 64 0f 00 00 7c 02 00 00 | 00 00 00 00 00 00 00 00 |d...|...|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 46 69 6c 65 | 44 61 74 61 82 45 72 72 |....File|Data.Err|
|00000360| 6f 72 00 00 00 00 00 00 | 34 02 00 00 42 fa ff ff |or......|4...B...|
|00000370| 69 e7 6f d8 03 00 00 f3 | 00 00 00 00 54 00 00 00 |i.o.....|....T...|
|00000380| 00 00 00 00 bc 00 00 00 | 2c 01 00 00 34 01 00 00 |........|,...4...|
|00000390| 00 00 00 00 c0 27 04 00 | 50 01 00 00 8c 01 00 00 |.....'..|P.......|
|000003a0| 00 00 00 00 0a 45 72 72 | 6f 72 2c 20 76 2e 20 31 |.....Err|or, v. 1|
|000003b0| 2e 30 34 20 a9 20 31 39 | 39 30 20 41 72 6d 65 6e |.04 . 19|90 Armen|
|000003c0| 20 53 6f 66 74 77 61 72 | 65 0a 16 16 00 40 2d e9 | Softwar|e....@-.|
|000003d0| 00 00 9c e5 00 00 50 e3 | 00 80 fd 18 06 00 a0 e3 |......P.|........|
|000003e0| 08 30 a0 e3 40 3f 83 e2 | 1e 00 02 ef 18 00 8f e2 |.0..@?..|........|
|000003f0| 00 40 bd 68 40 f7 9e 63 | 00 20 8c e5 00 c0 9c e5 |.@.h@..c|. ......|
|00000400| 00 00 a0 e3 00 00 8c e5 | 00 80 bd e8 01 47 80 00 |........|.....G..|
|00000410| 4d 6f 64 75 6c 65 20 27 | 45 72 72 6f 72 27 20 63 |Module '|Error' c|
|00000420| 6f 75 6c 64 20 6e 6f 74 | 20 69 6e 69 74 69 61 6c |ould not| initial|
|00000430| 69 73 65 00 06 00 51 e3 | 0e f0 b0 11 00 c0 9c e5 |ise...Q.|........|
|00000440| 00 10 9c e5 00 00 51 e3 | 06 10 a0 03 0e f0 b0 01 |......Q.|........|
|00000450| 00 10 90 e5 80 04 51 e3 | 06 10 a0 33 0e f0 b0 31 |......Q.|...3...1|
|00000460| 04 10 8c e5 3c 00 2d e9 | 08 20 8c e2 04 30 a0 e3 |....<.-.|. ...0..|
|00000470| 03 40 d0 e7 03 40 c2 e7 | 01 30 83 e2 00 00 54 e3 |.@...@..|.0....T.|
|00000480| fa ff ff 1a 02 00 a0 e1 | 00 10 a0 e3 47 1c 81 e2 |........|....G...|
|00000490| 80 18 81 e2 00 10 80 e5 | 3c 00 bd e8 06 10 a0 e3 |........|<.......|
|000004a0| 0e f0 b0 e1 45 72 72 6f | 72 00 16 16 45 72 72 6f |....Erro|r...Erro|
|000004b0| 72 09 09 31 2e 30 34 1f | 28 32 33 20 44 65 63 20 |r..1.04.|(23 Dec |
|000004c0| 31 39 39 30 29 00 16 16 | 03 00 5b e3 0b f1 8f 30 |1990)...|..[....0|
|000004d0| 02 00 00 ea 12 00 00 ea | 2a 00 00 ea 2f 00 00 ea |........|*.../...|
|000004e0| 00 00 8f e2 40 f5 9e e3 | e6 01 00 00 55 6e 6b 6e |....@...|....Unkn|
|000004f0| 6f 77 6e 20 45 72 72 6f | 72 20 6f 70 65 72 61 74 |own Erro|r operat|
|00000500| 69 6f 6e 00 45 72 72 6f | 72 00 46 61 74 61 6c 00 |ion.Erro|r.Fatal.|
|00000510| 53 65 76 65 72 65 00 4c | 61 73 74 45 72 72 6f 72 |Severe.L|astError|
|00000520| 00 00 16 16 01 40 2d e9 | 00 c0 9c e5 00 00 9c e5 |.....@-.|........|
|00000530| 00 00 50 e3 14 00 8f e2 | 02 40 bd 08 40 f5 9e 03 |..P.....|.@..@...|
|00000540| 00 00 9c e5 01 00 40 e2 | 00 00 8c e5 01 80 bd e8 |......@.|........|
|00000550| 01 47 80 00 42 61 64 20 | 6e 65 73 74 69 6e 67 20 |.G..Bad |nesting |
|00000560| 6f 66 20 45 72 72 6f 72 | 5f 53 65 76 65 72 65 20 |of Error|_Severe |
|00000570| 61 6e 64 20 45 72 72 6f | 72 5f 46 61 74 61 6c 20 |and Erro|r_Fatal |
|00000580| 63 61 6c 6c 73 00 16 16 | 01 40 2d e9 00 c0 9c e5 |calls...|.@-.....|
|00000590| 00 00 9c e5 01 00 80 e2 | 00 00 8c e5 01 80 bd e8 |........|........|
|000005a0| 00 c0 9c e5 04 00 9c e5 | 0e f0 b0 e1 46 69 6c 65 |........|....File|
|000005b0| 44 61 74 61 82 52 65 61 | 64 a0 6d 65 00 00 00 00 |Data.Rea|d.me....|
|000005c0| 64 0f 00 00 43 ff ff ff | cf 75 13 16 03 00 f5 7e |d...C...|.u.....~|
|000005d0| 45 72 72 6f 72 0a 0a 4c | 65 67 61 6c 20 73 74 75 |Error..L|egal stu|
|000005e0| 66 66 2e 2e 2e 0a 0a 54 | 68 65 20 45 72 72 6f 72 |ff.....T|he Error|
|000005f0| 20 6d 6f 64 75 6c 65 20 | 69 73 20 69 6e 20 74 68 | module |is in th|
|00000600| 65 20 50 75 62 6c 69 63 | 20 44 6f 6d 61 69 6e 2c |e Public| Domain,|
|00000610| 20 61 6e 64 20 6d 61 79 | 20 62 65 20 66 72 65 65 | and may| be free|
|00000620| 6c 79 20 63 6f 70 69 65 | 64 20 61 6e 64 0a 64 69 |ly copie|d and.di|
|00000630| 73 74 72 69 62 75 74 65 | 64 20 6f 6e 20 74 68 65 |stribute|d on the|
|00000640| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 63 6f 6e 64 69 | followi|ng condi|
|00000650| 74 69 6f 6e 73 3a 0a 0a | 31 2e 20 49 74 20 69 73 |tions:..|1. It is|
|00000660| 20 73 75 70 70 6c 69 65 | 64 20 63 6f 6d 70 6c 65 | supplie|d comple|
|00000670| 74 65 20 77 69 74 68 20 | 74 68 69 73 20 64 6f 63 |te with |this doc|
|00000680| 75 6d 65 6e 74 61 74 69 | 6f 6e 2c 20 61 6e 64 20 |umentati|on, and |
|00000690| 6e 65 69 74 68 65 72 20 | 69 73 20 61 6c 74 65 72 |neither |is alter|
|000006a0| 65 64 0a 20 20 20 69 6e | 20 61 6e 79 20 77 61 79 |ed. in| any way|
|000006b0| 2c 20 73 68 61 70 65 20 | 6f 72 20 66 6f 72 6d 2e |, shape |or form.|
|000006c0| 0a 32 2e 20 54 68 65 20 | 70 72 6f 67 72 61 6d 20 |.2. The |program |
|000006d0| 72 65 6d 61 69 6e 73 20 | 74 68 65 20 65 78 63 6c |remains |the excl|
|000006e0| 75 73 69 76 65 20 70 72 | 6f 70 65 72 74 79 20 6f |usive pr|operty o|
|000006f0| 66 20 41 72 6d 65 6e 20 | 53 6f 66 74 77 61 72 65 |f Armen |Software|
|00000700| 2e 0a 33 2e 20 57 65 20 | 67 65 74 20 61 20 6d 65 |..3. We |get a me|
|00000710| 6e 74 69 6f 6e 20 69 6e | 20 74 68 65 20 63 72 65 |ntion in| the cre|
|00000720| 64 69 74 73 20 6f 66 20 | 61 6e 79 20 70 72 6f 67 |dits of |any prog|
|00000730| 72 61 6d 20 74 68 61 74 | 20 75 73 65 73 20 69 74 |ram that| uses it|
|00000740| 2e 0a 0a 49 20 64 6f 6e | 27 74 20 6d 69 6e 64 20 |...I don|'t mind |
|00000750| 69 66 20 69 74 20 67 65 | 74 73 20 75 73 65 64 20 |if it ge|ts used |
|00000760| 69 6e 20 63 6f 6d 6d 65 | 72 63 69 61 6c 20 70 72 |in comme|rcial pr|
|00000770| 6f 67 72 61 6d 73 2e 0a | 0a 4f 76 65 72 76 69 65 |ograms..|.Overvie|
|00000780| 77 0a 0a 57 68 65 6e 20 | 77 72 69 74 69 6e 67 20 |w..When |writing |
|00000790| 57 49 4d 50 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |WIMP app|lication|
|000007a0| 73 2c 20 73 61 66 65 67 | 75 61 72 64 69 6e 67 20 |s, safeg|uarding |
|000007b0| 74 68 65 20 75 73 65 72 | 27 73 20 64 61 74 61 20 |the user|'s data |
|000007c0| 0a 6d 75 73 74 20 62 65 | 20 61 20 70 72 69 6f 72 |.must be| a prior|
|000007d0| 69 74 79 2e 20 54 68 65 | 72 65 66 6f 72 65 2c 20 |ity. The|refore, |
|000007e0| 77 68 65 6e 20 61 6e 20 | 65 72 72 6f 72 20 73 75 |when an |error su|
|000007f0| 63 68 20 61 73 20 61 20 | 6d 61 63 68 69 6e 65 20 |ch as a |machine |
|00000800| 0a 65 78 63 65 70 74 69 | 6f 6e 20 6f 63 63 75 72 |.excepti|on occur|
|00000810| 73 2c 20 74 68 65 20 74 | 61 73 6b 20 6d 75 73 74 |s, the t|ask must|
|00000820| 20 6e 6f 74 20 71 75 69 | 74 20 69 6e 73 74 61 6e | not qui|t instan|
|00000830| 74 6c 79 20 77 69 74 68 | 6f 75 74 20 74 68 65 20 |tly with|out the |
|00000840| 75 73 65 72 27 73 20 0a | 70 65 72 6d 69 73 73 69 |user's .|permissi|
|00000850| 6f 6e 2e 20 54 68 65 20 | 70 72 6f 62 6c 65 6d 20 |on. The |problem |
|00000860| 69 73 2c 20 74 68 6f 75 | 67 68 2c 20 74 68 61 74 |is, thou|gh, that|
|00000870| 20 74 68 65 73 65 20 66 | 61 74 61 6c 20 65 72 72 | these f|atal err|
|00000880| 6f 72 73 20 0a 69 6e 73 | 74 61 6e 74 6c 79 20 63 |ors .ins|tantly c|
|00000890| 61 75 73 65 20 42 41 53 | 49 43 20 70 72 6f 67 72 |ause BAS|IC progr|
|000008a0| 61 6d 73 20 74 6f 20 65 | 6e 64 2e 20 57 68 61 74 |ams to e|nd. What|
|000008b0| 20 74 68 65 20 45 72 72 | 6f 72 20 6d 6f 64 75 6c | the Err|or modul|
|000008c0| 65 20 69 73 20 0a 64 65 | 73 69 67 6e 65 64 20 66 |e is .de|signed f|
|000008d0| 6f 72 20 69 73 20 63 68 | 61 6e 67 69 6e 67 20 74 |or is ch|anging t|
|000008e0| 68 65 73 65 20 66 61 74 | 61 6c 20 65 72 72 6f 72 |hese fat|al error|
|000008f0| 73 20 69 6e 74 6f 20 6e | 6f 72 6d 61 6c 20 6d 61 |s into n|ormal ma|
|00000900| 6e 61 67 65 61 62 6c 65 | 20 0a 65 72 72 6f 72 73 |nageable| .errors|
|00000910| 20 62 65 66 6f 72 65 20 | 42 41 53 49 43 20 67 65 | before |BASIC ge|
|00000920| 74 73 20 74 6f 20 68 65 | 61 72 20 61 62 6f 75 74 |ts to he|ar about|
|00000930| 20 69 74 20 61 6e 64 20 | 71 75 69 74 73 20 74 68 | it and |quits th|
|00000940| 65 20 74 61 73 6b 2e 0a | 0a 54 65 63 68 6e 69 63 |e task..|.Technic|
|00000950| 61 6c 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 0a 0a |al infor|mation..|
|00000960| 45 72 72 6f 72 20 63 61 | 6e 20 62 65 20 69 6e 20 |Error ca|n be in |
|00000970| 6f 6e 65 20 6f 66 20 74 | 77 6f 20 73 74 61 74 65 |one of t|wo state|
|00000980| 73 3a 20 45 72 72 6f 72 | 5f 46 61 74 61 6c 20 61 |s: Error|_Fatal a|
|00000990| 6e 64 20 0a 45 72 72 6f | 72 5f 53 65 76 65 72 65 |nd .Erro|r_Severe|
|000009a0| 2e 20 49 66 20 69 6e 20 | 74 68 65 20 45 72 72 6f |. If in |the Erro|
|000009b0| 72 5f 46 61 74 61 6c 20 | 73 74 61 74 65 2c 20 61 |r_Fatal |state, a|
|000009c0| 6c 6c 20 66 61 74 61 6c | 20 65 72 72 6f 72 73 20 |ll fatal| errors |
|000009d0| 0a 62 65 68 61 76 65 20 | 6e 6f 72 6d 61 6c 6c 79 |.behave |normally|
|000009e0| 2c 20 61 6c 6c 6f 77 69 | 6e 67 20 61 70 70 6c 69 |, allowi|ng appli|
|000009f0| 63 61 74 69 6f 6e 73 20 | 74 6f 20 70 65 72 66 6f |cations |to perfo|
|00000a00| 72 6d 20 74 68 65 69 72 | 20 65 72 72 6f 72 2d 0a |rm their| error-.|
|00000a10| 74 72 61 70 70 69 6e 67 | 20 69 6e 20 74 68 65 20 |trapping| in the |
|00000a20| 6d 61 6e 6e 65 72 20 69 | 74 20 77 61 73 20 6f 72 |manner i|t was or|
|00000a30| 69 67 69 6e 61 6c 6c 79 | 20 77 72 69 74 74 65 6e |iginally| written|
|00000a40| 2e 20 49 6e 20 74 68 65 | 20 0a 45 72 72 6f 72 5f |. In the| .Error_|
|00000a50| 53 65 76 65 72 65 20 73 | 74 61 74 65 2c 20 68 6f |Severe s|tate, ho|
|00000a60| 77 65 76 65 72 2c 20 69 | 66 20 61 20 66 61 74 61 |wever, i|f a fata|
|00000a70| 6c 20 65 72 72 6f 72 20 | 28 77 68 69 63 68 20 69 |l error |(which i|
|00000a80| 73 20 0a 73 69 67 6e 69 | 66 69 65 64 20 62 79 20 |s .signi|fied by |
|00000a90| 61 6e 20 65 72 72 6f 72 | 20 6e 75 6d 62 65 72 20 |an error| number |
|00000aa0| 68 69 67 68 65 72 20 74 | 68 61 6e 20 26 38 30 30 |higher t|han &800|
|00000ab0| 30 30 30 30 30 29 20 69 | 73 20 64 69 73 63 6f 76 |00000) i|s discov|
|00000ac0| 65 72 65 64 2c 20 0a 74 | 68 65 20 65 72 72 6f 72 |ered, .t|he error|
|00000ad0| 20 6e 75 6d 62 65 72 20 | 69 73 20 73 74 6f 72 65 | number |is store|
|00000ae0| 64 20 69 6e 20 45 72 72 | 6f 72 27 73 20 77 6f 72 |d in Err|or's wor|
|00000af0| 6b 73 70 61 63 65 2c 20 | 61 6e 64 20 74 68 65 20 |kspace, |and the |
|00000b00| 65 72 72 6f 72 20 0a 6e | 75 6d 62 65 72 20 69 73 |error .n|umber is|
|00000b10| 20 74 68 65 6e 20 63 68 | 61 6e 67 65 64 20 74 6f | then ch|anged to|
|00000b20| 20 74 68 65 20 76 61 6c | 75 65 20 26 38 30 34 37 | the val|ue &8047|
|00000b30| 30 30 2c 20 77 68 69 63 | 68 20 69 73 20 61 20 70 |00, whic|h is a p|
|00000b40| 65 72 66 65 63 74 6c 79 | 20 0a 61 63 63 65 70 74 |erfectly| .accept|
|00000b50| 61 62 6c 65 20 65 76 65 | 72 79 64 61 79 20 65 72 |able eve|ryday er|
|00000b60| 72 6f 72 20 6e 75 6d 62 | 65 72 2e 20 49 66 20 74 |ror numb|er. If t|
|00000b70| 68 65 20 74 61 73 6b 20 | 69 73 20 69 6e 74 65 72 |he task |is inter|
|00000b80| 65 73 74 65 64 2c 20 74 | 68 65 20 27 72 65 61 6c |ested, t|he 'real|
|00000b90| 27 20 0a 65 72 72 6f 72 | 20 6e 75 6d 62 65 72 20 |' .error| number |
|00000ba0| 28 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 6f 6e |(the ori|ginal on|
|00000bb0| 65 29 20 6d 61 79 20 62 | 65 20 64 69 73 63 6f 76 |e) may b|e discov|
|00000bc0| 65 72 65 64 20 62 79 20 | 61 20 63 61 6c 6c 20 74 |ered by |a call t|
|00000bd0| 6f 20 53 57 49 20 0a 45 | 72 72 6f 72 5f 4c 61 73 |o SWI .E|rror_Las|
|00000be0| 74 45 72 72 6f 72 2e 0a | 0a 54 68 65 20 63 75 72 |tError..|.The cur|
|00000bf0| 72 65 6e 74 20 73 74 61 | 74 65 20 6f 66 20 74 68 |rent sta|te of th|
|00000c00| 65 20 45 72 72 6f 72 20 | 6d 6f 64 75 6c 65 20 69 |e Error |module i|
|00000c10| 73 20 64 65 74 65 72 6d | 69 6e 65 64 20 62 79 20 |s determ|ined by |
|00000c20| 61 20 63 6f 75 6e 74 65 | 72 20 69 6e 20 0a 45 72 |a counte|r in .Er|
|00000c30| 72 6f 72 27 73 20 77 6f | 72 6b 73 70 61 63 65 2e |ror's wo|rkspace.|
|00000c40| 20 49 66 20 74 68 65 20 | 63 6f 75 6e 74 20 69 73 | If the |count is|
|00000c50| 20 7a 65 72 6f 2c 20 74 | 68 65 20 45 72 72 6f 72 | zero, t|he Error|
|00000c60| 5f 46 61 74 61 6c 20 73 | 74 61 74 65 20 69 73 20 |_Fatal s|tate is |
|00000c70| 0a 61 64 6f 70 74 65 64 | 2c 20 69 66 20 6e 6f 6e |.adopted|, if non|
|00000c80| 2d 7a 65 72 6f 2c 20 74 | 68 65 20 45 72 72 6f 72 |-zero, t|he Error|
|00000c90| 5f 53 65 76 65 72 65 20 | 73 74 61 74 65 20 69 73 |_Severe |state is|
|00000ca0| 20 75 73 65 64 20 28 74 | 68 69 73 20 69 73 20 74 | used (t|his is t|
|00000cb0| 6f 20 0a 61 6c 6c 6f 77 | 20 63 6f 72 72 65 63 74 |o .allow| correct|
|00000cc0| 20 6e 65 73 74 69 6e 67 | 20 6f 66 20 63 61 6c 6c | nesting| of call|
|00000cd0| 73 20 74 6f 20 74 68 65 | 20 6d 6f 64 75 6c 65 20 |s to the| module |
|00000ce0| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 65 20 73 74 |to chang|e the st|
|00000cf0| 61 74 65 29 2e 0a 45 72 | 72 6f 72 20 73 68 6f 75 |ate)..Er|ror shou|
|00000d00| 6c 64 20 62 65 20 6c 65 | 66 74 20 69 6e 20 74 68 |ld be le|ft in th|
|00000d10| 65 20 45 72 72 6f 72 5f | 46 61 74 61 6c 20 73 74 |e Error_|Fatal st|
|00000d20| 61 74 65 20 64 75 72 69 | 6e 67 20 63 61 6c 6c 73 |ate duri|ng calls|
|00000d30| 20 74 6f 20 0a 57 69 6d | 70 5f 50 6f 6c 6c 2c 20 | to .Wim|p_Poll, |
|00000d40| 74 6f 20 61 6c 6c 6f 77 | 20 6f 74 68 65 72 20 74 |to allow| other t|
|00000d50| 61 73 6b 73 20 74 6f 20 | 70 65 72 66 6f 72 6d 20 |asks to |perform |
|00000d60| 74 68 65 69 72 20 6f 77 | 6e 20 74 72 61 70 70 69 |their ow|n trappi|
|00000d70| 6e 67 20 6f 66 20 0a 27 | 66 61 74 61 6c 27 20 65 |ng of .'|fatal' e|
|00000d80| 72 72 6f 72 73 2e 20 54 | 68 65 72 65 66 6f 72 65 |rrors. T|herefore|
|00000d90| 2c 20 61 20 70 6f 73 73 | 69 62 6c 65 20 65 78 61 |, a poss|ible exa|
|00000da0| 6d 70 6c 65 20 63 6f 64 | 65 20 66 72 61 67 6d 65 |mple cod|e fragme|
|00000db0| 6e 74 20 69 73 20 61 73 | 20 0a 66 6f 6c 6c 6f 77 |nt is as| .follow|
|00000dc0| 73 3a 0a 0a 53 59 53 20 | 22 45 72 72 6f 72 5f 53 |s:..SYS |"Error_S|
|00000dd0| 65 76 65 72 65 22 0a 52 | 45 50 45 41 54 0a 20 20 |evere".R|EPEAT. |
|00000de0| 20 20 20 20 20 20 53 59 | 53 20 22 45 72 72 6f 72 | SY|S "Error|
|00000df0| 5f 46 61 74 61 6c 22 0a | 20 20 20 20 20 20 20 20 |_Fatal".| |
|00000e00| 53 59 53 20 22 57 69 6d | 70 5f 50 6f 6c 6c 22 20 |SYS "Wim|p_Poll" |
|00000e10| 54 4f 20 72 65 61 73 6f | 6e 25 0a 20 20 20 20 20 |TO reaso|n%. |
|00000e20| 20 20 20 53 59 53 20 22 | 45 72 72 6f 72 5f 53 65 | SYS "|Error_Se|
|00000e30| 76 65 72 65 22 0a 20 20 | 20 20 20 20 20 20 50 52 |vere". | PR|
|00000e40| 4f 43 61 63 74 69 6f 6e | 28 72 65 61 73 6f 6e 25 |OCaction|(reason%|
|00000e50| 29 0a 55 4e 54 49 4c 20 | 71 75 69 74 25 0a 53 59 |).UNTIL |quit%.SY|
|00000e60| 53 20 22 57 69 6d 70 5f | 43 6c 6f 73 65 44 6f 77 |S "Wimp_|CloseDow|
|00000e70| 6e 22 0a 53 59 53 20 22 | 45 72 72 6f 72 5f 46 61 |n".SYS "|Error_Fa|
|00000e80| 74 61 6c 22 0a 45 4e 44 | 0a 0a 53 57 49 20 63 61 |tal".END|..SWI ca|
|00000e90| 6c 6c 73 0a 0a 45 72 72 | 6f 72 5f 46 61 74 61 6c |lls..Err|or_Fatal|
|00000ea0| 0a 28 53 57 49 20 26 34 | 32 37 43 30 29 0a 0a 53 |.(SWI &4|27C0)..S|
|00000eb0| 77 69 74 63 68 65 73 20 | 45 72 72 6f 72 20 69 6e |witches |Error in|
|00000ec0| 74 6f 20 74 68 65 20 45 | 72 72 6f 72 5f 46 61 74 |to the E|rror_Fat|
|00000ed0| 61 6c 20 73 74 61 74 65 | 2e 0a 0a 4f 6e 20 65 6e |al state|...On en|
|00000ee0| 74 72 79 20 20 20 20 20 | 20 20 20 2d 0a 4f 6e 20 |try | -.On |
|00000ef0| 65 78 69 74 20 20 20 20 | 20 20 20 20 20 41 6c 6c |exit | All|
|00000f00| 20 72 65 67 69 73 74 65 | 72 73 20 70 72 65 73 65 | registe|rs prese|
|00000f10| 72 76 65 64 2e 0a 49 6e | 74 65 72 72 75 70 74 73 |rved..In|terrupts|
|00000f20| 20 20 20 20 20 20 49 6e | 74 65 72 72 75 70 74 20 | In|terrupt |
|00000f30| 73 74 61 74 75 73 20 69 | 73 20 75 6e 64 65 66 69 |status i|s undefi|
|00000f40| 6e 65 64 2e 0a 50 72 6f | 63 65 73 73 6f 72 20 6d |ned..Pro|cessor m|
|00000f50| 6f 64 65 20 20 50 72 6f | 63 65 73 73 6f 72 20 69 |ode Pro|cessor i|
|00000f60| 73 20 69 6e 20 53 56 43 | 20 6d 6f 64 65 2e 0a 52 |s in SVC| mode..R|
|00000f70| 65 2d 65 6e 74 72 61 6e | 63 79 20 20 20 20 20 52 |e-entran|cy R|
|00000f80| 65 2d 65 6e 74 72 61 6e | 63 79 20 69 73 20 75 6e |e-entran|cy is un|
|00000f90| 64 65 66 69 6e 65 64 2e | 0a 55 73 65 20 20 20 20 |defined.|.Use |
|00000fa0| 20 20 20 20 20 20 20 20 | 20 54 68 69 73 20 63 61 | | This ca|
|00000fb0| 6c 6c 20 64 65 63 72 65 | 6d 65 6e 74 73 20 45 72 |ll decre|ments Er|
|00000fc0| 72 6f 72 27 73 20 69 6e | 74 65 72 6e 61 6c 20 63 |ror's in|ternal c|
|00000fd0| 6f 75 6e 74 2c 20 77 68 | 69 63 68 20 77 69 6c 6c |ount, wh|ich will|
|00000fe0| 20 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00000ff0| 20 20 6e 6f 72 6d 61 6c | 6c 79 20 73 77 69 74 63 | normal|ly switc|
|00001000| 68 20 74 68 65 20 6d 6f | 64 75 6c 65 20 69 6e 74 |h the mo|dule int|
|00001010| 6f 20 74 68 65 20 45 72 | 72 6f 72 5f 46 61 74 61 |o the Er|ror_Fata|
|00001020| 6c 20 73 74 61 74 65 2e | 20 49 66 20 0a 20 20 20 |l state.| If . |
|00001030| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 68 65 | | the|
|00001040| 20 63 6f 75 6e 74 20 69 | 73 20 61 6c 72 65 61 64 | count i|s alread|
|00001050| 79 20 7a 65 72 6f 2c 20 | 74 68 65 6e 20 61 6e 20 |y zero, |then an |
|00001060| 65 72 72 6f 72 20 69 73 | 20 72 65 74 75 72 6e 65 |error is| returne|
|00001070| 64 2e 0a 52 65 6c 61 74 | 65 64 20 53 57 49 73 20 |d..Relat|ed SWIs |
|00001080| 20 20 20 45 72 72 6f 72 | 5f 53 65 76 65 72 65 20 | Error|_Severe |
|00001090| 28 53 57 49 20 26 34 32 | 37 43 31 29 2e 0a 52 65 |(SWI &42|7C1)..Re|
|000010a0| 6c 61 74 65 64 20 76 65 | 63 74 6f 72 73 20 4e 6f |lated ve|ctors No|
|000010b0| 6e 65 2e 0a 0a 45 72 72 | 6f 72 5f 53 65 76 65 72 |ne...Err|or_Sever|
|000010c0| 65 0a 28 53 57 49 20 26 | 34 32 37 43 31 29 0a 0a |e.(SWI &|427C1)..|
|000010d0| 50 75 74 73 20 45 72 72 | 6f 72 20 69 6e 74 6f 20 |Puts Err|or into |
|000010e0| 74 68 65 20 45 72 72 6f | 72 5f 53 65 76 65 72 65 |the Erro|r_Severe|
|000010f0| 20 73 74 61 74 65 2e 0a | 0a 4f 6e 20 65 6e 74 72 | state..|.On entr|
|00001100| 79 20 20 20 20 20 20 20 | 20 2d 0a 4f 6e 20 65 78 |y | -.On ex|
|00001110| 69 74 20 20 20 20 20 20 | 20 20 20 41 6c 6c 20 72 |it | All r|
|00001120| 65 67 69 73 74 65 72 73 | 20 70 72 65 73 65 72 76 |egisters| preserv|
|00001130| 65 64 2e 0a 49 6e 74 65 | 72 72 75 70 74 73 20 20 |ed..Inte|rrupts |
|00001140| 20 20 20 20 49 6e 74 65 | 72 72 75 70 74 20 73 74 | Inte|rrupt st|
|00001150| 61 74 75 73 20 69 73 20 | 75 6e 64 65 66 69 6e 65 |atus is |undefine|
|00001160| 64 2e 0a 50 72 6f 63 65 | 73 73 6f 72 20 6d 6f 64 |d..Proce|ssor mod|
|00001170| 65 20 20 50 72 6f 63 65 | 73 73 6f 72 20 69 73 20 |e Proce|ssor is |
|00001180| 69 6e 20 53 56 43 20 6d | 6f 64 65 2e 0a 52 65 2d |in SVC m|ode..Re-|
|00001190| 65 6e 74 72 61 6e 63 79 | 20 20 20 20 20 52 65 2d |entrancy| Re-|
|000011a0| 65 6e 74 72 61 6e 63 79 | 20 69 73 20 75 6e 64 65 |entrancy| is unde|
|000011b0| 66 69 6e 65 64 2e 0a 55 | 73 65 20 20 20 20 20 20 |fined..U|se |
|000011c0| 20 20 20 20 20 20 20 54 | 68 69 73 20 63 61 6c 6c | T|his call|
|000011d0| 20 69 6e 63 72 65 61 73 | 65 73 20 45 72 72 6f 72 | increas|es Error|
|000011e0| 27 73 20 69 6e 74 65 72 | 6e 61 6c 20 63 6f 75 6e |'s inter|nal coun|
|000011f0| 74 2c 20 77 68 69 63 68 | 20 77 69 6c 6c 20 70 6c |t, which| will pl|
|00001200| 61 63 65 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |ace. | |
|00001210| 20 20 20 20 69 74 20 20 | 69 6e 20 45 72 72 6f 72 | it |in Error|
|00001220| 5f 53 65 76 65 72 65 20 | 6d 6f 64 65 2e 20 49 6e |_Severe |mode. In|
|00001230| 20 6f 72 64 65 72 20 74 | 6f 20 63 61 6e 63 65 6c | order t|o cancel|
|00001240| 20 61 20 63 61 6c 6c 20 | 74 6f 0a 20 20 20 20 20 | a call |to. |
|00001250| 20 20 20 20 20 20 20 20 | 20 20 20 45 72 72 6f 72 | | Error|
|00001260| 5f 53 65 76 65 72 65 2c | 20 69 74 20 69 73 20 6e |_Severe,| it is n|
|00001270| 65 63 65 73 73 61 72 79 | 20 74 6f 20 63 61 6c 6c |ecessary| to call|
|00001280| 20 45 72 72 6f 72 5f 46 | 61 74 61 6c 20 61 73 20 | Error_F|atal as |
|00001290| 20 6d 61 6e 79 0a 20 20 | 20 20 20 20 20 20 20 20 | many. | |
|000012a0| 20 20 20 20 20 20 74 69 | 6d 65 73 20 61 73 20 45 | ti|mes as E|
|000012b0| 72 72 6f 72 5f 53 65 76 | 65 72 65 20 68 61 73 20 |rror_Sev|ere has |
|000012c0| 62 65 65 6e 20 63 61 6c | 6c 65 64 20 28 73 65 65 |been cal|led (see|
|000012d0| 20 74 68 65 20 65 78 61 | 6d 70 6c 65 0a 20 20 20 | the exa|mple. |
|000012e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 67 69 76 | | giv|
|000012f0| 65 6e 20 69 6e 20 74 68 | 65 20 54 65 63 68 6e 69 |en in th|e Techni|
|00001300| 63 61 6c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |cal info|rmation |
|00001310| 61 62 6f 76 65 29 2e 20 | 0a 52 65 6c 61 74 65 64 |above). |.Related|
|00001320| 20 53 57 49 73 20 20 20 | 20 45 72 72 6f 72 5f 46 | SWIs | Error_F|
|00001330| 61 74 61 6c 20 28 53 57 | 49 20 26 34 32 37 43 30 |atal (SW|I &427C0|
|00001340| 29 2e 20 0a 52 65 6c 61 | 74 65 64 20 76 65 63 74 |). .Rela|ted vect|
|00001350| 6f 72 73 20 4e 6f 6e 65 | 2e 0a 0a 45 72 72 6f 72 |ors None|...Error|
|00001360| 5f 4c 61 73 74 45 72 72 | 6f 72 0a 28 53 57 49 20 |_LastErr|or.(SWI |
|00001370| 26 34 32 37 43 32 29 0a | 0a 52 65 74 75 72 6e 73 |&427C2).|.Returns|
|00001380| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 74 | the num|ber of t|
|00001390| 68 65 20 6c 61 73 74 20 | 27 66 61 74 61 6c 27 20 |he last |'fatal' |
|000013a0| 65 72 72 6f 72 20 74 72 | 61 70 70 65 64 20 62 79 |error tr|apped by|
|000013b0| 20 45 72 72 6f 72 2e 0a | 0a 4f 6e 20 65 6e 74 72 | Error..|.On entr|
|000013c0| 79 20 20 20 20 20 20 20 | 20 2d 0a 4f 6e 20 65 78 |y | -.On ex|
|000013d0| 69 74 20 20 20 20 20 20 | 20 20 20 52 30 20 3d 20 |it | R0 = |
|000013e0| 65 72 72 6f 72 20 6e 75 | 6d 62 65 72 2e 20 0a 49 |error nu|mber. .I|
|000013f0| 6e 74 65 72 72 75 70 74 | 73 20 20 20 20 20 20 49 |nterrupt|s I|
|00001400| 6e 74 65 72 72 75 70 74 | 20 73 74 61 74 75 73 20 |nterrupt| status |
|00001410| 69 73 20 75 6e 64 65 66 | 69 6e 65 64 2e 0a 50 72 |is undef|ined..Pr|
|00001420| 6f 63 65 73 73 6f 72 20 | 6d 6f 64 65 20 20 50 72 |ocessor |mode Pr|
|00001430| 6f 63 65 73 73 6f 72 20 | 69 73 20 69 6e 20 53 56 |ocessor |is in SV|
|00001440| 43 20 6d 6f 64 65 2e 0a | 52 65 2d 65 6e 74 72 61 |C mode..|Re-entra|
|00001450| 6e 63 79 20 20 20 20 20 | 52 65 2d 65 6e 74 72 61 |ncy |Re-entra|
|00001460| 6e 63 79 20 69 73 20 6e | 6f 74 20 64 65 66 69 6e |ncy is n|ot defin|
|00001470| 65 64 2e 20 0a 55 73 65 | 20 20 20 20 20 20 20 20 |ed. .Use| |
|00001480| 20 20 20 20 20 54 68 69 | 73 20 53 57 49 20 65 6e | Thi|s SWI en|
|00001490| 61 62 6c 65 73 20 79 6f | 75 20 74 6f 20 66 69 6e |ables yo|u to fin|
|000014a0| 64 20 6f 75 74 20 65 78 | 61 63 74 6c 79 20 77 68 |d out ex|actly wh|
|000014b0| 69 63 68 20 65 72 72 6f | 72 20 74 68 65 0a 20 20 |ich erro|r the. |
|000014c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6d 6f | | mo|
|000014d0| 64 75 6c 65 20 68 61 73 | 20 74 72 61 70 70 65 64 |dule has| trapped|
|000014e0| 20 77 69 74 68 6f 75 74 | 20 74 65 64 69 6f 75 73 | without| tedious|
|000014f0| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 20 6f 66 20 73 | compari|son of s|
|00001500| 74 72 69 6e 67 73 2e 0a | 52 65 6c 61 74 65 64 20 |trings..|Related |
|00001510| 53 57 49 73 20 20 20 20 | 4e 6f 6e 65 2e 0a 52 65 |SWIs |None..Re|
|00001520| 6c 61 74 65 64 20 76 65 | 63 74 6f 72 73 20 4e 6f |lated ve|ctors No|
|00001530| 6e 65 2e 0a | |ne.. | |
+--------+-------------------------+-------------------------+--------+--------+