home *** CD-ROM | disk | FTP | other *** search
Unknown | 1994-09-15 | 12.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.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| PGP symmetric key encrypted data - Plaintext or unencrypted data salted -
| default (weak)
| |
99%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 8c 33 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |.3......|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 01 18 00 00 00 00 00 00 | 00 18 00 00 a5 4c 00 00 |........|.....L..|
|00000040| 42 f0 49 01 f2 20 ff ff | 72 5f ff ff e0 2f 00 02 |B.I.. ..|r_.../..|
|00000050| 07 05 05 05 01 18 00 00 | 01 18 00 00 00 00 00 00 |........|........|
|00000060| 05 53 45 43 54 49 4f 4e | 20 37 08 08 01 18 00 00 |.SECTION| 7......|
|00000070| 00 00 00 00 0d 07 00 00 | 02 20 00 00 02 20 00 00 |........|. ... ..|
|00000080| 00 00 00 00 00 4c 00 00 | a5 4c 00 00 42 b2 49 03 |.....L..|.L..B.I.|
|00000090| b2 b6 fe ff 62 ed fe ff | 18 2b 00 02 44 45 56 49 |....b...|.+..DEVI|
|000000a0| 43 45 20 44 52 49 56 45 | 52 20 26 20 49 4e 54 45 |CE DRIVE|R & INTE|
|000000b0| 52 52 55 50 54 53 08 50 | 02 20 00 00 00 00 00 00 |RRUPTS.P|. ......|
|000000c0| 0d 07 05 05 0c 31 01 00 | 0c 31 01 00 00 00 00 00 |.....1..|.1......|
|000000d0| 00 4c 00 00 a5 44 00 00 | 42 00 f8 01 02 4e fe ff |.L...D..|B....N..|
|000000e0| e2 7c fe ff c0 21 00 02 | 37 2e 31 20 44 52 49 56 |.|...!..|7.1 DRIV|
|000000f0| 45 52 20 43 4f 4e 43 45 | 50 54 53 08 0c 31 01 00 |ER CONCE|PTS..1..|
|00000100| 00 00 00 00 0d 07 00 00 | 0b 32 01 00 0b 32 01 00 |........|.2...2..|
|00000110| 00 00 00 00 00 44 00 00 | 05 74 00 00 00 a8 e7 06 |.....D..|.t......|
|00000120| 22 ed fd ff 02 1c fe ff | 20 22 00 02 44 65 76 69 |".......| "..Devi|
|00000130| 63 65 20 64 72 69 76 65 | 72 73 20 61 72 65 20 70 |ce drive|rs are p|
|00000140| 72 6f 67 72 61 6d 20 6d | 6f 64 75 6c 65 73 20 77 |rogram m|odules w|
|00000150| 68 69 63 68 20 70 72 6f | 76 69 64 65 20 61 6e 20 |hich pro|vide an |
|00000160| 6f 72 67 61 6e 69 7a 65 | 64 20 73 6f 66 74 77 61 |organize|d softwa|
|00000170| 72 65 20 69 6e 74 65 72 | 66 61 63 65 20 62 65 74 |re inter|face bet|
|00000180| 77 65 65 6e 20 61 20 00 | 00 74 00 00 05 84 00 00 |ween a .|.t......|
|00000190| 00 08 99 07 e2 b4 fd ff | c2 e3 fd ff 20 22 00 00 |........|.... "..|
|000001a0| 70 68 79 73 69 63 61 6c | 20 64 65 76 69 63 65 20 |physical| device |
|000001b0| 61 6e 64 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 |and the |applicat|
|000001c0| 69 6f 6e 20 70 72 6f 67 | 72 61 6d 73 20 75 73 69 |ion prog|rams usi|
|000001d0| 6e 67 20 74 68 65 20 64 | 65 76 69 63 65 2e 20 54 |ng the d|evice. T|
|000001e0| 68 65 20 69 6e 74 65 6e | 74 20 69 73 20 74 6f 20 |he inten|t is to |
|000001f0| 6d 61 73 6b 20 74 68 65 | 20 73 70 65 63 69 66 69 |mask the| specifi|
|00000200| 63 73 20 6f 66 20 74 68 | 65 20 00 00 00 84 00 00 |cs of th|e ......|
|00000210| 05 84 00 00 00 38 c3 07 | a2 7c fd ff 82 ab fd ff |.....8..|.|......|
|00000220| 20 22 00 00 64 65 76 69 | 63 65 27 73 20 68 61 72 | "..devi|ce's har|
|00000230| 64 77 61 72 65 20 70 65 | 63 75 6c 69 61 72 69 74 |dware pe|culiarit|
|00000240| 69 65 73 20 66 72 6f 6d | 20 74 68 65 20 61 70 70 |ies from| the app|
|00000250| 6c 69 63 61 74 69 6f 6e | 20 73 6f 66 74 77 61 72 |lication| softwar|
|00000260| 65 2e 20 42 79 20 64 6f | 69 6e 67 20 73 6f 2c 20 |e. By do|ing so, |
|00000270| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication |
|00000280| 63 6f 64 65 20 6e 65 65 | 64 20 6f 6e 6c 79 20 00 |code nee|d only .|
|00000290| 00 84 00 00 05 84 00 00 | 00 4c ca 07 62 44 fd ff |........|.L..bD..|
|000002a0| 42 73 fd ff 20 22 00 00 | 63 6f 6e 66 6f 72 6d 20 |Bs.. "..|conform |
|000002b0| 74 6f 20 74 68 65 20 70 | 72 6f 74 6f 63 6f 6c 20 |to the p|rotocol |
|000002c0| 77 68 69 63 68 20 74 68 | 65 20 64 65 76 69 63 65 |which th|e device|
|000002d0| 20 64 72 69 76 65 72 20 | 65 78 70 65 63 74 73 20 | driver |expects |
|000002e0| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 70 65 72 66 |in order| to perf|
|000002f0| 6f 72 6d 20 61 20 66 75 | 6e 63 74 69 6f 6e 2e 20 |orm a fu|nction. |
|00000300| 45 61 63 68 20 64 65 76 | 69 63 65 20 64 72 69 76 |Each dev|ice driv|
|00000310| 65 72 20 00 00 84 00 00 | 05 88 00 00 00 c0 cb 07 |er .....|........|
|00000320| 22 0c fd ff 02 3b fd ff | 20 22 00 00 6d 61 79 20 |"....;..| "..may |
|00000330| 68 61 76 65 20 61 20 70 | 72 6f 74 6f 63 6f 6c 20 |have a p|rotocol |
|00000340| 75 6e 69 71 75 65 20 74 | 6f 20 69 74 73 20 66 75 |unique t|o its fu|
|00000350| 6e 63 74 69 6f 6e 2c 20 | 69 2e 65 2e 2c 20 61 20 |nction, |i.e., a |
|00000360| 64 69 73 6b 20 64 72 69 | 76 65 72 20 68 61 73 20 |disk dri|ver has |
|00000370| 64 69 66 66 65 72 65 6e | 74 20 66 75 6e 63 74 69 |differen|t functi|
|00000380| 6f 6e 61 6c 20 72 65 71 | 75 69 72 65 6d 65 6e 74 |onal req|uirement|
|00000390| 73 20 66 72 6f 6d 20 61 | 6e 20 00 00 00 88 00 00 |s from a|n ......|
|000003a0| 25 38 00 00 42 e8 00 02 | e2 d3 fc ff c2 02 fd ff |%8..B...|........|
|000003b0| 20 22 00 00 61 6e 61 6c | 6f 67 2d 74 6f 2d 64 69 | "..anal|og-to-di|
|000003c0| 67 69 74 61 6c 20 63 6f | 6e 76 65 72 74 65 72 2e |gital co|nverter.|
|000003d0| 0d 00 00 00 00 38 00 00 | 05 74 00 00 00 fc d2 06 |.....8..|.t......|
|000003e0| 62 7c fc ff 42 ab fc ff | 20 22 00 02 49 6e 20 6f |b|..B...| "..In o|
|000003f0| 72 64 65 72 20 74 6f 20 | 61 63 63 6f 6d 6d 6f 64 |rder to |accommod|
|00000400| 61 74 65 20 74 68 65 20 | 77 69 64 65 20 72 61 6e |ate the |wide ran|
|00000410| 67 65 20 6f 66 20 64 65 | 76 69 63 65 73 20 77 68 |ge of de|vices wh|
|00000420| 69 63 68 20 61 72 65 20 | 66 6f 75 6e 64 20 69 6e |ich are |found in|
|00000430| 20 72 65 61 6c 2d 74 69 | 6d 65 20 73 79 73 74 65 | real-ti|me syste|
|00000440| 6d 73 2c 20 74 68 65 20 | 00 74 00 00 05 7c 00 00 |ms, the |.t...|..|
|00000450| 00 6c 08 07 22 44 fc ff | 02 73 fc ff 20 22 00 00 |.l.."D..|.s.. "..|
|00000460| 64 65 76 69 63 65 20 64 | 72 69 76 65 72 73 20 69 |device d|rivers i|
|00000470| 6e 20 4d 43 58 31 31 20 | 61 72 65 20 73 74 72 75 |n MCX11 |are stru|
|00000480| 63 74 75 72 65 64 20 61 | 73 20 74 61 73 6b 73 2e |ctured a|s tasks.|
|00000490| 20 41 73 20 61 20 74 61 | 73 6b 2c 20 61 20 64 65 | As a ta|sk, a de|
|000004a0| 76 69 63 65 20 64 72 69 | 76 65 72 20 68 61 73 20 |vice dri|ver has |
|000004b0| 74 68 65 20 6d 6f 73 74 | 20 66 6c 65 78 69 62 6c |the most| flexibl|
|000004c0| 65 20 00 00 00 7c 00 00 | 05 80 00 00 00 70 85 07 |e ...|..|.....p..|
|000004d0| e2 0b fc ff c2 3a fc ff | 20 22 00 00 65 6e 76 69 |.....:..| "..envi|
|000004e0| 72 6f 6e 6d 65 6e 74 20 | 77 69 74 68 20 63 6f 6d |ronment |with com|
|000004f0| 70 6c 65 74 65 20 61 63 | 63 65 73 73 20 74 6f 20 |plete ac|cess to |
|00000500| 73 79 73 74 65 6d 20 72 | 65 73 6f 75 72 63 65 73 |system r|esources|
|00000510| 20 76 69 61 20 74 68 65 | 20 45 78 65 63 75 74 69 | via the| Executi|
|00000520| 76 65 20 53 65 72 76 69 | 63 65 20 52 65 71 75 65 |ve Servi|ce Reque|
|00000530| 73 74 73 2e 20 41 63 74 | 75 61 6c 6c 79 2c 20 61 |sts. Act|ually, a|
|00000540| 20 00 00 00 00 80 00 00 | 05 8c 00 00 00 64 e8 07 | .......|.....d..|
|00000550| a2 d3 fb ff 82 02 fc ff | 20 22 00 00 64 65 76 69 |........| "..devi|
|00000560| 63 65 20 64 72 69 76 65 | 72 20 75 73 75 61 6c 6c |ce drive|r usuall|
|00000570| 79 20 63 6f 6e 73 69 73 | 74 73 20 6f 66 20 74 77 |y consis|ts of tw|
|00000580| 6f 20 70 61 72 74 73 3a | 20 74 68 65 20 64 72 69 |o parts:| the dri|
|00000590| 76 65 72 20 74 61 73 6b | 2c 20 61 6e 64 20 74 68 |ver task|, and th|
|000005a0| 65 20 69 6e 74 65 72 72 | 75 70 74 20 73 65 72 76 |e interr|upt serv|
|000005b0| 69 63 65 20 72 6f 75 74 | 69 6e 65 20 28 49 53 52 |ice rout|ine (ISR|
|000005c0| 29 2e 20 54 68 65 20 6c | 61 74 74 65 72 20 00 00 |). The l|atter ..|
|000005d0| 00 8c 00 00 05 88 00 00 | 00 f0 b6 07 62 9b fb ff |........|....b...|
|000005e0| 42 ca fb ff 20 22 00 00 | 69 73 20 75 73 65 64 20 |B... "..|is used |
|000005f0| 77 68 65 6e 20 74 68 65 | 20 64 65 76 69 63 65 20 |when the| device |
|00000600| 63 61 6e 20 63 61 75 73 | 65 20 61 6e 20 69 6e 74 |can caus|e an int|
|00000610| 65 72 72 75 70 74 20 74 | 6f 20 73 69 67 6e 61 6c |errupt t|o signal|
|00000620| 20 74 68 65 20 63 6f 6d | 70 6c 65 74 69 6f 6e 20 | the com|pletion |
|00000630| 6f 66 20 61 20 66 75 6e | 63 74 69 6f 6e 20 6f 72 |of a fun|ction or|
|00000640| 20 74 68 65 20 61 76 61 | 69 6c 61 62 69 6c 69 74 | the ava|ilabilit|
|00000650| 79 20 6f 66 20 00 00 00 | 00 88 00 00 25 24 00 00 |y of ...|....%$..|
|00000660| 42 10 cb 00 22 63 fb ff | 02 92 fb ff 20 22 00 00 |B..."c..|.... "..|
|00000670| 74 68 65 20 64 65 76 69 | 63 65 2e 0d 00 24 00 00 |the devi|ce...$..|
|00000680| 05 78 00 00 00 a4 f7 06 | a2 0b fb ff 82 3a fb ff |.x......|.....:..|
|00000690| 20 22 00 02 41 6e 20 49 | 53 52 20 65 78 69 73 74 | "..An I|SR exist|
|000006a0| 73 20 74 6f 20 68 61 6e | 64 6c 65 20 61 6e 20 65 |s to han|dle an e|
|000006b0| 78 63 65 70 74 69 6f 6e | 20 69 6e 20 74 68 65 20 |xception| in the |
|000006c0| 6e 6f 72 6d 61 6c 20 66 | 6c 6f 77 20 6f 66 20 70 |normal f|low of p|
|000006d0| 72 6f 63 65 73 73 69 6e | 67 2e 20 54 68 65 20 67 |rocessin|g. The g|
|000006e0| 65 6e 65 72 61 6c 20 70 | 68 69 6c 6f 73 6f 70 68 |eneral p|hilosoph|
|000006f0| 79 20 00 00 00 78 00 00 | 05 84 00 00 00 bc 81 07 |y ...x..|........|
|00000700| 62 d3 fa ff 42 02 fb ff | 20 22 00 00 6f 66 20 4d |b...B...| "..of M|
|00000710| 43 58 31 31 20 64 72 69 | 76 65 72 73 20 69 73 20 |CX11 dri|vers is |
|00000720| 74 6f 20 6d 69 6e 69 6d | 69 7a 65 20 74 68 65 20 |to minim|ize the |
|00000730| 74 69 6d 65 20 73 70 65 | 6e 74 20 69 6e 20 74 68 |time spe|nt in th|
|00000740| 65 20 69 6e 74 65 72 72 | 75 70 74 20 73 65 72 76 |e interr|upt serv|
|00000750| 69 63 65 20 72 6f 75 74 | 69 6e 65 20 61 6e 64 20 |ice rout|ine and |
|00000760| 6c 65 74 20 74 68 65 20 | 74 61 73 6b 20 70 6f 72 |let the |task por|
|00000770| 74 69 6f 6e 20 00 00 00 | 00 84 00 00 05 88 00 00 |tion ...|........|
|00000780| 00 40 c1 07 22 9b fa ff | 02 ca fa ff 20 22 00 00 |.@.."...|.... "..|
|00000790| 68 61 6e 64 6c 65 20 74 | 68 65 20 72 65 61 6c 20 |handle t|he real |
|000007a0| 77 6f 72 6b 20 6f 66 20 | 74 68 65 20 64 72 69 76 |work of |the driv|
|000007b0| 65 72 2e 20 54 68 69 73 | 20 64 65 73 69 67 6e 20 |er. This| design |
|000007c0| 63 6f 6e 63 65 70 74 20 | 70 6c 61 63 65 73 20 6e |concept |places n|
|000007d0| 6f 20 72 65 73 74 72 69 | 63 74 69 6f 6e 73 20 6f |o restri|ctions o|
|000007e0| 6e 20 74 68 65 20 64 65 | 73 69 67 6e 65 72 20 66 |n the de|signer f|
|000007f0| 6f 72 20 65 69 74 68 65 | 72 20 74 68 65 20 00 00 |or eithe|r the ..|
|00000800| 00 88 00 00 05 80 00 00 | 00 f4 5b 07 e2 62 fa ff |........|..[..b..|
|00000810| c2 91 fa ff 20 22 00 00 | 49 53 52 20 6f 72 20 74 |.... "..|ISR or t|
|00000820| 68 65 20 74 61 73 6b 20 | 66 75 6e 63 74 69 6f 6e |he task |function|
|00000830| 61 6c 69 74 79 2e 20 54 | 68 65 20 73 74 72 75 63 |ality. T|he struc|
|00000840| 74 75 72 65 20 6f 66 20 | 74 68 65 20 49 53 52 20 |ture of |the ISR |
|00000850| 69 73 20 65 78 70 6c 61 | 69 6e 65 64 20 6d 6f 72 |is expla|ined mor|
|00000860| 65 20 63 6f 6d 70 6c 65 | 74 65 6c 79 20 69 6e 20 |e comple|tely in |
|00000870| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 00 00 |the foll|owing ..|
|00000880| 00 80 00 00 a5 3c 00 00 | 42 84 90 00 a2 2a fa ff |.....<..|B....*..|
|00000890| 82 59 fa ff 20 22 00 00 | 73 65 63 74 69 6f 6e 2e |.Y.. "..|section.|
|000008a0| 08 6f 6c 6c 0b 32 01 00 | 00 00 00 00 0d 07 69 6f |.oll.2..|......io|
|000008b0| 0c 33 01 00 0c 33 01 00 | 00 00 00 00 00 3c 00 00 |.3...3..|.....<..|
|000008c0| a5 48 00 00 42 4c 24 02 | 22 ba f9 ff 02 e9 f9 ff |.H..BL$.|".......|
|000008d0| c0 21 00 02 37 2e 32 20 | 49 4e 54 45 52 52 55 50 |.!..7.2 |INTERRUP|
|000008e0| 54 20 53 45 52 56 49 43 | 45 08 54 45 0c 33 01 00 |T SERVIC|E.TE.3..|
|000008f0| 00 00 00 00 0d 07 49 43 | 0b 34 01 00 0b 34 01 00 |......IC|.4...4..|
|00000900| 00 00 00 00 00 48 00 00 | 05 7c 00 00 00 44 03 07 |.....H..|.|...D..|
|00000910| 42 59 f9 ff 22 88 f9 ff | 20 22 00 02 54 68 65 20 |BY.."...| "..The |
|00000920| 63 6c 61 73 73 69 63 20 | 69 6e 74 65 72 72 75 70 |classic |interrup|
|00000930| 74 20 70 72 6f 63 65 73 | 73 69 6e 67 20 70 68 69 |t proces|sing phi|
|00000940| 6c 6f 73 6f 70 68 79 20 | 69 73 20 74 6f 20 61 63 |losophy |is to ac|
|00000950| 6b 6e 6f 77 6c 65 64 67 | 65 20 74 68 65 20 69 6e |knowledg|e the in|
|00000960| 74 65 72 72 75 70 74 20 | 61 6e 64 20 73 61 76 65 |terrupt |and save|
|00000970| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 00 00 00 | the cur|rent ...|
|00000980| 00 7c 00 00 05 88 00 00 | 00 4c f1 07 02 21 f9 ff |.|......|.L...!..|
|00000990| e2 4f f9 ff 20 22 00 00 | 70 72 6f 63 65 73 73 6f |.O.. "..|processo|
|000009a0| 72 20 63 6f 6e 74 65 78 | 74 2e 20 54 68 65 6e 20 |r contex|t. Then |
|000009b0| 61 20 62 72 61 6e 63 68 | 20 69 73 20 6d 61 64 65 |a branch| is made|
|000009c0| 20 74 6f 20 61 20 73 6f | 66 74 77 61 72 65 20 72 | to a so|ftware r|
|000009d0| 6f 75 74 69 6e 65 20 77 | 68 65 72 65 20 74 68 65 |outine w|here the|
|000009e0| 20 63 6f 64 65 20 73 65 | 72 76 69 63 65 73 20 74 | code se|rvices t|
|000009f0| 68 65 20 73 70 65 63 69 | 66 69 63 20 69 6e 74 65 |he speci|fic inte|
|00000a00| 72 72 75 70 74 20 00 00 | 00 88 00 00 05 84 00 00 |rrupt ..|........|
|00000a10| 00 78 b9 07 c2 e8 f8 ff | a2 17 f9 ff 20 22 00 00 |.x......|.... "..|
|00000a20| 61 6e 64 20 70 65 72 66 | 6f 72 6d 73 20 61 6e 79 |and perf|orms any|
|00000a30| 20 72 65 71 75 69 72 65 | 64 20 6f 70 65 72 61 74 | require|d operat|
|00000a40| 69 6f 6e 73 2e 20 57 68 | 65 6e 20 74 68 65 20 69 |ions. Wh|en the i|
|00000a50| 6e 74 65 72 72 75 70 74 | 20 73 65 72 76 69 63 65 |nterrupt| service|
|00000a60| 20 72 6f 75 74 69 6e 65 | 20 69 73 20 63 6f 6d 70 | routine| is comp|
|00000a70| 6c 65 74 65 2c 20 63 6f | 6e 74 72 6f 6c 20 6f 66 |lete, co|ntrol of|
|00000a80| 20 74 68 65 20 6d 61 69 | 6e 20 00 00 00 84 00 00 | the mai|n ......|
|00000a90| 25 7c 00 00 42 9c 2f 07 | 82 b0 f8 ff 62 df f8 ff |%|..B./.|....b...|
|00000aa0| 20 22 00 00 70 72 6f 67 | 72 61 6d 20 69 73 20 72 | "..prog|ram is r|
|00000ab0| 65 73 75 6d 65 64 20 61 | 74 20 74 68 65 20 70 6f |esumed a|t the po|
|00000ac0| 69 6e 74 20 6f 66 20 69 | 6e 74 65 72 72 75 70 74 |int of i|nterrupt|
|00000ad0| 69 6f 6e 2e 20 4d 43 58 | 31 31 20 75 73 65 73 20 |ion. MCX|11 uses |
|00000ae0| 61 20 6d 6f 64 69 66 69 | 65 64 20 76 65 72 73 69 |a modifi|ed versi|
|00000af0| 6f 6e 20 6f 66 20 74 68 | 61 74 20 73 65 71 75 65 |on of th|at seque|
|00000b00| 6e 63 65 2e 0d 00 00 00 | 00 7c 00 00 05 74 00 00 |nce.....|.|...t..|
|00000b10| 00 b8 ef 06 02 59 f8 ff | e2 87 f8 ff 20 22 00 02 |.....Y..|.... "..|
|00000b20| 54 68 65 20 4d 43 36 38 | 48 43 31 31 20 6d 69 63 |The MC68|HC11 mic|
|00000b30| 72 6f 63 6f 6e 74 72 6f | 6c 6c 65 72 20 61 6c 77 |rocontro|ller alw|
|00000b40| 61 79 73 20 70 75 73 68 | 65 73 20 74 68 65 20 63 |ays push|es the c|
|00000b50| 75 72 72 65 6e 74 20 70 | 72 6f 63 65 73 73 6f 72 |urrent p|rocessor|
|00000b60| 20 63 6f 6e 74 65 78 74 | 20 6f 66 20 6e 69 6e 65 | context| of nine|
|00000b70| 20 28 39 29 20 62 79 74 | 65 73 20 00 00 74 00 00 | (9) byt|es ..t..|
|00000b80| 05 80 00 00 00 14 84 07 | c2 20 f8 ff a2 4f f8 ff |........|. ...O..|
|00000b90| 20 22 00 00 6f 6e 20 74 | 68 65 20 61 63 74 69 76 | "..on t|he activ|
|00000ba0| 65 20 73 74 61 63 6b 20 | 77 68 65 6e 20 61 6e 20 |e stack |when an |
|00000bb0| 69 6e 74 65 72 72 75 70 | 74 20 6f 63 63 75 72 73 |interrup|t occurs|
|00000bc0| 2e 20 54 68 61 74 20 68 | 61 76 69 6e 67 20 62 65 |. That h|aving be|
|00000bd0| 65 6e 20 64 6f 6e 65 2c | 20 69 74 20 61 63 6b 6e |en done,| it ackn|
|00000be0| 6f 77 6c 65 64 67 65 73 | 20 74 68 65 20 69 6e 74 |owledges| the int|
|00000bf0| 65 72 72 75 70 74 20 61 | 6e 64 20 00 00 80 00 00 |errupt a|nd .....|
|00000c00| 05 84 00 00 03 90 74 07 | 82 e8 f7 ff 62 17 f8 ff |......t.|....b...|
|00000c10| 20 22 00 00 76 65 63 74 | 6f 72 73 20 61 75 74 6f | "..vect|ors auto|
|00000c20| 6d 61 74 69 63 61 6c 6c | 79 20 74 6f 20 74 68 65 |maticall|y to the|
|00000c30| 20 73 70 65 63 69 66 69 | 63 20 49 53 52 20 77 72 | specifi|c ISR wr|
|00000c40| 69 74 74 65 6e 20 66 6f | 72 20 74 68 61 74 20 65 |itten fo|r that e|
|00000c50| 76 65 6e 74 2e 20 54 68 | 65 20 75 73 65 72 20 6d |vent. Th|e user m|
|00000c60| 75 73 74 20 69 6e 69 74 | 69 61 6c 69 7a 65 20 65 |ust init|ialize e|
|00000c70| 61 63 68 20 74 77 6f 05 | 2d 05 62 79 74 65 20 00 |ach two.|-.byte .|
|00000c80| 00 84 00 00 25 74 00 00 | 42 fc 18 06 42 b0 f7 ff |....%t..|B...B...|
|00000c90| 22 df f7 ff 20 22 00 00 | 69 6e 74 65 72 72 75 70 |"... "..|interrup|
|00000ca0| 74 20 76 65 63 74 6f 72 | 20 6c 6f 63 61 74 69 6f |t vector| locatio|
|00000cb0| 6e 20 73 70 65 63 69 66 | 69 63 20 74 6f 20 68 69 |n specif|ic to hi|
|00000cc0| 73 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 61 73 |s applic|ation as|
|00000cd0| 20 70 61 72 74 20 6f 66 | 20 74 68 65 20 69 6e 69 | part of| the ini|
|00000ce0| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 63 6f 64 65 |tializat|ion code|
|00000cf0| 2e 0d 00 00 00 74 00 00 | 05 78 00 00 00 3c a8 06 |.....t..|.x...<..|
|00000d00| c2 58 f7 ff a2 87 f7 ff | 20 22 00 02 4d 43 58 31 |.X......| "..MCX1|
|00000d10| 31 20 70 72 65 73 65 74 | 73 20 74 68 65 20 76 65 |1 preset|s the ve|
|00000d20| 63 74 6f 72 20 6c 6f 63 | 61 74 69 6f 6e 73 20 66 |ctor loc|ations f|
|00000d30| 6f 72 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |or the f|ollowing|
|00000d40| 20 69 6e 74 65 72 72 75 | 70 74 73 2e 20 41 6c 6c | interru|pts. All|
|00000d50| 20 6f 74 68 65 72 73 20 | 6e 6f 74 20 73 70 65 63 | others |not spec|
|00000d60| 69 66 69 63 61 6c 6c 79 | 20 00 00 00 00 78 00 00 |ifically| ....x..|
|00000d70| 25 4c 00 00 42 7c e6 03 | 82 20 f7 ff 62 4f f7 ff |%L..B|..|. ..bO..|
|00000d80| 20 22 00 00 72 65 73 65 | 72 76 65 64 20 62 79 20 | "..rese|rved by |
|00000d90| 74 68 65 20 4d 43 36 38 | 48 43 31 31 20 61 72 65 |the MC68|HC11 are|
|00000da0| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 74 68 | availab|le to th|
|00000db0| 65 20 75 73 65 72 2e 0d | 00 4c 00 00 25 3c 00 00 |e user..|.L..%<..|
|00000dc0| 47 84 0e 03 02 c9 f6 ff | e2 f7 f6 ff 20 22 00 02 |G.......|.... "..|
|00000dd0| 45 76 65 6e 74 20 12 41 | 94 e2 00 00 00 00 00 00 |Event .A|........|
|00000de0| 12 41 64 64 40 19 01 00 | 00 00 00 00 41 64 64 72 |.Add@...|....Addr|
|00000df0| 65 73 73 0d 00 3c 00 00 | 25 48 00 00 47 a4 7e 03 |ess..<..|%H..G.~.|
|00000e00| 82 71 f6 ff 62 a0 f6 ff | 20 22 00 02 43 6c 6f 63 |.q..b...| "..Cloc|
|00000e10| 6b 20 28 52 54 49 29 20 | 12 24 46 46 80 69 00 00 |k (RTI) |.$FF.i..|
|00000e20| 00 00 00 00 12 24 46 46 | 40 19 01 00 00 00 00 00 |.....$FF|@.......|
|00000e30| 24 46 46 46 30 2d 24 46 | 46 46 31 0d 00 48 00 00 |$FFF0-$F|FF1..H..|
|00000e40| 25 40 00 00 47 a4 7e 03 | 02 1a f6 ff e2 48 f6 ff |%@..G.~.|.....H..|
|00000e50| 20 22 00 02 4d 43 58 31 | 31 20 45 53 52 20 72 65 | "..MCX1|1 ESR re|
|00000e60| 71 75 65 73 74 20 12 24 | c0 da 00 00 00 00 00 00 |quest .$|........|
|00000e70| 24 46 46 46 36 2d 24 46 | 46 46 37 0d 00 40 00 00 |$FFF6-$F|FF7..@..|
|00000e80| 25 4c 00 00 47 78 86 03 | 82 c2 f5 ff 62 f1 f5 ff |%L..Gx..|....b...|
|00000e90| 20 22 00 02 50 6f 77 65 | 72 20 4f 6e 2f 52 65 73 | "..Powe|r On/Res|
|00000ea0| 65 74 20 12 fc 1d 00 00 | 00 00 00 00 12 24 46 46 |et .....|.....$FF|
|00000eb0| 40 19 01 00 00 00 00 00 | 05 24 46 46 46 45 2d 24 |@.......|.$FFFE-$|
|00000ec0| 46 46 46 46 0d 00 00 00 | 00 4c 00 00 05 74 00 00 |FFFF....|.L...t..|
|00000ed0| 00 5c e5 06 02 6b f5 ff | e2 99 f5 ff 20 22 00 02 |.\...k..|.... "..|
|00000ee0| 4d 43 58 31 31 20 75 73 | 65 73 20 61 20 6d 6f 64 |MCX11 us|es a mod|
|00000ef0| 69 66 69 65 64 20 76 65 | 72 73 69 6f 6e 20 6f 66 |ified ve|rsion of|
|00000f00| 20 74 68 65 20 63 6c 61 | 73 73 69 63 61 6c 20 49 | the cla|ssical I|
|00000f10| 53 52 20 61 70 70 72 6f | 61 63 68 2e 20 54 68 65 |SR appro|ach. The|
|00000f20| 20 73 65 71 75 65 6e 63 | 65 20 69 73 20 74 68 65 | sequenc|e is the|
|00000f30| 20 73 61 6d 65 20 75 6e | 74 69 6c 20 00 74 00 00 | same un|til .t..|
|00000f40| 05 80 00 00 00 cc 86 07 | c2 32 f5 ff a2 61 f5 ff |........|.2...a..|
|00000f50| 20 22 00 00 74 68 65 20 | 72 65 74 75 72 6e 20 74 | "..the |return t|
|00000f60| 6f 20 74 68 65 20 69 6e | 74 65 72 72 75 70 74 65 |o the in|terrupte|
|00000f70| 64 20 70 72 6f 67 72 61 | 6d 20 69 73 20 6d 61 64 |d progra|m is mad|
|00000f80| 65 20 61 74 20 74 68 65 | 20 65 6e 64 20 6f 66 20 |e at the| end of |
|00000f90| 74 68 65 20 49 53 52 2e | 20 49 6e 20 4d 43 58 31 |the ISR.| In MCX1|
|00000fa0| 31 2c 20 61 6e 20 69 6e | 74 65 72 72 75 70 74 20 |1, an in|terrupt |
|00000fb0| 6d 61 79 20 62 65 20 74 | 68 65 20 00 00 80 00 00 |may be t|he .....|
|00000fc0| 05 88 00 00 00 50 a5 07 | 82 fa f4 ff 62 29 f5 ff |.....P..|....b)..|
|00000fd0| 20 22 00 00 65 76 65 6e | 74 20 66 6f 72 20 77 68 | "..even|t for wh|
|00000fe0| 69 63 68 20 61 20 74 61 | 73 6b 20 69 73 20 77 61 |ich a ta|sk is wa|
|00000ff0| 69 74 69 6e 67 2e 20 49 | 66 20 73 6f 2c 20 61 20 |iting. I|f so, a |
|00001000| 6e 6f 74 69 66 69 63 61 | 74 69 6f 6e 20 6f 66 20 |notifica|tion of |
|00001010| 74 68 65 20 65 76 65 6e | 74 27 73 20 6f 63 63 75 |the even|t's occu|
|00001020| 72 72 65 6e 63 65 20 6d | 75 73 74 20 62 65 20 67 |rrence m|ust be g|
|00001030| 69 76 65 6e 20 74 6f 20 | 74 68 65 20 74 61 73 6b |iven to |the task|
|00001040| 2e 20 00 00 00 88 00 00 | 05 8c 00 00 00 54 da 07 |. ......|.....T..|
|00001050| 42 c2 f4 ff 22 f1 f4 ff | 20 22 00 00 42 75 74 20 |B..."...| "..But |
|00001060| 74 68 65 20 70 6f 73 73 | 69 62 69 6c 69 74 79 20 |the poss|ibility |
|00001070| 65 78 69 73 74 73 20 74 | 68 61 74 20 74 68 65 20 |exists t|hat the |
|00001080| 77 61 69 74 69 6e 67 20 | 74 61 73 6b 20 68 61 73 |waiting |task has|
|00001090| 20 61 20 68 69 67 68 65 | 72 20 70 72 69 6f 72 69 | a highe|r priori|
|000010a0| 74 79 20 74 68 61 6e 20 | 74 68 65 20 69 6e 74 65 |ty than |the inte|
|000010b0| 72 72 75 70 74 65 64 20 | 74 61 73 6b 2e 20 4e 6f |rrupted |task. No|
|000010c0| 74 69 66 69 63 61 74 69 | 6f 6e 20 6f 66 20 00 00 |tificati|on of ..|
|000010d0| 00 8c 00 00 05 88 00 00 | 00 90 ce 07 02 8a f4 ff |........|........|
|000010e0| e2 b8 f4 ff 20 22 00 00 | 74 68 65 20 65 76 65 6e |.... "..|the even|
|000010f0| 74 20 73 68 6f 75 6c 64 | 20 72 65 6d 6f 76 65 20 |t should| remove |
|00001100| 74 68 65 20 77 61 69 74 | 20 73 74 61 74 65 20 66 |the wait| state f|
|00001110| 72 6f 6d 20 74 68 65 20 | 68 69 67 68 65 72 20 70 |rom the |higher p|
|00001120| 72 69 6f 72 69 74 79 20 | 74 61 73 6b 20 74 68 75 |riority |task thu|
|00001130| 73 20 6d 61 6b 69 6e 67 | 20 69 74 20 72 75 6e 6e |s making| it runn|
|00001140| 61 62 6c 65 2c 20 61 73 | 73 75 6d 69 6e 67 20 69 |able, as|suming i|
|00001150| 74 20 69 73 20 00 00 00 | 00 88 00 00 25 30 00 00 |t is ...|....%0..|
|00001160| 42 b8 a9 01 c2 51 f4 ff | a2 80 f4 ff 20 22 00 00 |B....Q..|.... "..|
|00001170| 6e 6f 74 20 6f 74 68 65 | 72 77 69 73 65 20 62 6c |not othe|rwise bl|
|00001180| 6f 63 6b 65 64 2e 0d 00 | 00 30 00 00 01 10 00 00 |ocked...|.0......|
|00001190| 00 18 9f 06 00 00 00 00 | 00 10 00 00 02 18 00 00 |........|........|
|000011a0| f4 01 00 00 00 00 00 00 | 0b 34 01 00 00 00 00 00 |........|.4......|
|000011b0| 00 18 00 00 05 74 00 00 | 00 18 9f 06 a1 11 f2 ff |.....t..|........|
|000011c0| 81 40 f2 ff 20 22 00 02 | 41 74 20 74 68 61 74 20 |.@.. "..|At that |
|000011d0| 70 6f 69 6e 74 2c 20 61 | 20 64 65 63 69 73 69 6f |point, a| decisio|
|000011e0| 6e 20 68 61 73 20 74 6f | 20 62 65 20 6d 61 64 65 |n has to| be made|
|000011f0| 20 61 73 20 74 6f 20 68 | 6f 77 20 74 6f 20 63 6f | as to h|ow to co|
|00001200| 6e 74 69 6e 75 65 2e 20 | 57 68 69 63 68 65 76 65 |ntinue. |Whicheve|
|00001210| 72 20 74 61 73 6b 20 69 | 73 20 6f 66 20 68 69 67 |r task i|s of hig|
|00001220| 68 65 72 20 00 74 00 00 | 05 8c 00 00 00 00 ef 07 |her .t..|........|
|00001230| 61 d9 f1 ff 41 08 f2 ff | 20 22 00 00 70 72 69 6f |a...A...| "..prio|
|00001240| 72 69 74 79 2c 20 74 68 | 65 20 6f 6e 65 20 69 6e |rity, th|e one in|
|00001250| 74 65 72 72 75 70 74 65 | 64 20 6f 72 20 74 68 65 |terrupte|d or the|
|00001260| 20 6f 6e 65 20 77 68 69 | 63 68 20 77 61 73 20 77 | one whi|ch was w|
|00001270| 61 69 74 69 6e 67 2c 20 | 69 74 20 77 69 6c 6c 20 |aiting, |it will |
|00001280| 62 65 20 74 68 65 20 6f | 6e 65 20 74 6f 20 72 65 |be the o|ne to re|
|00001290| 73 75 6d 65 20 70 72 6f | 63 65 73 73 69 6e 67 2e |sume pro|cessing.|
|000012a0| 20 49 66 20 69 74 20 69 | 73 20 74 68 65 20 00 00 | If it i|s the ..|
|000012b0| 00 8c 00 00 05 88 00 00 | 00 14 7b 07 21 a1 f1 ff |........|..{.!...|
|000012c0| 01 d0 f1 ff 20 22 00 00 | 69 6e 74 65 72 72 75 70 |.... "..|interrup|
|000012d0| 74 65 64 20 74 61 73 6b | 2c 20 69 74 20 72 65 73 |ted task|, it res|
|000012e0| 75 6d 65 73 20 61 74 20 | 74 68 65 20 70 6f 69 6e |umes at |the poin|
|000012f0| 74 20 6f 66 20 69 6e 74 | 65 72 72 75 70 74 69 6f |t of int|erruptio|
|00001300| 6e 20 61 73 20 69 6e 20 | 74 68 65 20 63 6c 61 73 |n as in |the clas|
|00001310| 73 69 63 20 73 65 71 75 | 65 6e 63 65 2e 20 49 66 |sic sequ|ence. If|
|00001320| 20 74 68 65 20 6c 61 74 | 74 65 72 20 74 61 73 6b | the lat|ter task|
|00001330| 20 69 73 20 6f 66 20 00 | 00 88 00 00 05 88 00 00 | is of .|........|
|00001340| 00 ac b5 07 e1 68 f1 ff | c1 97 f1 ff 20 22 00 00 |.....h..|.... "..|
|00001350| 68 69 67 68 65 72 20 70 | 72 69 6f 72 69 74 79 2c |higher p|riority,|
|00001360| 20 61 20 63 6f 6e 74 65 | 78 74 20 73 77 69 74 63 | a conte|xt switc|
|00001370| 68 20 69 73 20 70 65 72 | 66 6f 72 6d 65 64 20 69 |h is per|formed i|
|00001380| 6e 20 77 68 69 63 68 20 | 69 74 20 69 73 20 6d 61 |n which |it is ma|
|00001390| 64 65 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 74 |de the c|urrent t|
|000013a0| 61 73 6b 2e 20 49 74 73 | 20 70 72 6f 63 65 73 73 |ask. Its| process|
|000013b0| 6f 72 20 63 6f 6e 74 65 | 78 74 20 69 73 20 00 00 |or conte|xt is ..|
|000013c0| 00 88 00 00 05 84 00 00 | 00 28 cd 07 a1 30 f1 ff |........|.(...0..|
|000013d0| 81 5f f1 ff 20 22 00 00 | 72 65 73 74 6f 72 65 64 |._.. "..|restored|
|000013e0| 20 66 72 6f 6d 20 69 74 | 73 20 73 74 61 63 6b 20 | from it|s stack |
|000013f0| 61 6e 64 20 74 68 65 20 | 74 61 73 6b 20 72 65 73 |and the |task res|
|00001400| 75 6d 65 73 20 61 74 20 | 74 68 65 20 6c 6f 63 61 |umes at |the loca|
|00001410| 74 69 6f 6e 20 66 6f 6c | 6c 6f 77 69 6e 67 20 74 |tion fol|lowing t|
|00001420| 68 65 20 45 53 52 20 77 | 68 69 63 68 20 63 61 75 |he ESR w|hich cau|
|00001430| 73 65 64 20 69 74 20 74 | 6f 20 77 61 69 74 2e 20 |sed it t|o wait. |
|00001440| 54 68 65 20 00 84 00 00 | 05 88 00 00 00 d8 e9 07 |The ....|........|
|00001450| 61 f8 f0 ff 41 27 f1 ff | 20 22 00 00 69 6e 74 65 |a...A'..| "..inte|
|00001460| 72 72 75 70 74 65 64 20 | 74 61 73 6b 20 72 65 6d |rrupted |task rem|
|00001470| 61 69 6e 73 20 72 75 6e | 6e 61 62 6c 65 20 61 6e |ains run|nable an|
|00001480| 64 20 77 69 6c 6c 20 63 | 6f 6e 74 69 6e 75 65 20 |d will c|ontinue |
|00001490| 61 74 20 74 68 65 20 70 | 6f 69 6e 74 20 6f 66 20 |at the p|oint of |
|000014a0| 69 74 73 20 69 6e 74 65 | 72 72 75 70 74 69 6f 6e |its inte|rruption|
|000014b0| 20 61 74 20 73 6f 6d 65 | 20 6c 61 74 65 72 20 74 | at some| later t|
|000014c0| 69 6d 65 20 77 68 65 6e | 20 69 74 20 00 88 00 00 |ime when| it ....|
|000014d0| 25 44 00 00 42 30 27 03 | 21 c0 f0 ff 01 ef f0 ff |%D..B0'.|!.......|
|000014e0| 20 22 00 00 62 65 63 6f | 6d 65 73 20 74 68 65 20 | "..beco|mes the |
|000014f0| 68 69 67 68 65 73 74 20 | 70 72 69 6f 72 69 74 79 |highest |priority|
|00001500| 20 72 75 6e 6e 61 62 6c | 65 20 74 61 73 6b 2e 0d | runnabl|e task..|
|00001510| 00 44 00 00 05 70 00 00 | 00 64 5f 06 a1 68 f0 ff |.D...p..|.d_..h..|
|00001520| 81 97 f0 ff 20 22 00 02 | 4d 43 58 31 31 20 70 72 |.... "..|MCX11 pr|
|00001530| 6f 76 69 64 65 73 20 61 | 20 63 6f 6d 6d 6f 6e 20 |ovides a| common |
|00001540| 65 78 69 74 20 72 6f 75 | 74 69 6e 65 20 74 6f 20 |exit rou|tine to |
|00001550| 77 68 69 63 68 20 61 6c | 6c 20 49 53 52 73 20 73 |which al|l ISRs s|
|00001560| 68 6f 75 6c 64 20 62 72 | 61 6e 63 68 20 69 66 20 |hould br|anch if |
|00001570| 74 68 65 72 65 20 69 73 | 20 74 68 65 20 00 00 00 |there is| the ...|
|00001580| 00 70 00 00 05 8c 00 00 | 00 f8 e7 07 61 30 f0 ff |.p......|....a0..|
|00001590| 41 5f f0 ff 20 22 00 00 | 70 6f 73 73 69 62 69 6c |A_.. "..|possibil|
|000015a0| 69 74 79 20 6f 66 20 61 | 20 63 6f 6e 74 65 78 74 |ity of a| context|
|000015b0| 20 73 77 69 74 63 68 20 | 61 73 20 74 68 65 20 72 | switch |as the r|
|000015c0| 65 73 75 6c 74 20 6f 66 | 20 74 68 65 20 69 6e 74 |esult of| the int|
|000015d0| 65 72 72 75 70 74 2e 20 | 54 68 65 20 66 75 6e 63 |errupt. |The func|
|000015e0| 74 69 6f 6e 27 73 20 70 | 72 69 6d 61 72 79 20 72 |tion's p|rimary r|
|000015f0| 65 73 70 6f 6e 73 69 62 | 69 6c 69 74 79 20 69 73 |esponsib|ility is|
|00001600| 20 74 6f 20 73 69 67 6e | 61 6c 20 00 00 8c 00 00 | to sign|al .....|
|00001610| 05 84 00 00 00 90 7d 07 | 21 f8 ef ff 01 27 f0 ff |......}.|!....'..|
|00001620| 20 22 00 00 61 20 73 70 | 65 63 69 66 69 65 64 20 | "..a sp|ecified |
|00001630| 73 65 6d 61 70 68 6f 72 | 65 20 6f 66 20 74 68 65 |semaphor|e of the|
|00001640| 20 6f 63 63 75 72 72 65 | 6e 63 65 20 6f 66 20 61 | occurre|nce of a|
|00001650| 6e 20 65 76 65 6e 74 20 | 61 6e 64 20 74 6f 20 64 |n event |and to d|
|00001660| 69 73 70 61 74 63 68 20 | 63 6f 6e 74 72 6f 6c 20 |ispatch |control |
|00001670| 74 6f 20 74 68 65 20 68 | 69 67 68 65 73 74 20 70 |to the h|ighest p|
|00001680| 72 69 6f 72 69 74 79 20 | 74 61 73 6b 20 00 00 00 |riority |task ...|
|00001690| 00 84 00 00 a5 6c 00 00 | 42 14 03 04 e1 bf ef ff |.....l..|B.......|
|000016a0| c1 ee ef ff 20 22 00 00 | 77 68 69 63 68 20 69 73 |.... "..|which is|
|000016b0| 20 72 75 6e 6e 61 62 6c | 65 20 61 66 74 65 72 20 | runnabl|e after |
|000016c0| 74 68 65 20 69 6e 74 65 | 72 72 75 70 74 20 68 61 |the inte|rrupt ha|
|000016d0| 73 20 62 65 65 6e 20 73 | 65 72 76 69 63 65 64 2e |s been s|erviced.|
|000016e0| 08 70 00 00 0b 34 01 00 | 00 00 00 00 0d 07 d5 fd |.p...4..|........|
|000016f0| 0d 35 01 00 0d 35 01 00 | 00 00 00 00 00 6c 00 00 |.5...5..|.....l..|
|00001700| a5 58 00 00 42 e8 bd 02 | 61 4f ef ff 41 7e ef ff |.X..B...|aO..A~..|
|00001710| c0 21 00 02 37 2e 32 2e | 31 20 49 6e 74 65 72 72 |.!..7.2.|1 Interr|
|00001720| 75 70 74 20 50 72 6f 63 | 65 73 73 69 6e 67 20 56 |upt Proc|essing V|
|00001730| 61 72 69 61 62 6c 65 73 | 08 66 74 65 0d 35 01 00 |ariables|.fte.5..|
|00001740| 00 00 00 00 0d 07 72 72 | 0b 36 01 00 0b 36 01 00 |......rr|.6...6..|
|00001750| 00 00 00 00 00 58 00 00 | 05 7c 00 00 00 fc 17 07 |.....X..|.|......|
|00001760| 81 ee ee ff 61 1d ef ff | 20 22 00 02 49 6e 20 6f |....a...| "..In o|
|00001770| 72 64 65 72 20 66 6f 72 | 20 4d 43 58 31 31 20 69 |rder for| MCX11 i|
|00001780| 6e 74 65 72 72 75 70 74 | 20 73 65 72 76 69 63 69 |nterrupt| servici|
|00001790| 6e 67 20 74 6f 20 6f 70 | 65 72 61 74 65 20 70 72 |ng to op|erate pr|
|000017a0| 6f 70 65 72 6c 79 2c 20 | 69 74 20 69 73 20 6e 65 |operly, |it is ne|
|000017b0| 63 65 73 73 61 72 79 20 | 74 6f 20 6f 62 73 65 72 |cessary |to obser|
|000017c0| 76 65 20 61 20 66 65 77 | 20 72 75 6c 65 73 20 00 |ve a few| rules .|
|000017d0| 00 7c 00 00 05 84 00 00 | 00 18 bc 07 41 b6 ee ff |.|......|....A...|
|000017e0| 21 e5 ee ff 20 22 00 00 | 6f 66 20 74 68 65 20 72 |!... "..|of the r|
|000017f0| 6f 61 64 2e 20 54 68 65 | 72 65 20 61 72 65 20 73 |oad. The|re are s|
|00001800| 6f 6d 65 20 73 79 73 74 | 65 6d 20 76 61 72 69 61 |ome syst|em varia|
|00001810| 62 6c 65 73 20 77 68 69 | 63 68 20 61 72 65 20 75 |bles whi|ch are u|
|00001820| 73 65 64 20 64 75 72 69 | 6e 67 20 69 6e 74 65 72 |sed duri|ng inter|
|00001830| 72 75 70 74 20 70 72 6f | 63 65 73 73 69 6e 67 20 |rupt pro|cessing |
|00001840| 69 6e 20 74 68 65 20 49 | 53 52 20 61 6e 64 20 69 |in the I|SR and i|
|00001850| 6e 20 00 00 00 84 00 00 | 05 7c 00 00 00 5c 3f 07 |n ......|.|...\?.|
|00001860| 01 7e ee ff e1 ac ee ff | 20 22 00 00 74 68 65 20 |.~......| "..the |
|00001870| 63 6f 6d 6d 6f 6e 20 49 | 53 52 20 65 78 69 74 20 |common I|SR exit |
|00001880| 72 6f 75 74 69 6e 65 2e | 20 54 68 65 73 65 20 76 |routine.| These v|
|00001890| 61 72 69 61 62 6c 65 73 | 20 6d 75 73 74 20 62 65 |ariables| must be|
|000018a0| 20 75 73 65 64 20 6f 6e | 6c 79 20 69 6e 20 74 68 | used on|ly in th|
|000018b0| 65 20 49 53 52 20 61 6e | 64 20 73 68 6f 75 6c 64 |e ISR an|d should|
|000018c0| 20 6e 6f 74 20 62 65 20 | 75 73 65 64 20 00 00 00 | not be |used ...|
|000018d0| 00 7c 00 00 05 88 00 00 | 00 7c d3 07 c1 45 ee ff |.|......|.|...E..|
|000018e0| a1 74 ee ff 20 22 00 00 | 65 6c 73 65 77 68 65 72 |.t.. "..|elsewher|
|000018f0| 65 2e 20 41 20 6c 69 73 | 74 69 6e 67 20 6f 66 20 |e. A lis|ting of |
|00001900| 74 68 65 20 76 61 72 69 | 61 62 6c 65 73 20 61 6e |the vari|ables an|
|00001910| 64 20 61 20 62 72 69 65 | 66 20 64 65 73 63 72 69 |d a brie|f descri|
|00001920| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 6d 20 66 6f |ption of| them fo|
|00001930| 6c 6c 6f 77 73 2e 20 54 | 68 65 69 72 20 61 64 64 |llows. T|heir add|
|00001940| 72 65 73 73 65 73 20 61 | 72 65 20 61 6c 73 6f 20 |resses a|re also |
|00001950| 67 69 76 65 6e 20 00 00 | 00 88 00 00 05 78 00 00 |given ..|.....x..|
|00001960| 00 94 ac 07 81 0d ee ff | 61 3c ee ff 20 22 00 00 |........|a<.. "..|
|00001970| 61 73 20 61 20 64 69 73 | 70 6c 61 63 65 6d 65 6e |as a dis|placemen|
|00001980| 74 20 66 72 6f 6d 20 74 | 68 65 20 62 61 73 65 20 |t from t|he base |
|00001990| 61 64 64 72 65 73 73 20 | 6f 66 20 74 68 65 20 4d |address |of the M|
|000019a0| 43 58 31 31 20 73 79 73 | 74 65 6d 20 76 61 72 69 |CX11 sys|tem vari|
|000019b0| 61 62 6c 65 73 2c 20 4d | 43 58 56 41 52 2e 20 4d |ables, M|CXVAR. M|
|000019c0| 43 58 56 41 52 20 6d 61 | 79 20 62 65 20 00 00 00 |CXVAR ma|y be ...|
|000019d0| 00 78 00 00 25 74 00 00 | 42 6c 26 07 41 d5 ed ff |.x..%t..|Bl&.A...|
|000019e0| 21 04 ee ff 20 22 00 00 | 6c 6f 63 61 74 65 64 20 |!... "..|located |
|000019f0| 61 74 20 61 6e 79 20 52 | 41 4d 20 61 64 64 72 65 |at any R|AM addre|
|00001a00| 73 73 20 62 75 74 20 6d | 75 73 74 20 62 65 20 70 |ss but m|ust be p|
|00001a10| 72 65 64 65 66 69 6e 65 | 64 20 61 6e 64 20 61 73 |redefine|d and as|
|00001a20| 73 65 6d 62 6c 65 64 20 | 77 69 74 68 20 74 68 65 |sembled |with the|
|00001a30| 20 4d 43 58 31 31 20 6b | 65 72 6e 65 6c 20 63 6f | MCX11 k|ernel co|
|00001a40| 64 65 2e 0d 00 74 00 00 | 25 34 00 00 42 48 3d 02 |de...t..|%4..BH=.|
|00001a50| c1 7d ed ff a1 ac ed ff | 20 22 00 02 69 6e 74 6c |.}......| "..intl|
|00001a60| 76 6c 20 28 61 64 64 72 | 65 73 73 20 4d 43 58 56 |vl (addr|ess MCXV|
|00001a70| 41 52 2b 31 31 29 0d 00 | 00 34 00 00 05 74 00 00 |AR+11)..|.4...t..|
|00001a80| 00 3c 6c 06 41 26 ed ff | 21 55 ed ff 20 22 00 02 |.<l.A&..|!U.. "..|
|00001a90| 54 68 69 73 20 62 79 74 | 65 20 76 61 72 69 61 62 |This byt|e variab|
|00001aa0| 6c 65 20 69 73 20 61 20 | 63 6f 75 6e 74 65 72 20 |le is a |counter |
|00001ab0| 6f 66 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |of the n|umber of|
|00001ac0| 20 69 6e 74 65 72 72 75 | 70 74 73 20 73 74 61 63 | interru|pts stac|
|00001ad0| 6b 65 64 20 62 75 74 20 | 6e 6f 74 20 79 65 74 20 |ked but |not yet |
|00001ae0| 70 72 6f 63 65 73 73 65 | 64 20 00 00 00 74 00 00 |processe|d ...t..|
|00001af0| 05 84 00 00 00 ac 97 07 | 01 ee ec ff e1 1c ed ff |........|........|
|00001b00| 20 22 00 00 63 6f 6d 70 | 6c 65 74 65 6c 79 2e 20 | "..comp|letely. |
|00001b10| 57 68 65 6e 20 61 6e 20 | 69 6e 74 65 72 72 75 70 |When an |interrup|
|00001b20| 74 20 6f 63 63 75 72 73 | 20 69 6e 20 61 20 74 61 |t occurs| in a ta|
|00001b30| 73 6b 2c 20 69 6e 74 6c | 76 6c 20 77 69 6c 6c 20 |sk, intl|vl will |
|00001b40| 61 6c 77 61 79 73 20 63 | 6f 6e 74 61 69 6e 20 61 |always c|ontain a|
|00001b50| 20 76 61 6c 75 65 20 6f | 66 20 7a 65 72 6f 2e 20 | value o|f zero. |
|00001b60| 54 68 65 20 49 53 52 20 | 63 6f 64 65 20 00 00 00 |The ISR |code ...|
|00001b70| 00 84 00 00 05 84 00 00 | 00 08 69 07 c1 b5 ec ff |........|..i.....|
|00001b80| a1 e4 ec ff 20 22 00 00 | 6d 75 73 74 20 69 6e 63 |.... "..|must inc|
|00001b90| 72 65 6d 65 6e 74 20 69 | 74 20 62 79 20 31 20 74 |rement i|t by 1 t|
|00001ba0| 6f 20 69 6e 64 69 63 61 | 74 65 20 74 68 61 74 20 |o indica|te that |
|00001bb0| 61 6e 20 49 53 52 20 69 | 73 20 69 6e 20 70 72 6f |an ISR i|s in pro|
|00001bc0| 63 65 73 73 2e 20 49 66 | 20 61 20 74 61 73 6b 20 |cess. If| a task |
|00001bd0| 63 61 6c 6c 73 20 74 68 | 65 20 4d 43 58 31 31 20 |calls th|e MCX11 |
|00001be0| 6b 65 72 6e 65 6c 2c 20 | 69 6e 74 6c 76 6c 20 69 |kernel, |intlvl i|
|00001bf0| 73 20 00 00 00 84 00 00 | 05 88 00 00 00 54 ec 07 |s ......|.....T..|
|00001c00| 81 7d ec ff 61 ac ec ff | 20 22 00 00 69 6e 63 72 |.}..a...| "..incr|
|00001c10| 65 6d 65 6e 74 65 64 20 | 74 6f 20 61 20 76 61 6c |emented |to a val|
|00001c20| 75 65 20 6f 66 20 31 2e | 20 49 66 20 61 6e 20 69 |ue of 1.| If an i|
|00001c30| 6e 74 65 72 72 75 70 74 | 20 77 65 72 65 20 74 6f |nterrupt| were to|
|00001c40| 20 6f 63 63 75 72 20 77 | 68 69 6c 65 20 63 6f 6e | occur w|hile con|
|00001c50| 74 72 6f 6c 20 69 73 20 | 69 6e 20 74 68 65 20 4d |trol is |in the M|
|00001c60| 43 58 31 31 20 6b 65 72 | 6e 65 6c 2c 20 69 6e 74 |CX11 ker|nel, int|
|00001c70| 6c 76 6c 20 77 6f 75 6c | 64 20 00 00 00 88 00 00 |lvl woul|d ......|
|00001c80| 25 40 00 00 42 14 a1 02 | 41 45 ec ff 21 74 ec ff |%@..B...|AE..!t..|
|00001c90| 20 22 00 00 62 65 20 69 | 6e 63 72 65 6d 65 6e 74 | "..be i|ncrement|
|00001ca0| 65 64 20 74 6f 20 32 20 | 62 79 20 74 68 65 20 49 |ed to 2 |by the I|
|00001cb0| 53 52 2c 20 65 74 63 2e | 0d 00 00 00 00 40 00 00 |SR, etc.|.....@..|
|00001cc0| 05 78 00 00 00 54 f6 06 | c1 ed eb ff a1 1c ec ff |.x...T..|........|
|00001cd0| 20 22 00 02 4d 43 58 31 | 31 20 61 6c 6c 6f 77 73 | "..MCX1|1 allows|
|00001ce0| 20 74 68 65 20 65 78 69 | 73 74 65 6e 63 65 20 6f | the exi|stence o|
|00001cf0| 66 20 69 6e 74 65 72 72 | 75 70 74 69 62 6c 65 20 |f interr|uptible |
|00001d00| 49 53 52 73 3b 20 74 68 | 65 72 65 66 6f 72 65 2c |ISRs; th|erefore,|
|00001d10| 20 69 6e 74 6c 76 6c 20 | 63 61 6e 20 61 73 73 75 | intlvl |can assu|
|00001d20| 6d 65 20 61 6e 79 20 76 | 61 6c 75 65 20 75 70 20 |me any v|alue up |
|00001d30| 74 6f 20 00 00 78 00 00 | 05 84 00 00 00 84 ce 07 |to ..x..|........|
|00001d40| 81 b5 eb ff 61 e4 eb ff | 20 22 00 00 74 68 65 20 |....a...| "..the |
|00001d50| 6e 75 6d 62 65 72 20 6f | 66 20 70 6f 73 73 69 62 |number o|f possib|
|00001d60| 6c 65 20 69 6e 74 65 72 | 72 75 70 74 73 20 69 6e |le inter|rupts in|
|00001d70| 20 74 68 65 20 73 79 73 | 74 65 6d 2e 20 41 73 20 | the sys|tem. As |
|00001d80| 69 6e 74 65 72 72 75 70 | 74 73 20 61 72 65 20 70 |interrup|ts are p|
|00001d90| 72 6f 63 65 73 73 65 64 | 20 62 79 20 74 68 65 20 |rocessed| by the |
|00001da0| 63 6f 6d 6d 6f 6e 20 49 | 53 52 20 65 78 69 74 20 |common I|SR exit |
|00001db0| 6c 6f 67 69 63 2c 20 00 | 00 84 00 00 05 80 00 00 |logic, .|........|
|00001dc0| 00 dc a9 07 41 7d eb ff | 21 ac eb ff 20 22 00 00 |....A}..|!... "..|
|00001dd0| 69 6e 74 6c 76 6c 20 69 | 73 20 64 65 63 72 65 6d |intlvl i|s decrem|
|00001de0| 65 6e 74 65 64 2e 20 41 | 20 72 65 73 75 6d 70 74 |ented. A| resumpt|
|00001df0| 69 6f 6e 20 6f 66 20 70 | 72 6f 63 65 73 73 69 6e |ion of p|rocessin|
|00001e00| 67 20 61 74 20 74 68 65 | 20 74 61 73 6b 20 6c 65 |g at the| task le|
|00001e10| 76 65 6c 20 63 61 6e 20 | 6f 6e 6c 79 20 6f 63 63 |vel can |only occ|
|00001e20| 75 72 20 77 68 65 6e 20 | 74 68 65 20 64 65 63 72 |ur when |the decr|
|00001e30| 65 6d 65 6e 74 65 64 20 | 00 80 00 00 05 88 00 00 |emented |........|
|00001e40| 00 64 f1 07 01 45 eb ff | e1 73 eb ff 20 22 00 00 |.d...E..|.s.. "..|
|00001e50| 76 61 6c 75 65 20 6f 66 | 20 69 6e 74 6c 76 6c 20 |value of| intlvl |
|00001e60| 62 65 63 6f 6d 65 73 20 | 7a 65 72 6f 2e 20 4f 74 |becomes |zero. Ot|
|00001e70| 68 65 72 77 69 73 65 2c | 20 74 68 65 20 6e 6f 6e |herwise,| the non|
|00001e80| 2d 7a 65 72 6f 20 76 61 | 6c 75 65 20 69 6e 64 69 |-zero va|lue indi|
|00001e90| 63 61 74 65 73 20 74 68 | 65 20 65 78 69 73 74 65 |cates th|e existe|
|00001ea0| 6e 63 65 20 6f 66 20 61 | 6e 20 69 6e 74 65 72 72 |nce of a|n interr|
|00001eb0| 75 70 74 20 77 68 69 63 | 68 20 68 61 73 20 00 00 |upt whic|h has ..|
|00001ec0| 00 88 00 00 05 84 00 00 | 00 20 c0 07 c1 0c eb ff |........|. ......|
|00001ed0| a1 3b eb ff 20 22 00 00 | 62 65 65 6e 20 69 6e 63 |.;.. "..|been inc|
|00001ee0| 6f 6d 70 6c 65 74 65 6c | 79 20 73 65 72 76 69 63 |ompletel|y servic|
|00001ef0| 65 64 2e 20 49 6e 20 74 | 68 61 74 20 63 61 73 65 |ed. In t|hat case|
|00001f00| 2c 20 74 68 65 20 63 6f | 6d 6d 6f 6e 20 49 53 52 |, the co|mmon ISR|
|00001f10| 20 65 78 69 74 20 6c 6f | 67 69 63 20 72 65 74 75 | exit lo|gic retu|
|00001f20| 72 6e 73 20 63 6f 6e 74 | 72 6f 6c 20 74 6f 20 74 |rns cont|rol to t|
|00001f30| 68 65 20 69 6e 74 65 72 | 72 75 70 74 65 64 20 49 |he inter|rupted I|
|00001f40| 53 52 20 00 00 84 00 00 | 05 80 00 00 00 cc 68 07 |SR .....|......h.|
|00001f50| 81 d4 ea ff 61 03 eb ff | 20 22 00 00 61 6e 64 20 |....a...| "..and |
|00001f60| 72 65 73 75 6d 65 73 20 | 70 72 6f 63 65 73 73 69 |resumes |processi|
|00001f70| 6e 67 20 61 74 20 74 68 | 61 74 20 70 6f 69 6e 74 |ng at th|at point|
|00001f80| 2e 20 54 68 75 73 2c 20 | 6e 65 73 74 65 64 20 69 |. Thus, |nested i|
|00001f90| 6e 74 65 72 72 75 70 74 | 73 20 61 6e 64 20 72 65 |nterrupt|s and re|
|00001fa0| 2d 65 6e 74 72 61 6e 74 | 20 49 53 52 73 20 61 72 |-entrant| ISRs ar|
|00001fb0| 65 20 68 61 6e 64 6c 65 | 64 20 63 6c 65 61 6e 6c |e handle|d cleanl|
|00001fc0| 79 2c 20 00 00 80 00 00 | 25 40 00 00 42 58 de 02 |y, .....|%@..BX..|
|00001fd0| 41 9c ea ff 21 cb ea ff | 20 22 00 00 71 75 69 63 |A...!...| "..quic|
|00001fe0| 6b 6c 79 2c 20 61 6e 64 | 20 61 75 74 6f 6d 61 74 |kly, and| automat|
|00001ff0| 69 63 61 6c 6c 79 20 62 | 79 20 4d 43 58 31 31 2e |ically b|y MCX11.|
|00002000| 0d 00 00 00 00 40 00 00 | 25 34 00 00 42 68 35 02 |.....@..|%4..Bh5.|
|00002010| c1 44 ea ff a1 73 ea ff | 20 22 00 02 63 75 72 74 |.D...s..| "..curt|
|00002020| 73 6b 20 28 61 64 64 72 | 65 73 73 20 4d 43 58 56 |sk (addr|ess MCXV|
|00002030| 41 52 2b 35 29 0d 00 00 | 00 34 00 00 05 78 00 00 |AR+5)...|.4...x..|
|00002040| 00 74 15 07 41 ed e9 ff | 21 1c ea ff 20 22 00 02 |.t..A...|!... "..|
|00002050| 54 68 69 73 20 62 79 74 | 65 20 76 61 72 69 61 62 |This byt|e variab|
|00002060| 6c 65 20 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |le conta|ins the |
|00002070| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 63 75 |number o|f the cu|
|00002080| 72 72 65 6e 74 20 74 61 | 73 6b 2e 20 49 74 20 69 |rrent ta|sk. It i|
|00002090| 73 20 74 6f 20 62 65 20 | 63 6f 6e 73 69 64 65 72 |s to be |consider|
|000020a0| 65 64 20 61 20 52 45 41 | 44 2d 4f 4e 4c 59 20 00 |ed a REA|D-ONLY .|
|000020b0| 00 78 00 00 05 84 00 00 | 00 6c ce 07 01 b5 e9 ff |.x......|.l......|
|000020c0| e1 e3 e9 ff 20 22 00 00 | 76 61 72 69 61 62 6c 65 |.... "..|variable|
|000020d0| 2e 20 54 68 65 20 75 73 | 65 72 20 73 68 6f 75 6c |. The us|er shoul|
|000020e0| 64 20 4e 45 56 45 52 20 | 77 72 69 74 65 20 74 6f |d NEVER |write to|
|000020f0| 20 74 68 69 73 20 76 61 | 72 69 61 62 6c 65 2e 20 | this va|riable. |
|00002100| 49 74 20 69 73 20 6e 65 | 65 64 65 64 20 64 75 72 |It is ne|eded dur|
|00002110| 69 6e 67 20 49 53 52 20 | 70 72 6f 63 65 73 73 69 |ing ISR |processi|
|00002120| 6e 67 20 74 6f 20 64 65 | 74 65 72 6d 69 6e 65 20 |ng to de|termine |
|00002130| 69 66 20 00 00 84 00 00 | 25 40 00 00 42 2c ef 02 |if .....|%@..B,..|
|00002140| c1 7c e9 ff a1 ab e9 ff | 20 22 00 00 74 68 65 20 |.|......| "..the |
|00002150| 4d 43 58 31 31 20 44 69 | 73 70 61 74 63 68 65 72 |MCX11 Di|spatcher|
|00002160| 20 77 61 73 20 69 6e 74 | 65 72 72 75 70 74 65 64 | was int|errupted|
|00002170| 2e 0d 00 00 00 40 00 00 | 25 34 00 00 42 fc 37 02 |.....@..|%4..B.7.|
|00002180| 41 25 e9 ff 21 54 e9 ff | 20 22 00 02 63 75 72 74 |A%..!T..| "..curt|
|00002190| 63 62 20 28 61 64 64 72 | 65 73 73 20 4d 43 58 56 |cb (addr|ess MCXV|
|000021a0| 41 52 2b 36 29 0d 00 00 | 00 34 00 00 05 78 00 00 |AR+6)...|.4...x..|
|000021b0| 00 e0 dc 06 c1 cd e8 ff | a1 fc e8 ff 20 22 00 02 |........|.... "..|
|000021c0| 54 68 69 73 20 32 2d 62 | 79 74 65 20 76 61 72 69 |This 2-b|yte vari|
|000021d0| 61 62 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |able con|tains th|
|000021e0| 65 20 61 64 64 72 65 73 | 73 20 6f 66 20 74 68 65 |e addres|s of the|
|000021f0| 20 63 75 72 72 65 6e 74 | 20 74 61 73 6b 27 73 20 | current| task's |
|00002200| 54 61 73 6b 20 43 6f 6e | 74 72 6f 6c 20 42 6c 6f |Task Con|trol Blo|
|00002210| 63 6b 20 28 54 43 42 29 | 2e 20 54 68 65 20 00 00 |ck (TCB)|. The ..|
|00002220| 00 78 00 00 05 84 00 00 | 00 1c dc 07 81 95 e8 ff |.x......|........|
|00002230| 61 c4 e8 ff 20 22 00 00 | 54 43 42 20 63 6f 6e 74 |a... "..|TCB cont|
|00002240| 61 69 6e 73 20 61 6e 20 | 65 6e 74 72 79 20 66 6f |ains an |entry fo|
|00002250| 72 20 74 68 65 20 74 61 | 73 6b 27 73 20 73 74 61 |r the ta|sk's sta|
|00002260| 63 6b 20 70 6f 69 6e 74 | 65 72 2e 20 4d 43 58 31 |ck point|er. MCX1|
|00002270| 31 20 69 6e 74 65 72 72 | 75 70 74 20 70 72 6f 63 |1 interr|upt proc|
|00002280| 65 73 73 69 6e 67 20 72 | 65 71 75 69 72 65 73 20 |essing r|equires |
|00002290| 74 68 61 74 20 74 68 65 | 20 49 53 52 20 77 68 69 |that the| ISR whi|
|000022a0| 63 68 20 00 00 84 00 00 | 05 84 00 00 00 38 93 07 |ch .....|.....8..|
|000022b0| 41 5d e8 ff 21 8c e8 ff | 20 22 00 00 69 6e 63 72 |A]..!...| "..incr|
|000022c0| 65 6d 65 6e 74 73 20 69 | 6e 74 6c 76 6c 20 74 6f |ements i|ntlvl to|
|000022d0| 20 61 20 76 61 6c 75 65 | 20 6f 66 20 31 20 6d 75 | a value| of 1 mu|
|000022e0| 73 74 20 61 6c 73 6f 20 | 73 61 76 65 20 74 68 65 |st also |save the|
|000022f0| 20 63 75 72 72 65 6e 74 | 20 74 61 73 6b 27 73 20 | current| task's |
|00002300| 73 74 61 63 6b 20 70 6f | 69 6e 74 65 72 20 69 6e |stack po|inter in|
|00002310| 20 69 74 73 20 54 43 42 | 2e 20 54 68 65 20 76 61 | its TCB|. The va|
|00002320| 72 69 61 62 6c 65 2c 20 | 00 84 00 00 a5 4c 00 00 |riable, |.....L..|
|00002330| 42 a8 d4 01 01 25 e8 ff | e1 53 e8 ff 20 22 00 00 |B....%..|.S.. "..|
|00002340| 63 75 72 74 63 62 2c 20 | 69 73 20 52 45 41 44 2d |curtcb, |is READ-|
|00002350| 4f 4e 4c 59 2e 08 08 00 | 0b 36 01 00 00 00 00 00 |ONLY....|.6......|
|00002360| 0d 07 f4 fd 0d 37 01 00 | 0d 37 01 00 00 00 00 00 |.....7..|.7......|
|00002370| 0e 00 00 00 00 4c 00 00 | 01 10 00 00 00 00 00 00 |.....L..|........|
|00002380| 00 00 00 00 00 10 00 00 | 02 18 00 00 20 03 00 00 |........|.... ...|
|00002390| 00 00 00 00 0d 37 01 00 | 00 00 00 00 00 18 00 00 |.....7..|........|
|000023a0| a5 50 00 00 42 f0 67 02 | 50 02 e5 ff 30 31 e5 ff |.P..B.g.|P...01..|
|000023b0| c0 21 00 02 37 2e 32 2e | 32 20 49 6e 74 65 72 72 |.!..7.2.|2 Interr|
|000023c0| 75 70 74 20 50 72 6f 63 | 65 73 73 69 6e 67 20 43 |upt Proc|essing C|
|000023d0| 6f 64 65 08 0d 37 01 00 | 00 00 00 00 0d 07 6c 20 |ode..7..|......l |
|000023e0| 0b 38 01 00 0b 38 01 00 | 00 00 00 00 00 50 00 00 |.8...8..|.....P..|
|000023f0| 05 78 00 00 00 e0 09 07 | 70 a1 e4 ff 50 d0 e4 ff |.x......|p...P...|
|00002400| 20 22 00 02 41 6c 6c 20 | 49 53 52 73 20 77 68 69 | "..All |ISRs whi|
|00002410| 63 68 20 68 61 76 65 20 | 74 68 65 20 63 61 70 61 |ch have |the capa|
|00002420| 62 69 6c 69 74 79 20 6f | 66 20 63 61 75 73 69 6e |bility o|f causin|
|00002430| 67 20 61 20 63 6f 6e 74 | 65 78 74 20 73 77 69 74 |g a cont|ext swit|
|00002440| 63 68 20 73 68 6f 75 6c | 64 20 69 6e 63 6f 72 70 |ch shoul|d incorp|
|00002450| 6f 72 61 74 65 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |orate th|e follow|
|00002460| 69 6e 67 20 00 78 00 00 | 05 88 00 00 00 88 ca 07 |ing .x..|........|
|00002470| 30 69 e4 ff 10 98 e4 ff | 20 22 00 00 72 6f 75 74 |0i......| "..rout|
|00002480| 69 6e 65 20 61 73 20 69 | 6e 2d 6c 69 6e 65 20 63 |ine as i|n-line c|
|00002490| 6f 64 65 20 69 6e 20 74 | 68 65 20 49 53 52 2e 20 |ode in t|he ISR. |
|000024a0| 49 66 20 74 68 65 20 49 | 53 52 20 69 73 20 74 6f |If the I|SR is to|
|000024b0| 20 62 65 20 61 6c 6c 6f | 77 65 64 20 74 6f 20 65 | be allo|wed to e|
|000024c0| 6e 61 62 6c 65 20 69 6e | 74 65 72 72 75 70 74 73 |nable in|terrupts|
|000024d0| 2c 20 74 68 69 73 20 63 | 6f 64 65 20 73 68 6f 75 |, this c|ode shou|
|000024e0| 6c 64 20 70 72 65 63 65 | 64 65 20 00 00 88 00 00 |ld prece|de .....|
|000024f0| 05 88 00 00 00 f4 ee 07 | f0 30 e4 ff d0 5f e4 ff |........|.0..._..|
|00002500| 20 22 00 00 74 68 65 20 | 43 4c 49 20 69 6e 73 74 | "..the |CLI inst|
|00002510| 72 75 63 74 69 6f 6e 2e | 20 41 73 20 61 20 72 75 |ruction.| As a ru|
|00002520| 6c 65 20 69 74 20 73 68 | 6f 75 6c 64 20 6f 63 63 |le it sh|ould occ|
|00002530| 75 72 20 65 61 72 6c 79 | 20 69 6e 20 74 68 65 20 |ur early| in the |
|00002540| 49 53 52 20 62 75 74 20 | 74 68 65 72 65 20 61 72 |ISR but |there ar|
|00002550| 65 20 65 78 63 65 70 74 | 69 6f 6e 73 2e 20 28 52 |e except|ions. (R|
|00002560| 65 66 65 72 20 74 6f 20 | 74 68 65 20 4d 43 58 31 |efer to |the MCX1|
|00002570| 31 20 00 00 00 88 00 00 | 05 84 00 00 02 d0 91 07 |1 ......|........|
|00002580| b0 f8 e3 ff 90 27 e4 ff | 20 22 00 00 63 6c 6f 63 |.....'..| "..cloc|
|00002590| 6b 20 64 72 69 76 65 72 | 27 73 20 49 53 52 2c 20 |k driver|'s ISR, |
|000025a0| 77 68 6f 73 65 20 65 6e | 74 72 79 20 61 64 64 72 |whose en|try addr|
|000025b0| 65 73 73 20 68 61 73 20 | 74 68 65 20 73 79 6d 62 |ess has |the symb|
|000025c0| 6f 6c 20 72 74 69 69 73 | 72 2c 20 66 6f 72 20 61 |ol rtiis|r, for a|
|000025d0| 20 67 6f 6f 64 20 65 78 | 61 6d 70 6c 65 20 6f 66 | good ex|ample of|
|000025e0| 20 61 6e 20 65 78 63 65 | 70 74 69 6f 6e 20 74 6f | an exce|ption to|
|000025f0| 20 74 68 65 20 00 00 00 | 00 84 00 00 25 20 00 00 | the ...|....% ..|
|00002600| 42 38 64 00 70 c0 e3 ff | 50 ef e3 ff 20 22 00 00 |B8d.p...|P... "..|
|00002610| 72 75 6c 65 2e 29 0d 00 | 00 20 00 00 05 78 00 00 |rule.)..|. ...x..|
|00002620| 00 30 cf 06 f0 68 e3 ff | d0 97 e3 ff 20 22 00 02 |.0...h..|.... "..|
|00002630| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 20 6c 61 |Note tha|t the la|
|00002640| 62 65 6c 2c 20 6e 6f 74 | 6c 76 6c 30 2c 20 75 73 |bel, not|lvl0, us|
|00002650| 65 64 20 69 6e 20 74 68 | 65 20 63 6f 64 65 20 73 |ed in th|e code s|
|00002660| 65 67 6d 65 6e 74 20 62 | 65 6c 6f 77 20 77 69 6c |egment b|elow wil|
|00002670| 6c 20 6e 65 65 64 20 74 | 6f 20 62 65 20 63 68 61 |l need t|o be cha|
|00002680| 6e 67 65 64 20 66 6f 72 | 20 65 61 63 68 20 00 00 |nged for| each ..|
|00002690| 00 78 00 00 05 7c 00 00 | 00 80 d2 07 b0 30 e3 ff |.x...|..|.....0..|
|000026a0| 90 5f e3 ff 20 22 00 00 | 49 53 52 2e 20 54 68 65 |._.. "..|ISR. The|
|000026b0| 20 73 79 6d 62 6f 6c 73 | 20 41 43 54 53 50 20 61 | symbols| ACTSP a|
|000026c0| 6e 64 20 53 59 53 54 41 | 43 4b 20 61 72 65 20 6e |nd SYSTA|CK are n|
|000026d0| 6f 74 20 76 61 72 69 61 | 62 6c 65 73 20 61 6e 64 |ot varia|bles and|
|000026e0| 20 73 68 6f 75 6c 64 20 | 6e 6f 74 20 62 65 20 63 | should |not be c|
|000026f0| 68 61 6e 67 65 64 2e 20 | 41 43 54 53 50 20 69 73 |hanged. |ACTSP is|
|00002700| 20 65 71 75 61 74 65 64 | 20 00 00 00 00 7c 00 00 | equated| ....|..|
|00002710| 05 84 00 00 00 1c 79 07 | 70 f8 e2 ff 50 27 e3 ff |......y.|p...P'..|
|00002720| 20 22 00 00 74 6f 20 74 | 68 65 20 76 61 6c 75 65 | "..to t|he value|
|00002730| 20 6f 66 20 31 20 61 6e | 64 20 72 65 70 72 65 73 | of 1 an|d repres|
|00002740| 65 6e 74 73 20 74 68 65 | 20 64 69 73 70 6c 61 63 |ents the| displac|
|00002750| 65 6d 65 6e 74 20 69 6e | 74 6f 20 74 68 65 20 54 |ement in|to the T|
|00002760| 43 42 20 77 68 65 72 65 | 20 74 68 65 20 74 61 73 |CB where| the tas|
|00002770| 6b 27 73 20 73 74 61 63 | 6b 20 70 6f 69 6e 74 65 |k's stac|k pointe|
|00002780| 72 20 69 73 20 73 74 6f | 72 65 64 2e 20 00 00 00 |r is sto|red. ...|
|00002790| 00 84 00 00 05 80 00 00 | 02 a0 ca 07 30 c0 e2 ff |........|....0...|
|000027a0| 10 ef e2 ff 20 22 00 00 | 53 59 53 54 41 43 4b 20 |.... "..|SYSTACK |
|000027b0| 69 73 20 74 68 65 20 6c | 6f 63 61 74 69 6f 6e 20 |is the l|ocation |
|000027c0| 6f 66 20 74 68 65 20 62 | 61 73 65 20 6f 66 20 74 |of the b|ase of t|
|000027d0| 68 65 20 53 79 73 74 65 | 6d 20 53 74 61 63 6b 20 |he Syste|m Stack |
|000027e0| 61 72 65 61 20 61 6e 64 | 20 69 73 20 64 65 66 69 |area and| is defi|
|000027f0| 6e 65 64 20 69 6e 20 74 | 68 65 20 53 79 73 74 65 |ned in t|he Syste|
|00002800| 6d 20 43 6f 6e 66 69 67 | 75 72 61 74 69 6f 6e 20 |m Config|uration |
|00002810| 00 80 00 00 a5 50 00 00 | 42 78 4c 02 f0 87 e2 ff |.....P..|BxL.....|
|00002820| d0 b6 e2 ff 20 22 00 00 | 73 6f 75 72 63 65 20 63 |.... "..|source c|
|00002830| 6f 64 65 20 66 69 6c 65 | 2c 20 53 59 53 54 45 4d |ode file|, SYSTEM|
|00002840| 2e 41 53 2e 08 08 65 72 | 0b 38 01 00 00 00 00 00 |.AS...er|.8......|
|00002850| 0d 07 27 73 11 39 01 00 | 11 39 01 00 00 00 00 00 |..'s.9..|.9......|
|00002860| 00 50 00 00 25 70 00 00 | 46 22 9c 05 50 46 e2 ff |.P..%p..|F"..PF..|
|00002870| 30 75 e2 ff f0 24 00 02 | 12 12 73 74 48 71 01 00 |0u...$..|..stHq..|
|00002880| 00 00 00 00 74 73 74 12 | a0 d7 00 00 00 00 00 00 |....tst.|........|
|00002890| 20 69 6e 74 6c 76 6c 20 | 12 54 65 73 60 7e 00 00 | intlvl |.Tes`~..|
|000028a0| 00 00 00 00 12 65 73 74 | 42 03 00 00 00 00 00 00 |.....est|B.......|
|000028b0| 54 65 73 74 20 66 6f 72 | 20 74 61 73 6b 20 6c 65 |Test for| task le|
|000028c0| 76 65 6c 20 69 6e 74 65 | 72 72 75 70 74 0d 00 00 |vel inte|rrupt...|
|000028d0| 00 70 00 00 25 74 00 00 | 46 f2 89 05 10 0e e2 ff |.p..%t..|F.......|
|000028e0| f0 3c e2 ff f0 24 00 02 | 12 62 6e 65 48 71 01 00 |.<...$..|.bneHq..|
|000028f0| 00 00 00 00 62 6e 65 20 | 12 12 74 6c e8 ad 00 00 |....bne |..tl....|
|00002900| 00 00 00 00 6e 6f 74 6c | 76 6c 30 20 12 42 72 61 |....notl|vl0 .Bra|
|00002910| b0 61 00 00 00 00 00 00 | 12 72 61 6e 42 03 00 00 |.a......|.ranB...|
|00002920| 00 00 00 00 42 72 61 6e | 63 68 20 69 66 20 6e 6f |....Bran|ch if no|
|00002930| 74 20 74 61 73 6b 20 6c | 65 76 65 6c 20 69 6e 74 |t task l|evel int|
|00002940| 0d 00 00 00 00 74 00 00 | 25 70 00 00 46 da c5 05 |.....t..|%p..F...|
|00002950| d0 d5 e1 ff b0 04 e2 ff | f0 24 00 02 12 74 73 74 |........|.$...tst|
|00002960| 48 71 01 00 00 00 00 00 | 74 73 74 20 12 12 72 74 |Hq......|tst ..rt|
|00002970| 98 ca 00 00 00 00 00 00 | 63 75 72 74 73 6b 20 12 |........|curtsk .|
|00002980| 24 6c 00 00 00 00 00 00 | 12 65 65 20 42 03 00 00 |$l......|.ee B...|
|00002990| 00 00 00 00 53 65 65 20 | 69 66 20 44 69 73 70 61 |....See |if Dispa|
|000029a0| 74 63 68 65 72 20 69 6e | 74 65 72 72 75 70 74 65 |tcher in|terrupte|
|000029b0| 64 0d 00 00 00 70 00 00 | 25 60 00 00 46 5a 6b 04 |d....p..|%`..FZk.|
|000029c0| 90 9d e1 ff 70 cc e1 ff | f0 24 00 02 12 62 65 71 |....p...|.$...beq|
|000029d0| 48 71 01 00 00 00 00 00 | 62 65 71 20 6e 12 12 76 |Hq......|beq n..v|
|000029e0| d8 93 00 00 00 00 00 00 | 6f 74 6c 76 6c 30 20 12 |........|otlvl0 .|
|000029f0| c0 7b 00 00 00 00 00 00 | 12 72 61 6e 42 03 00 00 |.{......|.ranB...|
|00002a00| 00 00 00 00 42 72 61 6e | 63 68 20 69 66 20 73 6f |....Bran|ch if so|
|00002a10| 0d 00 00 00 00 60 00 00 | 25 68 00 00 46 5a 61 05 |.....`..|%h..FZa.|
|00002a20| 50 65 e1 ff 30 94 e1 ff | f0 24 00 02 12 12 64 78 |Pe..0...|.$....dx|
|00002a30| 48 71 01 00 00 00 00 00 | 6c 64 78 20 12 12 72 74 |Hq......|ldx ..rt|
|00002a40| 30 c0 00 00 00 00 00 00 | 63 75 72 74 63 62 20 12 |0.......|curtcb .|
|00002a50| 84 69 00 00 00 00 00 00 | 12 65 74 20 42 03 00 00 |.i......|.et B...|
|00002a60| 00 00 00 00 47 65 74 20 | 74 61 73 6b 27 73 20 54 |....Get |task's T|
|00002a70| 43 42 20 61 64 64 72 65 | 73 73 0d 00 00 68 00 00 |CB addre|ss...h..|
|00002a80| 25 70 00 00 46 d6 78 05 | 10 2d e1 ff f0 5b e1 ff |%p..F.x.|.-...[..|
|00002a90| f0 24 00 02 12 73 74 73 | 48 71 01 00 00 00 00 00 |.$...sts|Hq......|
|00002aa0| 73 74 73 20 12 12 54 53 | 30 c0 00 00 00 00 00 00 |sts ..TS|0.......|
|00002ab0| 41 43 54 53 50 2c 78 20 | 12 53 61 76 68 28 00 00 |ACTSP,x |.Savh(..|
|00002ac0| 00 00 00 00 12 61 76 65 | 42 03 00 00 00 00 00 00 |.....ave|B.......|
|00002ad0| 53 61 76 65 20 74 61 73 | 6b 27 73 20 73 74 61 63 |Save tas|k's stac|
|00002ae0| 6b 20 70 6f 69 6e 74 65 | 72 0d 00 00 00 70 00 00 |k pointe|r....p..|
|00002af0| 25 5c 00 00 47 74 74 05 | d0 f4 e0 ff b0 23 e1 ff |%\..Gtt.|.....#..|
|00002b00| f0 24 00 02 12 6c 64 73 | 48 71 01 00 00 00 00 00 |.$...lds|Hq......|
|00002b10| 6c 64 73 12 38 cd 00 00 | 00 00 00 00 23 53 59 53 |lds.8...|....#SYS|
|00002b20| 54 41 43 4b 12 43 68 61 | 50 01 00 00 00 00 00 00 |TACK.Cha|P.......|
|00002b30| 43 68 61 6e 67 65 20 74 | 6f 20 53 79 73 74 65 6d |Change t|o System|
|00002b40| 20 53 74 61 63 6b 0d 00 | 00 5c 00 00 a5 84 00 00 | Stack..|.\......|
|00002b50| 47 90 b5 05 90 bc e0 ff | 70 eb e0 ff f0 24 00 02 |G.......|p....$..|
|00002b60| 6e 6f 74 6c 76 6c 30 20 | 12 69 6e 63 c8 dc 00 00 |notlvl0 |.inc....|
|00002b70| 00 00 00 00 69 6e 63 20 | 12 12 6e 74 30 c0 00 00 |....inc |..nt0...|
|00002b80| 00 00 00 00 69 6e 74 6c | 76 6c 20 12 68 8b 00 00 |....intl|vl .h...|
|00002b90| 00 00 00 00 49 6e 63 72 | 65 6d 65 6e 74 20 74 68 |....Incr|ement th|
|00002ba0| 65 20 69 6e 74 65 72 72 | 75 70 74 20 6c 65 76 65 |e interr|upt leve|
|00002bb0| 6c 08 08 00 11 39 01 00 | 00 00 00 00 0d 07 01 00 |l....9..|........|
|00002bc0| 0b 3a 01 00 0b 3a 01 00 | 00 00 00 00 00 84 00 00 |.:...:..|........|
|00002bd0| 25 5c 00 00 42 5c 96 04 | b0 5b e0 ff 90 8a e0 ff |%\..B\..|.[......|
|00002be0| 20 22 00 02 41 66 74 65 | 72 20 74 68 69 73 20 70 | "..Afte|r this p|
|00002bf0| 6f 69 6e 74 2c 20 74 68 | 65 20 43 4c 49 20 69 6e |oint, th|e CLI in|
|00002c00| 73 74 72 75 63 74 69 6f | 6e 20 6d 61 79 20 62 65 |structio|n may be|
|00002c10| 20 69 6e 73 65 72 74 65 | 64 20 69 66 20 64 65 73 | inserte|d if des|
|00002c20| 69 72 65 64 2e 0d 00 00 | 00 5c 00 00 05 7c 00 00 |ired....|.\...|..|
|00002c30| 02 d4 09 07 30 04 e0 ff | 10 33 e0 ff 20 22 00 02 |....0...|.3.. "..|
|00002c40| 54 68 65 20 69 6e 74 65 | 72 72 75 70 74 20 73 65 |The inte|rrupt se|
|00002c50| 72 76 69 63 65 20 63 6f | 64 65 20 66 6f 6c 6c 6f |rvice co|de follo|
|00002c60| 77 73 2e 20 41 6e 20 69 | 6d 70 6f 72 74 61 6e 74 |ws. An i|mportant|
|00002c70| 20 66 61 63 74 6f 72 20 | 69 6e 20 69 6e 74 65 72 | factor |in inter|
|00002c80| 72 75 70 74 20 70 72 6f | 63 65 73 73 69 6e 67 20 |rupt pro|cessing |
|00002c90| 74 68 72 6f 75 67 68 70 | 75 74 20 69 73 20 74 68 |throughp|ut is th|
|00002ca0| 65 20 00 00 00 7c 00 00 | 05 88 00 00 02 f0 e9 07 |e ...|..|........|
|00002cb0| f0 cb df ff d0 fa df ff | 20 22 00 00 6c 65 6e 67 |........| "..leng|
|00002cc0| 74 68 20 6f 66 20 74 69 | 6d 65 20 69 6e 74 65 72 |th of ti|me inter|
|00002cd0| 72 75 70 74 73 20 61 72 | 65 20 64 69 73 61 62 6c |rupts ar|e disabl|
|00002ce0| 65 64 20 64 75 72 69 6e | 67 20 74 68 65 20 49 53 |ed durin|g the IS|
|00002cf0| 52 2e 20 49 6e 20 61 6c | 6c 20 49 53 52 73 2c 20 |R. In al|l ISRs, |
|00002d00| 69 6e 74 65 72 72 75 70 | 74 73 20 6d 75 73 74 20 |interrup|ts must |
|00002d10| 62 65 20 64 69 73 61 62 | 6c 65 64 20 6c 6f 6e 67 |be disab|led long|
|00002d20| 20 65 6e 6f 75 67 68 20 | 74 6f 20 00 00 88 00 00 | enough |to .....|
|00002d30| 05 84 00 00 02 94 b5 07 | b0 93 df ff 90 c2 df ff |........|........|
|00002d40| 20 22 00 00 70 65 72 66 | 6f 72 6d 20 74 68 65 20 | "..perf|orm the |
|00002d50| 63 6f 64 65 20 73 65 67 | 6d 65 6e 74 20 61 62 6f |code seg|ment abo|
|00002d60| 76 65 20 61 6e 64 20 6f | 6e 6c 79 20 74 68 65 6e |ve and o|nly then|
|00002d70| 20 73 68 6f 75 6c 64 20 | 69 6e 74 65 72 72 75 70 | should |interrup|
|00002d80| 74 73 20 62 65 20 72 65 | 2d 65 6e 61 62 6c 65 64 |ts be re|-enabled|
|00002d90| 2e 20 49 64 65 61 6c 6c | 79 2c 20 69 6e 74 65 72 |. Ideall|y, inter|
|00002da0| 72 75 70 74 20 72 6f 75 | 74 69 6e 65 73 20 00 00 |rupt rou|tines ..|
|00002db0| 00 84 00 00 25 70 00 00 | 42 2c 2b 06 70 5b df ff |....%p..|B,+.p[..|
|00002dc0| 50 8a df ff 20 22 00 00 | 73 68 6f 75 6c 64 20 62 |P... "..|should b|
|00002dd0| 65 20 70 65 72 66 6f 72 | 6d 65 64 20 77 69 74 68 |e perfor|med with|
|00002de0| 20 69 6e 74 65 72 72 75 | 70 74 73 20 65 6e 61 62 | interru|pts enab|
|00002df0| 6c 65 64 20 74 6f 20 61 | 6c 6c 6f 77 20 6f 74 68 |led to a|llow oth|
|00002e00| 65 72 20 69 6e 74 65 72 | 72 75 70 74 73 20 74 6f |er inter|rupts to|
|00002e10| 20 62 65 20 73 65 72 76 | 69 63 65 64 2e 0d 00 00 | be serv|iced....|
|00002e20| 00 70 00 00 05 74 00 00 | 02 44 fa 06 f0 03 df ff |.p...t..|.D......|
|00002e30| d0 32 df ff 20 22 00 02 | 54 68 65 20 65 78 69 74 |.2.. "..|The exit|
|00002e40| 20 66 72 6f 6d 20 74 68 | 65 20 49 53 52 20 72 6f | from th|e ISR ro|
|00002e50| 75 74 69 6e 65 20 69 73 | 20 76 69 61 20 61 20 62 |utine is| via a b|
|00002e60| 72 61 6e 63 68 20 74 6f | 20 74 68 65 20 4d 43 58 |ranch to| the MCX|
|00002e70| 31 31 20 63 6f 6d 6d 6f | 6e 20 49 6e 74 65 72 72 |11 commo|n Interr|
|00002e80| 75 70 74 20 53 65 72 76 | 69 63 65 20 52 6f 75 74 |upt Serv|ice Rout|
|00002e90| 69 6e 65 20 00 74 00 00 | 05 88 00 00 02 e0 cf 07 |ine .t..|........|
|00002ea0| b0 cb de ff 90 fa de ff | 20 22 00 00 45 78 69 74 |........| "..Exit|
|00002eb0| 20 72 6f 75 74 69 6e 65 | 20 6c 6f 63 61 74 65 64 | routine| located|
|00002ec0| 20 61 74 20 74 68 65 20 | 61 64 64 72 65 73 73 20 | at the |address |
|00002ed0| 68 61 76 69 6e 67 20 74 | 68 65 20 73 79 6d 62 6f |having t|he symbo|
|00002ee0| 6c 2c 20 69 73 72 72 74 | 6e 2e 20 54 68 69 73 20 |l, isrrt|n. This |
|00002ef0| 72 6f 75 74 69 6e 65 20 | 61 6c 6c 6f 77 73 20 66 |routine |allows f|
|00002f00| 6f 72 20 6f 70 74 69 6f | 6e 61 6c 6c 79 20 73 69 |or optio|nally si|
|00002f10| 67 6e 61 6c 6c 69 6e 67 | 20 61 20 00 00 88 00 00 |gnalling| a .....|
|00002f20| 05 84 00 00 02 1c cd 07 | 70 93 de ff 50 c2 de ff |........|p...P...|
|00002f30| 20 22 00 00 73 65 6d 61 | 70 68 6f 72 65 20 64 75 | "..sema|phore du|
|00002f40| 72 69 6e 67 20 74 68 65 | 20 65 78 69 74 20 70 72 |ring the| exit pr|
|00002f50| 6f 63 65 73 73 2e 20 54 | 68 65 20 49 53 52 20 6d |ocess. T|he ISR m|
|00002f60| 61 79 20 77 69 73 68 20 | 74 6f 20 73 69 67 6e 61 |ay wish |to signa|
|00002f70| 6c 20 61 20 73 65 6d 61 | 70 68 6f 72 65 20 74 68 |l a sema|phore th|
|00002f80| 61 74 20 74 68 65 20 65 | 76 65 6e 74 20 61 73 73 |at the e|vent ass|
|00002f90| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 00 00 00 |ociated |with ...|
|00002fa0| 00 84 00 00 05 84 00 00 | 02 b0 c6 07 30 5b de ff |........|....0[..|
|00002fb0| 10 8a de ff 20 22 00 00 | 74 68 65 20 69 6e 74 65 |.... "..|the inte|
|00002fc0| 72 72 75 70 74 20 68 61 | 73 20 6f 63 63 75 72 72 |rrupt ha|s occurr|
|00002fd0| 65 64 2e 20 54 6f 20 64 | 6f 20 73 6f 2c 20 74 68 |ed. To d|o so, th|
|00002fe0| 65 20 49 53 52 20 73 69 | 6d 70 6c 79 20 70 75 74 |e ISR si|mply put|
|00002ff0| 73 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |s the nu|mber of |
|00003000| 74 68 65 20 73 65 6d 61 | 70 68 6f 72 65 20 74 6f |the sema|phore to|
|00003010| 20 62 65 20 73 69 67 6e | 61 6c 6c 65 64 20 69 6e | be sign|alled in|
|00003020| 74 6f 20 00 00 84 00 00 | 05 88 00 00 02 ec ea 07 |to .....|........|
|00003030| f0 22 de ff d0 51 de ff | 20 22 00 00 74 68 65 20 |."...Q..| "..the |
|00003040| 42 2d 41 63 63 75 6d 75 | 6c 61 74 6f 72 20 61 6e |B-Accumu|lator an|
|00003050| 64 20 74 68 65 20 65 78 | 65 63 75 74 65 73 20 61 |d the ex|ecutes a|
|00003060| 20 62 72 61 6e 63 68 20 | 74 6f 20 69 73 72 72 74 | branch |to isrrt|
|00003070| 6e 2e 20 46 72 6f 6d 20 | 74 68 65 72 65 20 6f 6e |n. From |there on|
|00003080| 2c 20 74 68 65 20 66 75 | 72 74 68 65 72 20 70 72 |, the fu|rther pr|
|00003090| 6f 63 65 73 73 69 6e 67 | 20 6f 66 20 74 68 65 20 |ocessing| of the |
|000030a0| 69 6e 74 65 72 72 75 70 | 74 20 00 00 00 88 00 00 |interrup|t ......|
|000030b0| 05 7c 00 00 02 e4 ad 07 | b0 ea dd ff 90 19 de ff |.|......|........|
|000030c0| 20 22 00 00 69 73 20 70 | 65 72 66 6f 72 6d 65 64 | "..is p|erformed|
|000030d0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 62 | automat|ically b|
|000030e0| 79 20 4d 43 58 31 31 2e | 20 41 73 20 61 6e 20 65 |y MCX11.| As an e|
|000030f0| 78 61 6d 70 6c 65 2c 20 | 61 73 73 75 6d 65 20 74 |xample, |assume t|
|00003100| 68 65 20 49 53 52 20 77 | 61 6e 74 73 20 74 6f 20 |he ISR w|ants to |
|00003110| 73 69 67 6e 61 6c 20 61 | 20 73 65 6d 61 70 68 6f |signal a| semapho|
|00003120| 72 65 20 61 6e 64 20 00 | 00 7c 00 00 a5 94 00 00 |re and .|.|......|
|00003130| 43 a4 81 07 70 b2 dd ff | 50 e1 dd ff 20 22 00 00 |C...p...|P... "..|
|00003140| 74 68 61 74 20 74 68 65 | 20 6c 61 62 65 6c 20 75 |that the| label u|
|00003150| 73 65 64 20 66 6f 72 20 | 74 68 65 20 73 65 6d 61 |sed for |the sema|
|00003160| 70 68 6f 72 65 20 69 73 | 20 45 56 4e 54 53 45 4d |phore is| EVNTSEM|
|00003170| 41 2e 20 54 68 65 6e 20 | 74 68 65 20 63 6f 6e 63 |A. Then |the conc|
|00003180| 6c 75 64 69 6e 67 20 63 | 6f 64 65 20 73 65 67 6d |luding c|ode segm|
|00003190| 65 6e 74 20 69 6e 20 74 | 68 65 20 49 53 52 20 69 |ent in t|he ISR i|
|000031a0| 73 0d 08 08 0b 3a 01 00 | 00 00 00 00 07 67 20 63 |s....:..|.....g c|
|000031b0| 11 3b 01 00 11 3b 01 00 | 00 00 00 00 00 94 00 00 |.;...;..|........|
|000031c0| 25 64 00 00 47 52 ea 05 | 30 7a dd ff 10 a9 dd ff |%d..GR..|0z......|
|000031d0| f0 24 00 02 6c 64 61 62 | 20 12 12 05 a8 0b 01 00 |.$..ldab| .......|
|000031e0| 00 00 00 00 23 45 56 4e | 54 53 45 4d 41 12 12 12 |....#EVN|TSEMA...|
|000031f0| 64 e3 00 00 00 00 00 00 | 12 12 61 64 42 03 00 00 |d.......|..adB...|
|00003200| 00 00 00 00 4c 6f 61 64 | 20 41 43 43 42 20 77 69 |....Load| ACCB wi|
|00003210| 74 68 20 73 65 6d 61 70 | 68 6f 72 65 20 23 0d 00 |th semap|hore #..|
|00003220| 00 64 00 00 a5 70 00 00 | 46 bc e7 04 f0 41 dd ff |.d...p..|F....A..|
|00003230| d0 70 dd ff f0 24 00 02 | 6a 6d 70 20 12 24 00 02 |.p...$..|jmp .$..|
|00003240| bc 18 01 00 00 00 00 00 | 69 73 72 72 74 6e 20 12 |........|isrrtn .|
|00003250| f0 93 00 00 00 00 00 00 | 12 12 00 00 30 f6 00 00 |........|....0...|
|00003260| 00 00 00 00 4a 75 6d 70 | 20 74 6f 20 65 78 69 74 |....Jump| to exit|
|00003270| 20 6c 6f 67 69 63 2e 08 | 11 3b 01 00 00 00 00 00 | logic..|.;......|
|00003280| 0d 07 01 00 0b 3c 01 00 | 0b 3c 01 00 00 00 00 00 |.....<..|.<......|
|00003290| 00 70 00 00 05 78 00 00 | 00 94 b6 06 10 e1 dc ff |.p...x..|........|
|000032a0| f0 0f dd ff 20 22 00 02 | 49 66 20 6e 6f 20 73 65 |.... "..|If no se|
|000032b0| 6d 61 70 68 6f 72 65 20 | 69 73 20 74 6f 20 62 65 |maphore |is to be|
|000032c0| 20 73 69 67 6e 61 6c 6c | 65 64 20 64 75 72 69 6e | signall|ed durin|
|000032d0| 67 20 74 68 65 20 65 78 | 69 74 20 72 6f 75 74 69 |g the ex|it routi|
|000032e0| 6e 65 2c 20 74 68 65 20 | 49 53 52 20 73 68 6f 75 |ne, the |ISR shou|
|000032f0| 6c 64 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 61 |ld make |sure tha|
|00003300| 74 20 74 68 65 20 00 00 | 00 78 00 00 a5 5c 00 00 |t the ..|.x...\..|
|00003310| 43 f0 d2 03 d0 a8 dc ff | b0 d7 dc ff 20 22 00 00 |C.......|.... "..|
|00003320| 42 a0 05 41 63 63 75 6d | 75 6c 61 74 6f 72 20 69 |B..Accum|ulator i|
|00003330| 73 20 63 6c 65 61 72 65 | 64 20 62 65 66 6f 72 65 |s cleare|d before|
|00003340| 20 62 72 61 6e 63 68 69 | 6e 67 20 74 6f 20 69 73 | branchi|ng to is|
|00003350| 72 72 74 6e 2e 08 08 20 | 0b 3c 01 00 00 00 00 00 |rrtn... |.<......|
|00003360| 0d 00 00 00 00 5c 00 00 | 25 1c 00 00 42 00 00 00 |.....\..|%...B...|
|00003370| 60 5f dc ff 10 96 dc ff | d0 27 00 02 0d 00 00 00 |`_......|.'......|
|00003380| 00 1c 00 00 06 00 00 00 | 79 56 34 12 |........|yV4. |
+--------+-------------------------+-------------------------+--------+--------+