home *** CD-ROM | disk | FTP | other *** search
Unknown | 1992-12-15 | 15.8 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Windows Help File (document/hlp)
| ext
| Supported |
66%
| dexvert
| Multimedia Viewer Book (document/multimediaViewerBook)
| ext
| Supported |
1%
| dexvert
| BDC HelpSystem (document/bdcHelpSystem)
| ext
| Unsupported |
1%
| dexvert
| Eureka/Mercury Help (document/eurekaMercuryHelp)
| ext
| Unsupported |
1%
| dexvert
| 4DOS Help (document/fourDOSHelp)
| ext
| Unsupported |
1%
| dexvert
| OPHelp (document/opHelp)
| ext
| Unsupported |
1%
| dexvert
| POP-UP DOS Help (document/popupDOSHelp)
| ext
| Unsupported |
1%
| dexvert
| Quick Help (document/quickHelp)
| ext
| Unsupported |
1%
| dexvert
| RMP Help (document/rmpHelp)
| ext
| Unsupported |
1%
| dexvert
| Symantec DOS software help (document/symantecDOSSoftwareHelp)
| ext
| Unsupported |
1%
| dexvert
| xText compiled Hypertext/Help (document/xTextCompiledHypertext)
| ext
| Unsupported |
1%
| dexvert
| gfxboot compiled HTML Help (document/gfxbootCompiledHTMLHelp)
| ext
| Unsupported |
1%
| dexvert
| Pure Pascal Help (document/purePascalHelp)
| ext
| Unsupported |
1%
| dexvert
| WordPerfect help (document/wordPerfectHelp)
| ext
| Unsupported |
1%
| dexvert
| Ashton-Tate Help data (other/ashtonTateHelpData)
| ext
| Unsupported |
1%
| dexvert
| Borland Help System (other/borlandHelpSystem)
| ext
| Unsupported |
1%
| dexvert
| DeskMate Filer database (other/deskMateFilerDatabase)
| ext
| Unsupported |
1%
| dexvert
| Eclipse Help (other/eclipseHelp)
| ext
| Unsupported |
1%
| dexvert
| Necromancer's Dos Navigator Help (other/necromancersDosNavigatorHelp)
| ext
| Unsupported |
1%
| dexvert
| 1dir+ Help (other/oneDirPlusHelp)
| ext
| Unsupported |
1%
| dexvert
| Qualitas Help (other/qualitasHelp)
| ext
| Unsupported |
1%
| dexvert
| Turbo Pascal Help (other/turboPascalHelp)
| ext
| Unsupported |
1%
| dexvert
| Vocal-Eyes Help (other/vocalEyesHelp)
| ext
| Unsupported |
1%
| dexvert
| Windows Help index (other/windowsHelpIndex)
| ext
| Unsupported |
1%
| dexvert
| Alpha Four Help (other/alphaFourHelp)
| ext
| Unsupported |
1%
| dexvert
| FastLynx Help (other/fastLynxHelp)
| ext
| Unsupported |
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| f4 01 42 11 d3 11 79 12 | 00 00 e8 12 80 13 05 15 |..B...y.|........|
|00000010| 88 16 b2 18 dc 1a 06 1d | 30 1f 5a 21 84 23 ae 25 |........|0.Z!.#.%|
|00000020| 45 26 6f 28 99 2a 44 2b | aa 2b cd 2b 05 2c 29 2c |E&o(.*D+|.+.+.,),|
|00000030| 5a 2c 1f 2d 0d 2e 35 2e | 60 2e a4 2e 27 2f 63 2f |Z,.-..5.|`...'/c/|
|00000040| ab 2f 74 30 bb 30 00 00 | 36 31 b0 31 ec 31 27 33 |./t0.0..|61.1.1'3|
|00000050| b1 33 00 00 fb 33 72 34 | 27 35 9d 35 00 00 c0 35 |.3...3r4|'5.5...5|
|00000060| 00 00 1c 36 6c 36 d2 36 | 3a 37 45 38 5e 39 43 3a |...6l6.6|:7E8^9C:|
|00000070| fb 3a 93 3b b4 3b ea 3b | 0c 3c 3f 3c 70 3c 1d 3d |.:.;.;.;|.<?<p<.=|
|00000080| a2 3d 3c 3e d5 3e 00 00 | 00 00 00 00 00 00 00 00 |.=<>.>..|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|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 0a 42 0f 08 | b4 53 50 43 37 30 30 c3 |.....B..|.SPC700.|
|00000200| 0d 0a 20 09 20 20 20 20 | 20 20 20 20 20 20 20 50 |.. . | P|
|00000210| 52 4f 47 52 41 4d 4d 45 | 52 27 53 20 4f 56 45 52 |ROGRAMME|R'S OVER|
|00000220| 56 49 45 57 0d 0a 0d 0a | 0d 0a 4d 69 63 72 6f 70 |VIEW....|..Microp|
|00000230| 72 6f 63 65 73 73 6f 72 | 3a 20 53 50 43 37 30 30 |rocessor|: SPC700|
|00000240| 20 43 50 55 20 28 53 6f | 6e 79 29 2e 0d 0a 0d 0a | CPU (So|ny).....|
|00000250| 20 20 52 65 66 65 72 65 | 6e 63 65 28 73 29 3a 20 | Refere|nce(s): |
|00000260| 53 4e 45 53 20 44 65 76 | 65 6c 6f 70 6d 65 6e 74 |SNES Dev|elopment|
|00000270| 20 4d 61 6e 75 61 6c 2e | 0d 0a 0d 0a 20 20 52 65 | Manual.|.... Re|
|00000280| 73 65 72 76 61 74 69 6f | 6e 73 3a 20 4e 6f 6e 65 |servatio|ns: None|
|00000290| 2e 0d 0a 0d 0a 20 20 20 | 52 65 76 69 73 69 6f 6e |..... |Revision|
|000002a0| 28 73 29 3a 20 32 2e 32 | 30 20 2d 20 32 38 2f 31 |(s): 2.2|0 - 28/1|
|000002b0| 30 2f 39 32 20 28 46 69 | 72 73 74 20 76 65 72 73 |0/92 (Fi|rst vers|
|000002c0| 69 6f 6e 20 66 6f 72 20 | 76 32 2e 32 20 73 79 73 |ion for |v2.2 sys|
|000002d0| 74 65 6d 29 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 52 45 |tem)....|......RE|
|000002e0| 47 49 53 54 45 52 20 4d | 4f 44 45 4c 3a 0d 0a 0d |GISTER M|ODEL:...|
|000002f0| 0a 49 6e 74 65 72 6e 61 | 6c 20 72 65 67 69 73 74 |.Interna|l regist|
|00000300| 65 72 73 20 6f 66 20 74 | 68 65 20 53 50 43 37 30 |ers of t|he SPC70|
|00000310| 30 20 63 61 6e 20 62 65 | 20 69 6c 6c 75 73 74 72 |0 can be| illustr|
|00000320| 61 74 65 64 20 61 73 20 | 66 6f 6c 6c 6f 77 73 3a |ated as |follows:|
|00000330| 0d 0a 0d 0a 09 09 09 20 | 20 20 20 37 20 20 20 20 |....... | 7 |
|00000340| 20 30 0d 0a 09 09 09 20 | 20 20 da c4 c4 c4 c4 c4 | 0..... | ......|
|00000350| c4 c4 bf 0d 0a 41 63 63 | 75 6d 75 6c 61 74 6f 72 |.....Acc|umulator|
|00000360| 20 52 65 67 09 09 20 20 | 20 b3 20 20 20 41 20 20 | Reg.. | . A |
|00000370| 20 b3 0d 0a 09 09 09 20 | 20 20 b3 c4 c4 c4 c4 c4 | ...... | ......|
|00000380| c4 c4 b3 0d 0a 49 6e 64 | 65 78 20 52 65 67 69 73 |.....Ind|ex Regis|
|00000390| 74 65 72 73 09 09 20 20 | 20 b3 20 20 20 58 20 20 |ters.. | . X |
|000003a0| 20 b3 0d 0a 09 20 20 20 | 20 20 20 20 20 20 20 20 | .... | |
|000003b0| 20 20 20 09 20 20 20 b3 | 20 20 20 59 20 20 20 b3 | . .| Y .|
|000003c0| 0d 0a 09 09 09 20 20 20 | c0 c4 c4 c4 c4 c4 c4 c4 |..... |........|
|000003d0| d9 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 09 09 20 20 20 |........|..... |
|000003e0| 20 31 35 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | 15 | |
|000003f0| 30 0d 0a 09 09 20 20 20 | da c4 c4 c4 c4 c4 c4 c4 |0.... |........|
|00000400| c4 c4 c4 c4 c4 c4 c4 c4 | c4 bf 0d 0a 53 70 65 63 |........|....Spec|
|00000410| 69 61 6c 20 52 65 67 69 | 73 74 65 72 73 20 20 20 |ial Regi|sters |
|00000420| b3 20 20 20 20 20 20 20 | 53 50 20 20 20 20 20 20 |. |SP |
|00000430| 20 b3 20 53 74 61 63 6b | 20 50 6f 69 6e 74 65 72 | . Stack| Pointer|
|00000440| 0d 0a 09 09 20 20 20 b3 | 20 20 20 20 20 20 20 50 |.... .| P|
|00000450| 43 20 20 20 20 20 20 20 | b3 20 50 72 6f 67 72 61 |C |. Progra|
|00000460| 6d 20 43 6f 75 6e 74 65 | 72 0d 0a 09 09 20 20 20 |m Counte|r.... |
|00000470| c0 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000480| c4 d9 0d 0a 09 09 09 20 | 20 da c4 c4 c4 c4 c4 c4 |....... | .......|
|00000490| c4 c4 bf 0d 0a 09 09 20 | 09 20 20 b3 20 20 20 53 |....... |. . S|
|000004a0| 52 20 20 20 b3 20 53 74 | 61 74 75 73 20 52 65 67 |R . St|atus Reg|
|000004b0| 69 73 74 65 72 0d 0a 09 | 09 09 20 20 c0 c4 c4 c4 |ister...|.. ....|
|000004c0| c4 c4 c4 c4 c4 d9 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |........|........|
|000004d0| 0d 0a 0d 0a 0d 0a 53 54 | 41 54 55 53 20 52 45 47 |......ST|ATUS REG|
|000004e0| 49 53 54 45 52 20 49 4e | 20 44 45 54 41 49 4c 3a |ISTER IN| DETAIL:|
|000004f0| 0d 0a 0d 0a 54 68 65 20 | 50 72 6f 67 72 61 6d 20 |....The |Program |
|00000500| 53 74 61 74 75 73 20 57 | 6f 72 64 20 69 73 20 61 |Status W|ord is a|
|00000510| 6c 6c 6f 63 61 74 65 64 | 20 61 73 20 66 6f 6c 6c |llocated| as foll|
|00000520| 6f 77 73 3a 2d 0d 0a 0d | 0a 0d 0a 09 09 20 20 37 |ows:-...|..... 7|
|00000530| 20 20 36 20 20 35 20 20 | 34 20 20 33 20 20 32 20 | 6 5 |4 3 2 |
|00000540| 20 31 20 20 30 0d 0a 09 | 09 da c4 c4 c4 c4 c4 c4 | 1 0...|........|
|00000550| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|00000560| c4 c4 bf 0d 0a 09 09 b3 | 20 4e 20 20 56 20 20 50 |........| N V P|
|00000570| 20 20 42 20 20 48 20 20 | 49 20 20 5a 20 20 43 20 | B H |I Z C |
|00000580| b3 20 20 53 74 61 74 75 | 73 20 52 65 67 69 73 74 |. Statu|s Regist|
|00000590| 65 72 20 28 53 52 29 0d | 0a 09 09 c0 c4 c4 c4 c4 |er (SR).|........|
|000005a0| c4 c4 c4 c4 c4 c4 c4 c4 | c4 c4 c4 c4 c4 c4 c4 c4 |........|........|
|000005b0| c4 c4 c4 c4 d9 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |........|........|
|000005c0| 0a 0d 0a 28 50 72 6f 67 | 72 61 6d 6d 61 62 6c 65 |...(Prog|rammable|
|000005d0| 20 53 74 61 74 75 73 20 | 42 69 74 73 29 0d 0a 0d | Status |Bits)...|
|000005e0| 0a 44 20 2d 20 44 69 72 | 65 63 74 20 50 61 67 65 |.D - Dir|ect Page|
|000005f0| 20 46 6c 61 67 0d 0a 09 | 44 65 73 69 67 6e 61 74 | Flag...|Designat|
|00000600| 65 73 20 74 68 65 20 64 | 69 72 65 63 74 20 70 61 |es the d|irect pa|
|00000610| 67 65 20 74 6f 20 77 68 | 69 63 68 20 6d 61 6e 79 |ge to wh|ich many|
|00000620| 20 61 64 64 72 65 73 73 | 69 6e 67 20 6d 6f 64 65 | address|ing mode|
|00000630| 73 0d 0a 61 72 65 20 61 | 70 70 6c 69 63 61 62 6c |s..are a|pplicabl|
|00000640| 65 2c 20 73 75 63 68 20 | 61 73 20 64 69 72 65 63 |e, such |as direc|
|00000650| 74 20 70 61 67 65 20 61 | 64 64 72 65 73 73 69 6e |t page a|ddressin|
|00000660| 67 2c 20 65 74 63 2e 20 | 57 68 65 6e 20 22 30 22 |g, etc. |When "0"|
|00000670| 2c 20 74 68 65 0d 0a 64 | 69 72 65 63 74 20 70 61 |, the..d|irect pa|
|00000680| 67 65 20 62 65 63 6f 6d | 65 73 20 74 68 65 20 61 |ge becom|es the a|
|00000690| 64 64 72 65 73 73 65 73 | 20 6f 66 20 74 68 65 20 |ddresses| of the |
|000006a0| 72 65 67 69 6f 6e 20 30 | 30 30 30 68 20 2d 20 30 |region 0|000h - 0|
|000006b0| 30 46 46 68 20 61 6e 64 | 0d 0a 77 68 65 6e 20 22 |0FFh and|..when "|
|000006c0| 31 22 2c 20 69 74 20 62 | 65 63 6f 6d 65 73 20 74 |1", it b|ecomes t|
|000006d0| 68 65 20 61 64 64 72 65 | 73 73 65 73 20 6f 66 20 |he addre|sses of |
|000006e0| 74 68 65 20 72 65 67 69 | 6f 6e 20 30 31 30 30 68 |the regi|on 0100h|
|000006f0| 20 2d 20 30 31 46 46 68 | 2e 20 49 74 0d 0a 69 73 | - 01FFh|. It..is|
|00000700| 20 73 65 74 20 62 79 20 | 74 68 65 20 53 45 54 50 | set by |the SETP|
|00000710| 20 63 6f 6d 6d 61 6e 64 | 20 61 6e 64 20 72 65 73 | command| and res|
|00000720| 65 74 20 62 79 20 74 68 | 65 20 43 4c 52 50 20 63 |et by th|e CLRP c|
|00000730| 6f 6d 6d 61 6e 64 2e 0d | 0a 0d 0a 49 20 2d 20 49 |ommand..|...I - I|
|00000740| 6e 74 65 72 72 75 70 74 | 20 45 6e 61 62 6c 65 0d |nterrupt| Enable.|
|00000750| 0a 09 45 6e 61 62 6c 65 | 73 2f 44 69 73 61 62 6c |..Enable|s/Disabl|
|00000760| 65 73 20 69 6e 74 65 72 | 72 75 70 74 20 64 65 74 |es inter|rupt det|
|00000770| 65 63 74 69 6f 6e 20 66 | 6f 72 20 73 69 67 6e 61 |ection f|or signa|
|00000780| 6c 73 0d 0a 61 70 70 65 | 61 72 69 6e 67 20 6f 6e |ls..appe|aring on|
|00000790| 20 74 68 65 20 6e 6f 72 | 6d 61 6c 20 6d 61 73 6b | the nor|mal mask|
|000007a0| 61 62 6c 65 20 69 6e 74 | 65 72 72 75 70 74 20 70 |able int|errupt p|
|000007b0| 69 6e 20 28 2f 49 52 51 | 29 2e 20 57 68 65 6e 20 |in (/IRQ|). When |
|000007c0| 73 65 74 2c 0d 0a 69 6e | 74 65 72 72 75 70 74 73 |set,..in|terrupts|
|000007d0| 20 61 72 65 20 64 69 73 | 61 62 6c 65 64 2e 20 48 | are dis|abled. H|
|000007e0| 6f 77 65 76 65 72 2c 20 | 74 68 65 20 73 6f 66 74 |owever, |the soft|
|000007f0| 77 61 72 65 20 69 6e 74 | 65 72 72 75 70 74 0d 0a |ware int|errupt..|
|00000800| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 42 52 4b 20 |instruct|ion BRK |
|00000810| 28 77 68 69 63 68 20 69 | 73 20 70 72 6f 63 65 73 |(which i|s proces|
|00000820| 73 65 64 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 61 |sed simi|lar to a|
|00000830| 6e 20 65 78 74 65 72 6e | 61 6c 20 49 52 51 0d 0a |n extern|al IRQ..|
|00000840| 73 6f 75 72 63 65 29 20 | 69 73 20 6e 6f 74 20 6d |source) |is not m|
|00000850| 61 73 6b 61 62 6c 65 2e | 0d 0a 0d 0a 28 49 6e 73 |askable.|....(Ins|
|00000860| 74 72 75 63 74 69 6f 6e | 20 53 74 61 74 75 73 20 |truction| Status |
|00000870| 46 6c 61 67 73 29 0d 0a | 0d 0a 4e 20 2d 20 53 69 |Flags)..|..N - Si|
|00000880| 67 6e 0d 0a 09 52 65 66 | 6c 65 63 74 73 20 74 68 |gn...Ref|lects th|
|00000890| 65 20 4d 53 42 69 74 20 | 6f 66 20 74 68 65 20 72 |e MSBit |of the r|
|000008a0| 65 73 75 6c 74 20 61 66 | 74 65 72 20 61 6e 0d 0a |esult af|ter an..|
|000008b0| 61 72 69 74 68 6d 65 74 | 69 63 2f 6c 6f 67 69 63 |arithmet|ic/logic|
|000008c0| 61 6c 20 73 68 69 66 74 | 20 6f 70 65 72 61 74 69 |al shift| operati|
|000008d0| 6f 6e 2e 20 4e 20 69 73 | 20 73 65 74 20 69 66 20 |on. N is| set if |
|000008e0| 74 68 65 20 4d 53 42 69 | 74 20 69 73 20 31 2e 0d |the MSBi|t is 1..|
|000008f0| 0a 54 68 65 72 65 66 6f | 72 65 2c 20 69 66 20 74 |.Therefo|re, if t|
|00000900| 68 65 20 72 65 73 75 6c | 74 20 72 65 70 72 65 73 |he resul|t repres|
|00000910| 65 6e 74 73 20 61 20 74 | 77 6f 27 73 20 63 6f 6d |ents a t|wo's com|
|00000920| 70 6c 65 6d 65 6e 74 20 | 76 61 6c 75 65 20 74 68 |plement |value th|
|00000930| 65 6e 0d 0a 74 68 69 73 | 20 73 74 61 74 75 73 20 |en..this| status |
|00000940| 62 69 74 20 72 65 66 6c | 65 63 74 73 20 74 68 65 |bit refl|ects the|
|00000950| 20 73 69 67 6e 20 28 70 | 6f 73 69 74 69 76 65 20 | sign (p|ositive |
|00000960| 6f 72 20 6e 65 67 61 74 | 69 76 65 29 20 6f 66 20 |or negat|ive) of |
|00000970| 74 68 65 0d 0a 76 61 6c | 75 65 2e 0d 0a 56 20 2d |the..val|ue...V -|
|00000980| 20 4f 76 65 72 66 6c 6f | 77 0d 0a 09 54 68 69 73 | Overflo|w...This|
|00000990| 20 66 6c 61 67 20 69 73 | 20 73 65 74 20 77 68 65 | flag is| set whe|
|000009a0| 6e 20 61 6e 20 61 72 69 | 74 68 6d 65 74 69 63 20 |n an ari|thmetic |
|000009b0| 72 65 73 75 6c 74 20 69 | 73 20 67 72 65 61 74 65 |result i|s greate|
|000009c0| 72 20 69 6e 0d 0a 6d 61 | 67 6e 69 74 75 64 65 20 |r in..ma|gnitude |
|000009d0| 74 68 61 6e 20 63 61 6e | 20 62 65 20 72 65 70 72 |than can| be repr|
|000009e0| 65 73 65 6e 74 65 64 20 | 69 6e 20 74 68 65 20 72 |esented |in the r|
|000009f0| 65 67 69 73 74 65 72 20 | 28 61 73 73 75 6d 69 6e |egister |(assumin|
|00000a00| 67 20 74 77 6f 27 73 0d | 0a 63 6f 6d 70 6c 65 6d |g two's.|.complem|
|00000a10| 65 6e 74 20 6e 6f 74 61 | 74 69 6f 6e 29 2e 20 49 |ent nota|tion). I|
|00000a20| 6e 20 74 65 63 68 6e 69 | 63 61 6c 20 74 65 72 6d |n techni|cal term|
|00000a30| 73 20 74 68 69 73 20 66 | 6c 61 67 20 69 73 20 74 |s this f|lag is t|
|00000a40| 68 65 0d 0a 65 78 63 6c | 75 73 69 76 65 2d 4f 52 |he..excl|usive-OR|
|00000a50| 20 6f 66 20 74 68 65 20 | 43 20 66 6c 61 67 20 61 | of the |C flag a|
|00000a60| 6e 64 20 6e 65 78 74 20 | 6d 6f 73 74 20 73 69 67 |nd next |most sig|
|00000a70| 6e 69 66 69 63 61 6e 74 | 20 62 69 74 2e 0d 0a 0d |nificant| bit....|
|00000a80| 0a 42 20 2d 20 42 72 65 | 61 6b 0d 0a 09 54 68 69 |.B - Bre|ak...Thi|
|00000a90| 73 20 66 6c 61 67 20 69 | 73 20 73 65 74 20 61 75 |s flag i|s set au|
|00000aa0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 77 68 65 6e |tomatica|lly when|
|00000ab0| 20 61 20 73 6f 66 74 77 | 61 72 65 20 69 6e 74 65 | a softw|are inte|
|00000ac0| 72 72 75 70 74 0d 0a 69 | 6e 73 74 72 75 63 74 69 |rrupt..i|nstructi|
|00000ad0| 6f 6e 20 28 42 52 4b 29 | 20 6f 63 63 75 72 73 20 |on (BRK)| occurs |
|00000ae0| 61 6e 64 20 63 6c 65 61 | 72 65 64 20 6f 6e 20 61 |and clea|red on a|
|00000af0| 6e 20 65 78 74 65 72 6e | 61 6c 20 2f 49 52 51 0d |n extern|al /IRQ.|
|00000b00| 0a 69 6e 74 65 72 72 75 | 70 74 2e 20 54 68 75 73 |.interru|pt. Thus|
|00000b10| 2c 20 74 68 65 20 69 6e | 74 65 72 72 75 70 74 20 |, the in|terrupt |
|00000b20| 70 72 6f 63 65 64 75 72 | 65 20 63 61 6e 20 74 65 |procedur|e can te|
|00000b30| 73 74 20 74 68 69 73 20 | 66 6c 61 67 20 74 6f 0d |st this |flag to.|
|00000b40| 0a 64 65 74 65 72 6d 69 | 6e 65 20 69 66 20 74 68 |.determi|ne if th|
|00000b50| 65 20 69 6e 74 65 72 72 | 75 70 74 20 77 61 73 20 |e interr|upt was |
|00000b60| 67 65 6e 65 72 61 74 65 | 64 20 62 79 20 65 78 74 |generate|d by ext|
|00000b70| 65 72 6e 61 6c 20 68 61 | 72 64 77 61 72 65 0d 0a |ernal ha|rdware..|
|00000b80| 65 74 63 2e 0d 0a 0d 0a | 5a 20 2d 20 5a 65 72 6f |etc.....|Z - Zero|
|00000b90| 0d 0a 09 53 65 74 20 74 | 6f 20 31 20 77 68 65 6e |...Set t|o 1 when|
|00000ba0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 76 61 6c 75 | the res|ult valu|
|00000bb0| 65 20 69 73 20 61 6c 6c | 20 30 73 20 61 66 74 65 |e is all| 0s afte|
|00000bc0| 72 20 61 6e 0d 0a 61 72 | 69 74 68 6d 65 74 69 63 |r an..ar|ithmetic|
|00000bd0| 2f 20 6c 6f 67 69 63 61 | 6c 20 73 68 69 66 74 20 |/ logica|l shift |
|00000be0| 61 6e 64 20 6f 74 68 65 | 72 20 6f 70 65 72 61 74 |and othe|r operat|
|00000bf0| 69 6f 6e 73 2e 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |ions....|........|
|00000c00| 0a 43 20 2d 20 43 61 72 | 72 79 0d 0a 09 53 65 74 |.C - Car|ry...Set|
|00000c10| 20 74 6f 20 31 20 77 68 | 65 6e 20 61 20 63 61 72 | to 1 wh|en a car|
|00000c20| 72 79 20 66 72 6f 6d 20 | 74 68 65 20 4d 53 42 69 |ry from |the MSBi|
|00000c30| 74 20 6f 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |t of the| result |
|00000c40| 6f 72 0d 0a 6f 70 65 72 | 61 6e 64 20 6f 63 63 75 |or..oper|and occu|
|00000c50| 72 72 65 64 2e 20 54 68 | 69 73 20 66 6c 61 67 20 |rred. Th|is flag |
|00000c60| 61 6c 73 6f 20 72 65 66 | 6c 65 63 74 73 20 61 6e |also ref|lects an|
|00000c70| 20 6f 70 65 72 61 6e 64 | 20 62 69 74 20 73 74 61 | operand| bit sta|
|00000c80| 74 75 73 0d 0a 64 75 72 | 69 6e 67 20 72 6f 74 61 |tus..dur|ing rota|
|00000c90| 74 65 2f 73 68 69 66 74 | 20 69 6e 73 74 72 75 63 |te/shift| instruc|
|00000ca0| 74 69 6f 6e 73 2e 20 49 | 74 20 69 73 20 73 65 74 |tions. I|t is set|
|00000cb0| 20 62 79 20 74 68 65 20 | 53 45 54 43 20 63 6f 6d | by the |SETC com|
|00000cc0| 6d 61 6e 64 0d 0a 61 6e | 64 20 63 6c 65 61 72 65 |mand..an|d cleare|
|00000cd0| 64 20 62 79 20 74 68 65 | 20 43 4c 52 43 20 63 6f |d by the| CLRC co|
|00000ce0| 6d 6d 61 6e 64 2e 20 54 | 68 65 20 63 61 72 72 79 |mmand. T|he carry|
|00000cf0| 20 66 6c 61 67 20 69 6e | 76 65 72 74 73 20 77 69 | flag in|verts wi|
|00000d00| 74 68 20 74 68 65 0d 0a | 4e 4f 54 43 20 63 6f 6d |th the..|NOTC com|
|00000d10| 6d 61 6e 64 2e 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |mand....|........|
|00000d20| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 53 50 45 43 49 41 4c |........|.SPECIAL|
|00000d30| 20 41 53 53 45 4d 42 4c | 59 20 43 4f 4e 53 49 44 | ASSEMBL|Y CONSID|
|00000d40| 45 52 41 54 49 4f 4e 53 | 3a 0d 0a 0d 0a 31 2e 20 |ERATIONS|:....1. |
|00000d50| 54 68 65 20 61 73 73 65 | 6d 62 6c 65 72 20 61 6c |The asse|mbler al|
|00000d60| 77 61 79 73 20 65 6e 63 | 6f 64 65 73 20 74 68 65 |ways enc|odes the|
|00000d70| 20 73 70 65 63 69 66 69 | 65 64 20 69 6e 73 74 72 | specifi|ed instr|
|00000d80| 75 63 74 69 6f 6e 20 69 | 6e 74 6f 0d 0a 74 68 65 |uction i|nto..the|
|00000d90| 20 6d 6f 73 74 20 65 66 | 66 69 63 69 65 6e 74 20 | most ef|ficient |
|00000da0| 6f 70 63 6f 64 65 20 61 | 76 61 69 6c 61 62 6c 65 |opcode a|vailable|
|00000db0| 20 28 69 65 20 27 70 61 | 67 65 20 7a 65 72 6f 27 | (ie 'pa|ge zero'|
|00000dc0| 20 64 69 72 65 63 74 0d | 0a 61 64 64 72 65 73 73 | direct.|.address|
|00000dd0| 65 73 29 20 77 68 65 72 | 65 20 74 68 65 20 6f 70 |es) wher|e the op|
|00000de0| 74 69 6f 6e 20 65 78 69 | 73 74 73 2c 20 77 68 69 |tion exi|sts, whi|
|00000df0| 63 68 20 63 61 6e 6e 6f | 74 20 62 65 20 27 6f 76 |ch canno|t be 'ov|
|00000e00| 65 72 72 69 64 64 65 6e | 27 2e 0d 0a 0d 0a 32 2e |erridden|'.....2.|
|00000e10| 20 59 6f 75 20 63 61 6e | 20 6f 76 65 72 72 69 64 | You can| overrid|
|00000e20| 65 20 74 68 65 20 27 49 | 6e 64 65 78 65 64 27 20 |e the 'I|ndexed' |
|00000e30| 61 64 64 72 65 73 73 69 | 6e 67 20 6d 6f 64 65 20 |addressi|ng mode |
|00000e40| 61 75 74 6f 6d 61 74 69 | 63 0d 0a 65 6e 63 6f 64 |automati|c..encod|
|00000e50| 69 6e 67 20 66 6f 72 20 | 27 70 61 67 65 20 7a 65 |ing for |'page ze|
|00000e60| 72 6f 27 20 62 79 20 70 | 72 65 63 65 64 69 6e 67 |ro' by p|receding|
|00000e70| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 77 69 74 | the add|ress wit|
|00000e80| 68 20 61 20 27 3e 27 0d | 0a 63 68 61 72 61 63 74 |h a '>'.|.charact|
|00000e90| 65 72 20 28 73 65 65 20 | 64 69 73 63 75 73 73 69 |er (see |discussi|
|00000ea0| 6f 6e 20 61 62 6f 76 65 | 29 2e 0d 0a 0d 0a 33 2e |on above|).....3.|
|00000eb0| 20 52 65 6d 65 6d 62 65 | 72 20 74 68 61 74 20 69 | Remembe|r that i|
|00000ec0| 6d 6d 65 64 69 61 74 65 | 20 64 61 74 61 20 76 61 |mmediate| data va|
|00000ed0| 6c 75 65 73 20 6d 75 73 | 74 20 62 65 20 70 72 65 |lues mus|t be pre|
|00000ee0| 63 65 64 65 64 20 62 79 | 20 61 20 27 23 27 0d 0a |ceded by| a '#'..|
|00000ef0| 63 68 61 72 61 63 74 65 | 72 20 6f 74 68 65 72 77 |characte|r otherw|
|00000f00| 69 73 65 20 74 68 65 20 | 76 61 6c 75 65 20 77 69 |ise the |value wi|
|00000f10| 6c 6c 20 62 65 20 69 6e | 74 65 72 70 72 65 74 65 |ll be in|terprete|
|00000f20| 64 20 61 73 20 61 6e 20 | 61 64 64 72 65 73 73 0d |d as an |address.|
|00000f30| 0a 6f 66 20 74 68 65 20 | 6f 70 65 72 61 6e 64 2c |.of the |operand,|
|00000f40| 20 73 6f 20 62 65 20 63 | 61 72 65 66 75 6c 21 0d | so be c|areful!.|
|00000f50| 0a 0d 0a 0d 0a 34 2e 20 | 49 6e 73 74 72 75 63 74 |.....4. |Instruct|
|00000f60| 69 6f 6e 20 65 78 65 63 | 75 74 69 6f 6e 20 63 79 |ion exec|ution cy|
|00000f70| 63 6c 65 73 20 64 69 73 | 70 6c 61 79 65 64 20 77 |cles dis|played w|
|00000f80| 69 74 68 69 6e 20 74 68 | 65 20 64 69 61 67 6e 6f |ithin th|e diagno|
|00000f90| 73 74 69 63 0d 0a 68 65 | 6c 70 20 77 69 6e 64 6f |stic..he|lp windo|
|00000fa0| 77 20 64 65 70 69 63 74 | 20 73 6f 6d 65 20 69 6e |w depict| some in|
|00000fb0| 64 65 78 65 64 20 61 64 | 64 72 65 73 73 69 6e 67 |dexed ad|dressing|
|00000fc0| 20 6d 6f 64 65 73 20 68 | 61 76 69 6e 67 20 74 77 | modes h|aving tw|
|00000fd0| 6f 0d 0a 73 74 61 74 65 | 73 2e 20 54 68 65 20 6c |o..state|s. The l|
|00000fe0| 6f 6e 67 65 72 20 65 78 | 65 63 75 74 69 6f 6e 20 |onger ex|ecution |
|00000ff0| 77 69 6c 6c 20 6f 6e 6c | 79 20 61 70 70 6c 79 20 |will onl|y apply |
|00001000| 77 68 65 6e 20 61 20 27 | 70 61 67 65 0d 0a 62 6f |when a '|page..bo|
|00001010| 75 6e 64 61 72 79 27 20 | 69 73 20 63 72 6f 73 73 |undary' |is cross|
|00001020| 65 64 2e 20 48 6f 77 65 | 76 65 72 2c 20 63 6f 6e |ed. Howe|ver, con|
|00001030| 64 69 74 69 6f 6e 61 6c | 20 6a 75 6d 70 20 69 6e |ditional| jump in|
|00001040| 73 74 72 75 63 74 69 6f | 6e 73 20 68 61 76 65 0d |structio|ns have.|
|00001050| 0a 64 69 66 66 65 72 65 | 6e 74 20 65 78 65 63 75 |.differe|nt execu|
|00001060| 74 69 6f 6e 20 63 6f 75 | 6e 74 73 20 64 65 70 65 |tion cou|nts depe|
|00001070| 6e 64 69 6e 67 20 6f 6e | 20 77 68 65 74 68 65 72 |nding on| whether|
|00001080| 20 74 68 65 20 6a 75 6d | 70 20 6f 63 63 75 72 73 | the jum|p occurs|
|00001090| 2e 0d 0a 0d 0a 35 2e 20 | 45 43 41 4c 20 64 65 66 |.....5. |ECAL def|
|000010a0| 61 75 6c 74 73 20 74 6f | 20 74 68 65 20 27 49 4e |aults to| the 'IN|
|000010b0| 54 45 4c 27 20 72 61 64 | 69 78 69 6e 67 20 66 6f |TEL' rad|ixing fo|
|000010c0| 72 6d 61 74 2c 20 66 6f | 72 0d 0a 63 6f 6d 70 61 |rmat, fo|r..compa|
|000010d0| 74 69 62 69 6c 69 74 79 | 20 77 69 74 68 20 74 68 |tibility| with th|
|000010e0| 65 20 73 74 61 6e 64 61 | 72 64 20 52 6f 63 6b 77 |e standa|rd Rockw|
|000010f0| 65 6c 6c 20 61 73 73 65 | 6d 62 6c 65 72 20 75 73 |ell asse|mbler us|
|00001100| 65 20 74 68 65 20 52 41 | 44 49 58 0d 0a 4d 4f 54 |e the RA|DIX..MOT|
|00001110| 4f 4c 20 64 69 72 65 63 | 74 69 76 65 20 61 74 20 |OL direc|tive at |
|00001120| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of|
|00001130| 20 74 68 65 20 70 72 6f | 67 72 61 6d 2e 0d 0a 0d | the pro|gram....|
|00001140| 0a 1a 01 3b 03 05 b4 41 | 44 43 c3 41 64 64 20 6d |...;...A|DC.Add m|
|00001150| 65 6d 6f 72 79 20 62 79 | 74 65 20 28 6f 72 20 69 |emory by|te (or i|
|00001160| 6d 6d 65 64 69 61 74 65 | 20 64 61 74 61 29 20 61 |mmediate| data) a|
|00001170| 6e 64 20 63 61 72 72 79 | 20 66 6c 61 67 20 74 6f |nd carry| flag to|
|00001180| 20 74 68 65 20 41 0d 0a | 72 65 67 69 73 74 65 72 | the A..|register|
|00001190| 2e 20 53 74 6f 72 65 20 | 74 68 65 20 72 65 73 75 |. Store |the resu|
|000011a0| 6c 74 20 62 61 63 6b 20 | 69 6e 74 6f 20 41 2e 20 |lt back |into A. |
|000011b0| 2a 53 65 65 20 61 6c 73 | 6f 20 43 4c 44 2f 53 45 |*See als|o CLD/SE|
|000011c0| 44 0d 0a 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 2e |D..instr|uctions.|
|000011d0| 0d 0a 1a 01 3c 03 06 b4 | 41 44 44 57 c3 41 64 64 |....<...|ADDW.Add|
|000011e0| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 | the con|tents of|
|000011f0| 20 74 68 65 20 77 6f 72 | 64 20 70 6f 69 6e 74 65 | the wor|d pointe|
|00001200| 64 20 74 6f 20 62 79 20 | 28 64 70 2b 31 29 28 64 |d to by |(dp+1)(d|
|00001210| 70 29 20 74 6f 20 74 68 | 65 0d 0a 59 41 20 70 61 |p) to th|e..YA pa|
|00001220| 69 72 65 64 20 31 36 20 | 62 69 74 20 61 63 63 75 |ired 16 |bit accu|
|00001230| 6d 75 6c 61 74 6f 72 2e | 20 53 74 6f 72 65 20 74 |mulator.| Store t|
|00001240| 68 65 20 72 65 73 75 6c | 74 20 62 61 63 6b 20 69 |he resul|t back i|
|00001250| 6e 74 6f 20 74 68 65 0d | 0a 59 41 20 31 36 20 62 |nto the.|.YA 16 b|
|00001260| 69 74 20 70 61 69 72 65 | 64 20 61 63 63 75 6d 75 |it paire|d accumu|
|00001270| 6c 61 74 6f 72 2e 0d 0a | 1a 01 3a 02 05 b4 41 4e |lator...|..:...AN|
|00001280| 44 c3 4c 6f 67 69 63 61 | 6c 6c 79 20 41 4e 44 20 |D.Logica|lly AND |
|00001290| 61 20 6d 65 6d 6f 72 79 | 20 62 79 74 65 20 28 6f |a memory| byte (o|
|000012a0| 72 20 69 6d 6d 65 64 69 | 61 74 65 20 64 61 74 61 |r immedi|ate data|
|000012b0| 29 20 77 69 74 68 20 74 | 68 65 20 41 0d 0a 72 65 |) with t|he A..re|
|000012c0| 67 69 73 74 65 72 2e 20 | 53 74 6f 72 65 20 74 68 |gister. |Store th|
|000012d0| 65 20 72 65 73 75 6c 74 | 20 62 61 63 6b 20 69 6e |e result| back in|
|000012e0| 74 6f 20 41 2e 0d 0a 1a | 01 40 03 05 b4 41 53 4c |to A....|.@...ASL|
|000012f0| c3 41 72 69 74 68 6d 65 | 74 69 63 20 73 68 69 66 |.Arithme|tic shif|
|00001300| 74 20 61 20 6d 65 6d 6f | 72 79 20 62 79 74 65 20 |t a memo|ry byte |
|00001310| 6f 72 20 72 65 67 69 73 | 74 65 72 20 41 20 6f 6e |or regis|ter A on|
|00001320| 65 20 62 69 74 20 70 6f | 73 69 74 69 6f 6e 0d 0a |e bit po|sition..|
|00001330| 6c 65 66 74 2e 20 41 20 | 7a 65 72 6f 20 69 73 20 |left. A |zero is |
|00001340| 73 68 69 66 74 65 64 20 | 69 6e 74 6f 20 62 69 74 |shifted |into bit|
|00001350| 20 30 20 61 6e 64 20 62 | 69 74 20 37 20 69 73 20 | 0 and b|it 7 is |
|00001360| 73 68 69 66 74 65 64 20 | 69 6e 74 6f 20 74 68 65 |shifted |into the|
|00001370| 0d 0a 63 61 72 72 79 20 | 66 6c 61 67 2e 0d 0a 1a |..carry |flag....|
|00001380| 01 40 06 05 b4 42 42 43 | c3 42 72 61 6e 63 68 20 |.@...BBC|.Branch |
|00001390| 69 66 20 74 68 65 20 64 | 65 73 69 67 6e 61 74 65 |if the d|esignate|
|000013a0| 64 20 62 69 74 20 6f 66 | 20 74 68 65 20 7a 65 72 |d bit of| the zer|
|000013b0| 6f 20 70 61 67 65 20 6d | 65 6d 6f 72 79 20 61 64 |o page m|emory ad|
|000013c0| 64 72 65 73 73 20 69 73 | 0d 0a 63 6c 65 61 72 2e |dress is|..clear.|
|000013d0| 20 59 6f 75 20 6d 75 73 | 74 20 73 75 70 70 6c 79 | You mus|t supply|
|000013e0| 20 61 6e 20 61 62 73 6f | 6c 75 74 65 20 6d 65 6d | an abso|lute mem|
|000013f0| 6f 72 79 20 61 64 64 72 | 65 73 73 20 28 6f 72 20 |ory addr|ess (or |
|00001400| 61 73 73 65 6d 62 6c 65 | 72 0d 0a 6c 61 62 65 6c |assemble|r..label|
|00001410| 20 65 74 63 29 20 61 6e | 64 20 74 68 65 20 61 73 | etc) an|d the as|
|00001420| 73 65 6d 62 6c 65 72 20 | 61 75 74 6f 6d 61 74 69 |sembler |automati|
|00001430| 63 61 6c 6c 79 20 63 61 | 6c 63 75 6c 61 74 65 73 |cally ca|lculates|
|00001440| 20 74 68 65 0d 0a 72 65 | 71 75 69 72 65 64 20 50 | the..re|quired P|
|00001450| 43 2d 72 65 6c 61 74 69 | 76 65 20 6f 66 66 73 65 |C-relati|ve offse|
|00001460| 74 2e 20 41 73 20 74 68 | 69 73 20 69 6e 73 74 72 |t. As th|is instr|
|00001470| 75 63 74 69 6f 6e 20 65 | 6e 63 6f 64 65 73 20 74 |uction e|ncodes t|
|00001480| 68 65 0d 0a 6f 66 66 73 | 65 74 20 69 6e 20 61 20 |he..offs|et in a |
|00001490| 73 69 6e 67 6c 65 20 62 | 79 74 65 20 79 6f 75 20 |single b|yte you |
|000014a0| 63 61 6e 20 6f 6e 6c 79 | 20 6a 75 6d 70 20 74 6f |can only| jump to|
|000014b0| 20 61 64 64 72 65 73 73 | 65 73 20 77 68 69 63 68 | address|es which|
|000014c0| 20 61 72 65 0d 0a 77 69 | 74 68 69 6e 20 61 70 70 | are..wi|thin app|
|000014d0| 72 6f 78 69 6d 61 74 65 | 6c 79 20 31 32 37 20 62 |roximate|ly 127 b|
|000014e0| 79 74 65 73 20 66 72 6f | 6d 20 74 68 65 20 63 75 |ytes fro|m the cu|
|000014f0| 72 72 65 6e 74 20 69 6e | 73 74 72 75 63 74 69 6f |rrent in|structio|
|00001500| 6e 2e 0d 0a 1a 01 40 06 | 05 b4 42 42 53 c3 42 72 |n.....@.|..BBS.Br|
|00001510| 61 6e 63 68 20 69 66 20 | 74 68 65 20 64 65 73 69 |anch if |the desi|
|00001520| 67 6e 61 74 65 64 20 62 | 69 74 20 6f 66 20 74 68 |gnated b|it of th|
|00001530| 65 20 7a 65 72 6f 20 70 | 61 67 65 20 6d 65 6d 6f |e zero p|age memo|
|00001540| 72 79 20 61 64 64 72 65 | 73 73 20 69 73 0d 0a 73 |ry addre|ss is..s|
|00001550| 65 74 2e 20 59 6f 75 20 | 6d 75 73 74 20 73 75 70 |et. You |must sup|
|00001560| 70 6c 79 20 61 6e 20 61 | 62 73 6f 6c 75 74 65 20 |ply an a|bsolute |
|00001570| 6d 65 6d 6f 72 79 20 61 | 64 64 72 65 73 73 20 28 |memory a|ddress (|
|00001580| 6f 72 20 61 73 73 65 6d | 62 6c 65 72 0d 0a 6c 61 |or assem|bler..la|
|00001590| 62 65 6c 20 65 74 63 29 | 20 61 6e 64 20 74 68 65 |bel etc)| and the|
|000015a0| 20 61 73 73 65 6d 62 6c | 65 72 20 61 75 74 6f 6d | assembl|er autom|
|000015b0| 61 74 69 63 61 6c 6c 79 | 20 63 61 6c 63 75 6c 61 |atically| calcula|
|000015c0| 74 65 73 20 74 68 65 0d | 0a 72 65 71 75 69 72 65 |tes the.|.require|
|000015d0| 64 20 50 43 2d 72 65 6c | 61 74 69 76 65 20 6f 66 |d PC-rel|ative of|
|000015e0| 66 73 65 74 2e 20 41 73 | 20 74 68 69 73 20 69 6e |fset. As| this in|
|000015f0| 73 74 72 75 63 74 69 6f | 6e 20 65 6e 63 6f 64 65 |structio|n encode|
|00001600| 73 20 74 68 65 0d 0a 6f | 66 66 73 65 74 20 69 6e |s the..o|ffset in|
|00001610| 20 61 20 73 69 6e 67 6c | 65 20 62 79 74 65 20 79 | a singl|e byte y|
|00001620| 6f 75 20 63 61 6e 20 6f | 6e 6c 79 20 6a 75 6d 70 |ou can o|nly jump|
|00001630| 20 74 6f 20 61 64 64 72 | 65 73 73 65 73 20 77 68 | to addr|esses wh|
|00001640| 69 63 68 20 61 72 65 0d | 0a 77 69 74 68 69 6e 20 |ich are.|.within |
|00001650| 61 70 70 72 6f 78 69 6d | 61 74 65 6c 79 20 31 32 |approxim|ately 12|
|00001660| 37 20 62 79 74 65 73 20 | 66 72 6f 6d 20 74 68 65 |7 bytes |from the|
|00001670| 20 63 75 72 72 65 6e 74 | 20 69 6e 73 74 72 75 63 | current| instruc|
|00001680| 74 69 6f 6e 2e 0d 0a 1a | 01 40 09 05 b4 42 43 43 |tion....|.@...BCC|
|00001690| c3 42 72 61 6e 63 68 20 | 6f 6e 20 63 6f 6e 64 69 |.Branch |on condi|
|000016a0| 74 69 6f 6e 20 74 6f 20 | 61 20 70 72 6f 67 72 61 |tion to |a progra|
|000016b0| 6d 20 72 65 6c 61 74 69 | 76 65 20 61 64 64 72 65 |m relati|ve addre|
|000016c0| 73 73 20 69 66 20 74 68 | 65 20 63 75 72 72 65 6e |ss if th|e curren|
|000016d0| 74 0d 0a 73 74 61 74 75 | 73 20 66 6c 61 67 73 20 |t..statu|s flags |
|000016e0| 69 6e 20 74 68 65 20 53 | 74 61 74 75 73 20 72 65 |in the S|tatus re|
|000016f0| 67 69 73 74 65 72 20 6d | 61 74 63 68 20 74 68 65 |gister m|atch the|
|00001700| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 6d 70 6c 69 | conditi|on impli|
|00001710| 65 64 0d 0a 62 79 20 74 | 68 65 20 6f 70 65 72 61 |ed..by t|he opera|
|00001720| 74 6f 72 2e 20 54 68 65 | 20 73 74 61 74 75 73 20 |tor. The| status |
|00001730| 66 6c 61 67 73 20 77 68 | 69 63 68 20 6d 75 73 74 |flags wh|ich must|
|00001740| 20 62 65 20 73 65 74 2f | 72 65 73 65 74 20 61 72 | be set/|reset ar|
|00001750| 65 0d 0a 6c 69 73 74 65 | 64 20 69 6e 20 74 68 65 |e..liste|d in the|
|00001760| 20 69 6e 74 72 6f 64 75 | 63 74 6f 72 79 20 74 65 | introdu|ctory te|
|00001770| 78 74 20 73 65 63 74 69 | 6f 6e 2e 0d 0a 09 59 6f |xt secti|on....Yo|
|00001780| 75 20 6d 75 73 74 20 73 | 75 70 70 6c 79 20 61 6e |u must s|upply an|
|00001790| 20 61 62 73 6f 6c 75 74 | 65 20 6d 65 6d 6f 72 79 | absolut|e memory|
|000017a0| 20 61 64 64 72 65 73 73 | 20 28 6f 72 20 61 73 73 | address| (or ass|
|000017b0| 65 6d 62 6c 65 72 0d 0a | 6c 61 62 65 6c 20 65 74 |embler..|label et|
|000017c0| 63 29 20 61 6e 64 20 74 | 68 65 20 61 73 73 65 6d |c) and t|he assem|
|000017d0| 62 6c 65 72 20 61 75 74 | 6f 6d 61 74 69 63 61 6c |bler aut|omatical|
|000017e0| 6c 79 20 63 61 6c 63 75 | 6c 61 74 65 73 20 74 68 |ly calcu|lates th|
|000017f0| 65 0d 0a 72 65 71 75 69 | 72 65 64 20 50 43 2d 72 |e..requi|red PC-r|
|00001800| 65 6c 61 74 69 76 65 20 | 6f 66 66 73 65 74 2e 20 |elative |offset. |
|00001810| 41 73 20 74 68 69 73 20 | 69 6e 73 74 72 75 63 74 |As this |instruct|
|00001820| 69 6f 6e 20 65 6e 63 6f | 64 65 73 20 74 68 65 0d |ion enco|des the.|
|00001830| 0a 6f 66 66 73 65 74 20 | 69 6e 20 61 20 73 69 6e |.offset |in a sin|
|00001840| 67 6c 65 20 62 79 74 65 | 20 79 6f 75 20 63 61 6e |gle byte| you can|
|00001850| 20 6f 6e 6c 79 20 6a 75 | 6d 70 20 74 6f 20 61 64 | only ju|mp to ad|
|00001860| 64 72 65 73 73 65 73 20 | 77 68 69 63 68 20 61 72 |dresses |which ar|
|00001870| 65 0d 0a 77 69 74 68 69 | 6e 20 61 70 70 72 6f 78 |e..withi|n approx|
|00001880| 69 6d 61 74 65 6c 79 20 | 31 32 37 20 62 79 74 65 |imately |127 byte|
|00001890| 73 20 66 72 6f 6d 20 74 | 68 65 20 63 75 72 72 65 |s from t|he curre|
|000018a0| 6e 74 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 2e 0d |nt instr|uction..|
|000018b0| 0a 1a 01 40 09 05 b4 42 | 43 53 c3 42 72 61 6e 63 |...@...B|CS.Branc|
|000018c0| 68 20 6f 6e 20 63 6f 6e | 64 69 74 69 6f 6e 20 74 |h on con|dition t|
|000018d0| 6f 20 61 20 70 72 6f 67 | 72 61 6d 20 72 65 6c 61 |o a prog|ram rela|
|000018e0| 74 69 76 65 20 61 64 64 | 72 65 73 73 20 69 66 20 |tive add|ress if |
|000018f0| 74 68 65 20 63 75 72 72 | 65 6e 74 0d 0a 73 74 61 |the curr|ent..sta|
|00001900| 74 75 73 20 66 6c 61 67 | 73 20 69 6e 20 74 68 65 |tus flag|s in the|
|00001910| 20 53 74 61 74 75 73 20 | 72 65 67 69 73 74 65 72 | Status |register|
|00001920| 20 6d 61 74 63 68 20 74 | 68 65 20 63 6f 6e 64 69 | match t|he condi|
|00001930| 74 69 6f 6e 20 69 6d 70 | 6c 69 65 64 0d 0a 62 79 |tion imp|lied..by|
|00001940| 20 74 68 65 20 6f 70 65 | 72 61 74 6f 72 2e 20 54 | the ope|rator. T|
|00001950| 68 65 20 73 74 61 74 75 | 73 20 66 6c 61 67 73 20 |he statu|s flags |
|00001960| 77 68 69 63 68 20 6d 75 | 73 74 20 62 65 20 73 65 |which mu|st be se|
|00001970| 74 2f 72 65 73 65 74 20 | 61 72 65 0d 0a 6c 69 73 |t/reset |are..lis|
|00001980| 74 65 64 20 69 6e 20 74 | 68 65 20 69 6e 74 72 6f |ted in t|he intro|
|00001990| 64 75 63 74 6f 72 79 20 | 74 65 78 74 20 73 65 63 |ductory |text sec|
|000019a0| 74 69 6f 6e 2e 0d 0a 09 | 59 6f 75 20 6d 75 73 74 |tion....|You must|
|000019b0| 20 73 75 70 70 6c 79 20 | 61 6e 20 61 62 73 6f 6c | supply |an absol|
|000019c0| 75 74 65 20 6d 65 6d 6f | 72 79 20 61 64 64 72 65 |ute memo|ry addre|
|000019d0| 73 73 20 28 6f 72 20 61 | 73 73 65 6d 62 6c 65 72 |ss (or a|ssembler|
|000019e0| 0d 0a 6c 61 62 65 6c 20 | 65 74 63 29 20 61 6e 64 |..label |etc) and|
|000019f0| 20 74 68 65 20 61 73 73 | 65 6d 62 6c 65 72 20 61 | the ass|embler a|
|00001a00| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 63 61 6c |utomatic|ally cal|
|00001a10| 63 75 6c 61 74 65 73 20 | 74 68 65 0d 0a 72 65 71 |culates |the..req|
|00001a20| 75 69 72 65 64 20 50 43 | 2d 72 65 6c 61 74 69 76 |uired PC|-relativ|
|00001a30| 65 20 6f 66 66 73 65 74 | 2e 20 41 73 20 74 68 69 |e offset|. As thi|
|00001a40| 73 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 20 65 6e |s instru|ction en|
|00001a50| 63 6f 64 65 73 20 74 68 | 65 0d 0a 6f 66 66 73 65 |codes th|e..offse|
|00001a60| 74 20 69 6e 20 61 20 73 | 69 6e 67 6c 65 20 62 79 |t in a s|ingle by|
|00001a70| 74 65 20 79 6f 75 20 63 | 61 6e 20 6f 6e 6c 79 20 |te you c|an only |
|00001a80| 6a 75 6d 70 20 74 6f 20 | 61 64 64 72 65 73 73 65 |jump to |addresse|
|00001a90| 73 20 77 68 69 63 68 20 | 61 72 65 0d 0a 77 69 74 |s which |are..wit|
|00001aa0| 68 69 6e 20 61 70 70 72 | 6f 78 69 6d 61 74 65 6c |hin appr|oximatel|
|00001ab0| 79 20 31 32 37 20 62 79 | 74 65 73 20 66 72 6f 6d |y 127 by|tes from|
|00001ac0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 69 6e 73 | the cur|rent ins|
|00001ad0| 74 72 75 63 74 69 6f 6e | 2e 0d 0a 1a 01 40 09 05 |truction|.....@..|
|00001ae0| b4 42 45 51 c3 42 72 61 | 6e 63 68 20 6f 6e 20 63 |.BEQ.Bra|nch on c|
|00001af0| 6f 6e 64 69 74 69 6f 6e | 20 74 6f 20 61 20 70 72 |ondition| to a pr|
|00001b00| 6f 67 72 61 6d 20 72 65 | 6c 61 74 69 76 65 20 61 |ogram re|lative a|
|00001b10| 64 64 72 65 73 73 20 69 | 66 20 74 68 65 20 63 75 |ddress i|f the cu|
|00001b20| 72 72 65 6e 74 0d 0a 73 | 74 61 74 75 73 20 66 6c |rrent..s|tatus fl|
|00001b30| 61 67 73 20 69 6e 20 74 | 68 65 20 53 74 61 74 75 |ags in t|he Statu|
|00001b40| 73 20 72 65 67 69 73 74 | 65 72 20 6d 61 74 63 68 |s regist|er match|
|00001b50| 20 74 68 65 20 63 6f 6e | 64 69 74 69 6f 6e 20 69 | the con|dition i|
|00001b60| 6d 70 6c 69 65 64 0d 0a | 62 79 20 74 68 65 20 6f |mplied..|by the o|
|00001b70| 70 65 72 61 74 6f 72 2e | 20 54 68 65 20 73 74 61 |perator.| The sta|
|00001b80| 74 75 73 20 66 6c 61 67 | 73 20 77 68 69 63 68 20 |tus flag|s which |
|00001b90| 6d 75 73 74 20 62 65 20 | 73 65 74 2f 72 65 73 65 |must be |set/rese|
|00001ba0| 74 20 61 72 65 0d 0a 6c | 69 73 74 65 64 20 69 6e |t are..l|isted in|
|00001bb0| 20 74 68 65 20 69 6e 74 | 72 6f 64 75 63 74 6f 72 | the int|roductor|
|00001bc0| 79 20 74 65 78 74 20 73 | 65 63 74 69 6f 6e 2e 0d |y text s|ection..|
|00001bd0| 0a 09 59 6f 75 20 6d 75 | 73 74 20 73 75 70 70 6c |..You mu|st suppl|
|00001be0| 79 20 61 6e 20 61 62 73 | 6f 6c 75 74 65 20 6d 65 |y an abs|olute me|
|00001bf0| 6d 6f 72 79 20 61 64 64 | 72 65 73 73 20 28 6f 72 |mory add|ress (or|
|00001c00| 20 61 73 73 65 6d 62 6c | 65 72 0d 0a 6c 61 62 65 | assembl|er..labe|
|00001c10| 6c 20 65 74 63 29 20 61 | 6e 64 20 74 68 65 20 61 |l etc) a|nd the a|
|00001c20| 73 73 65 6d 62 6c 65 72 | 20 61 75 74 6f 6d 61 74 |ssembler| automat|
|00001c30| 69 63 61 6c 6c 79 20 63 | 61 6c 63 75 6c 61 74 65 |ically c|alculate|
|00001c40| 73 20 74 68 65 0d 0a 72 | 65 71 75 69 72 65 64 20 |s the..r|equired |
|00001c50| 50 43 2d 72 65 6c 61 74 | 69 76 65 20 6f 66 66 73 |PC-relat|ive offs|
|00001c60| 65 74 2e 20 41 73 20 74 | 68 69 73 20 69 6e 73 74 |et. As t|his inst|
|00001c70| 72 75 63 74 69 6f 6e 20 | 65 6e 63 6f 64 65 73 20 |ruction |encodes |
|00001c80| 74 68 65 0d 0a 6f 66 66 | 73 65 74 20 69 6e 20 61 |the..off|set in a|
|00001c90| 20 73 69 6e 67 6c 65 20 | 62 79 74 65 20 79 6f 75 | single |byte you|
|00001ca0| 20 63 61 6e 20 6f 6e 6c | 79 20 6a 75 6d 70 20 74 | can onl|y jump t|
|00001cb0| 6f 20 61 64 64 72 65 73 | 73 65 73 20 77 68 69 63 |o addres|ses whic|
|00001cc0| 68 20 61 72 65 0d 0a 77 | 69 74 68 69 6e 20 61 70 |h are..w|ithin ap|
|00001cd0| 70 72 6f 78 69 6d 61 74 | 65 6c 79 20 31 32 37 20 |proximat|ely 127 |
|00001ce0| 62 79 74 65 73 20 66 72 | 6f 6d 20 74 68 65 20 63 |bytes fr|om the c|
|00001cf0| 75 72 72 65 6e 74 20 69 | 6e 73 74 72 75 63 74 69 |urrent i|nstructi|
|00001d00| 6f 6e 2e 0d 0a 1a 01 40 | 09 05 b4 42 4d 49 c3 42 |on.....@|...BMI.B|
|00001d10| 72 61 6e 63 68 20 6f 6e | 20 63 6f 6e 64 69 74 69 |ranch on| conditi|
|00001d20| 6f 6e 20 74 6f 20 61 20 | 70 72 6f 67 72 61 6d 20 |on to a |program |
|00001d30| 72 65 6c 61 74 69 76 65 | 20 61 64 64 72 65 73 73 |relative| address|
|00001d40| 20 69 66 20 74 68 65 20 | 63 75 72 72 65 6e 74 0d | if the |current.|
|00001d50| 0a 73 74 61 74 75 73 20 | 66 6c 61 67 73 20 69 6e |.status |flags in|
|00001d60| 20 74 68 65 20 53 74 61 | 74 75 73 20 72 65 67 69 | the Sta|tus regi|
|00001d70| 73 74 65 72 20 6d 61 74 | 63 68 20 74 68 65 20 63 |ster mat|ch the c|
|00001d80| 6f 6e 64 69 74 69 6f 6e | 20 69 6d 70 6c 69 65 64 |ondition| implied|
|00001d90| 0d 0a 62 79 20 74 68 65 | 20 6f 70 65 72 61 74 6f |..by the| operato|
|00001da0| 72 2e 20 54 68 65 20 73 | 74 61 74 75 73 20 66 6c |r. The s|tatus fl|
|00001db0| 61 67 73 20 77 68 69 63 | 68 20 6d 75 73 74 20 62 |ags whic|h must b|
|00001dc0| 65 20 73 65 74 2f 72 65 | 73 65 74 20 61 72 65 0d |e set/re|set are.|
|00001dd0| 0a 6c 69 73 74 65 64 20 | 69 6e 20 74 68 65 20 69 |.listed |in the i|
|00001de0| 6e 74 72 6f 64 75 63 74 | 6f 72 79 20 74 65 78 74 |ntroduct|ory text|
|00001df0| 20 73 65 63 74 69 6f 6e | 2e 0d 0a 09 59 6f 75 20 | section|....You |
|00001e00| 6d 75 73 74 20 73 75 70 | 70 6c 79 20 61 6e 20 61 |must sup|ply an a|
|00001e10| 62 73 6f 6c 75 74 65 20 | 6d 65 6d 6f 72 79 20 61 |bsolute |memory a|
|00001e20| 64 64 72 65 73 73 20 28 | 6f 72 20 61 73 73 65 6d |ddress (|or assem|
|00001e30| 62 6c 65 72 0d 0a 6c 61 | 62 65 6c 20 65 74 63 29 |bler..la|bel etc)|
|00001e40| 20 61 6e 64 20 74 68 65 | 20 61 73 73 65 6d 62 6c | and the| assembl|
|00001e50| 65 72 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |er autom|atically|
|00001e60| 20 63 61 6c 63 75 6c 61 | 74 65 73 20 74 68 65 0d | calcula|tes the.|
|00001e70| 0a 72 65 71 75 69 72 65 | 64 20 50 43 2d 72 65 6c |.require|d PC-rel|
|00001e80| 61 74 69 76 65 20 6f 66 | 66 73 65 74 2e 20 41 73 |ative of|fset. As|
|00001e90| 20 74 68 69 73 20 69 6e | 73 74 72 75 63 74 69 6f | this in|structio|
|00001ea0| 6e 20 65 6e 63 6f 64 65 | 73 20 74 68 65 0d 0a 6f |n encode|s the..o|
|00001eb0| 66 66 73 65 74 20 69 6e | 20 61 20 73 69 6e 67 6c |ffset in| a singl|
|00001ec0| 65 20 62 79 74 65 20 79 | 6f 75 20 63 61 6e 20 6f |e byte y|ou can o|
|00001ed0| 6e 6c 79 20 6a 75 6d 70 | 20 74 6f 20 61 64 64 72 |nly jump| to addr|
|00001ee0| 65 73 73 65 73 20 77 68 | 69 63 68 20 61 72 65 0d |esses wh|ich are.|
|00001ef0| 0a 77 69 74 68 69 6e 20 | 61 70 70 72 6f 78 69 6d |.within |approxim|
|00001f00| 61 74 65 6c 79 20 31 32 | 37 20 62 79 74 65 73 20 |ately 12|7 bytes |
|00001f10| 66 72 6f 6d 20 74 68 65 | 20 63 75 72 72 65 6e 74 |from the| current|
|00001f20| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 2e 0d 0a 1a | instruc|tion....|
|00001f30| 01 40 09 05 b4 42 4e 45 | c3 42 72 61 6e 63 68 20 |.@...BNE|.Branch |
|00001f40| 6f 6e 20 63 6f 6e 64 69 | 74 69 6f 6e 20 74 6f 20 |on condi|tion to |
|00001f50| 61 20 70 72 6f 67 72 61 | 6d 20 72 65 6c 61 74 69 |a progra|m relati|
|00001f60| 76 65 20 61 64 64 72 65 | 73 73 20 69 66 20 74 68 |ve addre|ss if th|
|00001f70| 65 20 63 75 72 72 65 6e | 74 0d 0a 73 74 61 74 75 |e curren|t..statu|
|00001f80| 73 20 66 6c 61 67 73 20 | 69 6e 20 74 68 65 20 53 |s flags |in the S|
|00001f90| 74 61 74 75 73 20 72 65 | 67 69 73 74 65 72 20 6d |tatus re|gister m|
|00001fa0| 61 74 63 68 20 74 68 65 | 20 63 6f 6e 64 69 74 69 |atch the| conditi|
|00001fb0| 6f 6e 20 69 6d 70 6c 69 | 65 64 0d 0a 62 79 20 74 |on impli|ed..by t|
|00001fc0| 68 65 20 6f 70 65 72 61 | 74 6f 72 2e 20 54 68 65 |he opera|tor. The|
|00001fd0| 20 73 74 61 74 75 73 20 | 66 6c 61 67 73 20 77 68 | status |flags wh|
|00001fe0| 69 63 68 20 6d 75 73 74 | 20 62 65 20 73 65 74 2f |ich must| be set/|
|00001ff0| 72 65 73 65 74 20 61 72 | 65 0d 0a 6c 69 73 74 65 |reset ar|e..liste|
|00002000| 64 20 69 6e 20 74 68 65 | 20 69 6e 74 72 6f 64 75 |d in the| introdu|
|00002010| 63 74 6f 72 79 20 74 65 | 78 74 20 73 65 63 74 69 |ctory te|xt secti|
|00002020| 6f 6e 2e 0d 0a 09 59 6f | 75 20 6d 75 73 74 20 73 |on....Yo|u must s|
|00002030| 75 70 70 6c 79 20 61 6e | 20 61 62 73 6f 6c 75 74 |upply an| absolut|
|00002040| 65 20 6d 65 6d 6f 72 79 | 20 61 64 64 72 65 73 73 |e memory| address|
|00002050| 20 28 6f 72 20 61 73 73 | 65 6d 62 6c 65 72 0d 0a | (or ass|embler..|
|00002060| 6c 61 62 65 6c 20 65 74 | 63 29 20 61 6e 64 20 74 |label et|c) and t|
|00002070| 68 65 20 61 73 73 65 6d | 62 6c 65 72 20 61 75 74 |he assem|bler aut|
|00002080| 6f 6d 61 74 69 63 61 6c | 6c 79 20 63 61 6c 63 75 |omatical|ly calcu|
|00002090| 6c 61 74 65 73 20 74 68 | 65 0d 0a 72 65 71 75 69 |lates th|e..requi|
|000020a0| 72 65 64 20 50 43 2d 72 | 65 6c 61 74 69 76 65 20 |red PC-r|elative |
|000020b0| 6f 66 66 73 65 74 2e 20 | 41 73 20 74 68 69 73 20 |offset. |As this |
|000020c0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 65 6e 63 6f |instruct|ion enco|
|000020d0| 64 65 73 20 74 68 65 0d | 0a 6f 66 66 73 65 74 20 |des the.|.offset |
|000020e0| 69 6e 20 61 20 73 69 6e | 67 6c 65 20 62 79 74 65 |in a sin|gle byte|
|000020f0| 20 79 6f 75 20 63 61 6e | 20 6f 6e 6c 79 20 6a 75 | you can| only ju|
|00002100| 6d 70 20 74 6f 20 61 64 | 64 72 65 73 73 65 73 20 |mp to ad|dresses |
|00002110| 77 68 69 63 68 20 61 72 | 65 0d 0a 77 69 74 68 69 |which ar|e..withi|
|00002120| 6e 20 61 70 70 72 6f 78 | 69 6d 61 74 65 6c 79 20 |n approx|imately |
|00002130| 31 32 37 20 62 79 74 65 | 73 20 66 72 6f 6d 20 74 |127 byte|s from t|
|00002140| 68 65 20 63 75 72 72 65 | 6e 74 20 69 6e 73 74 72 |he curre|nt instr|
|00002150| 75 63 74 69 6f 6e 2e 0d | 0a 1a 01 40 09 05 b4 42 |uction..|...@...B|
|00002160| 50 4c c3 42 72 61 6e 63 | 68 20 6f 6e 20 63 6f 6e |PL.Branc|h on con|
|00002170| 64 69 74 69 6f 6e 20 74 | 6f 20 61 20 70 72 6f 67 |dition t|o a prog|
|00002180| 72 61 6d 20 72 65 6c 61 | 74 69 76 65 20 61 64 64 |ram rela|tive add|
|00002190| 72 65 73 73 20 69 66 20 | 74 68 65 20 63 75 72 72 |ress if |the curr|
|000021a0| 65 6e 74 0d 0a 73 74 61 | 74 75 73 20 66 6c 61 67 |ent..sta|tus flag|
|000021b0| 73 20 69 6e 20 74 68 65 | 20 53 74 61 74 75 73 20 |s in the| Status |
|000021c0| 72 65 67 69 73 74 65 72 | 20 6d 61 74 63 68 20 74 |register| match t|
|000021d0| 68 65 20 63 6f 6e 64 69 | 74 69 6f 6e 20 69 6d 70 |he condi|tion imp|
|000021e0| 6c 69 65 64 0d 0a 62 79 | 20 74 68 65 20 6f 70 65 |lied..by| the ope|
|000021f0| 72 61 74 6f 72 2e 20 54 | 68 65 20 73 74 61 74 75 |rator. T|he statu|
|00002200| 73 20 66 6c 61 67 73 20 | 77 68 69 63 68 20 6d 75 |s flags |which mu|
|00002210| 73 74 20 62 65 20 73 65 | 74 2f 72 65 73 65 74 20 |st be se|t/reset |
|00002220| 61 72 65 0d 0a 6c 69 73 | 74 65 64 20 69 6e 20 74 |are..lis|ted in t|
|00002230| 68 65 20 69 6e 74 72 6f | 64 75 63 74 6f 72 79 20 |he intro|ductory |
|00002240| 74 65 78 74 20 73 65 63 | 74 69 6f 6e 2e 0d 0a 09 |text sec|tion....|
|00002250| 59 6f 75 20 6d 75 73 74 | 20 73 75 70 70 6c 79 20 |You must| supply |
|00002260| 61 6e 20 61 62 73 6f 6c | 75 74 65 20 6d 65 6d 6f |an absol|ute memo|
|00002270| 72 79 20 61 64 64 72 65 | 73 73 20 28 6f 72 20 61 |ry addre|ss (or a|
|00002280| 73 73 65 6d 62 6c 65 72 | 0d 0a 6c 61 62 65 6c 20 |ssembler|..label |
|00002290| 65 74 63 29 20 61 6e 64 | 20 74 68 65 20 61 73 73 |etc) and| the ass|
|000022a0| 65 6d 62 6c 65 72 20 61 | 75 74 6f 6d 61 74 69 63 |embler a|utomatic|
|000022b0| 61 6c 6c 79 20 63 61 6c | 63 75 6c 61 74 65 73 20 |ally cal|culates |
|000022c0| 74 68 65 0d 0a 72 65 71 | 75 69 72 65 64 20 50 43 |the..req|uired PC|
|000022d0| 2d 72 65 6c 61 74 69 76 | 65 20 6f 66 66 73 65 74 |-relativ|e offset|
|000022e0| 2e 20 41 73 20 74 68 69 | 73 20 69 6e 73 74 72 75 |. As thi|s instru|
|000022f0| 63 74 69 6f 6e 20 65 6e | 63 6f 64 65 73 20 74 68 |ction en|codes th|
|00002300| 65 0d 0a 6f 66 66 73 65 | 74 20 69 6e 20 61 20 73 |e..offse|t in a s|
|00002310| 69 6e 67 6c 65 20 62 79 | 74 65 20 79 6f 75 20 63 |ingle by|te you c|
|00002320| 61 6e 20 6f 6e 6c 79 20 | 6a 75 6d 70 20 74 6f 20 |an only |jump to |
|00002330| 61 64 64 72 65 73 73 65 | 73 20 77 68 69 63 68 20 |addresse|s which |
|00002340| 61 72 65 0d 0a 77 69 74 | 68 69 6e 20 61 70 70 72 |are..wit|hin appr|
|00002350| 6f 78 69 6d 61 74 65 6c | 79 20 31 32 37 20 62 79 |oximatel|y 127 by|
|00002360| 74 65 73 20 66 72 6f 6d | 20 74 68 65 20 63 75 72 |tes from| the cur|
|00002370| 72 65 6e 74 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |rent ins|truction|
|00002380| 2e 0d 0a 1a 01 40 09 05 | b4 42 52 41 c3 42 72 61 |.....@..|.BRA.Bra|
|00002390| 6e 63 68 20 6f 6e 20 63 | 6f 6e 64 69 74 69 6f 6e |nch on c|ondition|
|000023a0| 20 74 6f 20 61 20 70 72 | 6f 67 72 61 6d 20 72 65 | to a pr|ogram re|
|000023b0| 6c 61 74 69 76 65 20 61 | 64 64 72 65 73 73 20 69 |lative a|ddress i|
|000023c0| 66 20 74 68 65 20 63 75 | 72 72 65 6e 74 0d 0a 73 |f the cu|rrent..s|
|000023d0| 74 61 74 75 73 20 66 6c | 61 67 73 20 69 6e 20 74 |tatus fl|ags in t|
|000023e0| 68 65 20 53 74 61 74 75 | 73 20 72 65 67 69 73 74 |he Statu|s regist|
|000023f0| 65 72 20 6d 61 74 63 68 | 20 74 68 65 20 63 6f 6e |er match| the con|
|00002400| 64 69 74 69 6f 6e 20 69 | 6d 70 6c 69 65 64 0d 0a |dition i|mplied..|
|00002410| 62 79 20 74 68 65 20 6f | 70 65 72 61 74 6f 72 2e |by the o|perator.|
|00002420| 20 54 68 65 20 73 74 61 | 74 75 73 20 66 6c 61 67 | The sta|tus flag|
|00002430| 73 20 77 68 69 63 68 20 | 6d 75 73 74 20 62 65 20 |s which |must be |
|00002440| 73 65 74 2f 72 65 73 65 | 74 20 61 72 65 0d 0a 6c |set/rese|t are..l|
|00002450| 69 73 74 65 64 20 69 6e | 20 74 68 65 20 69 6e 74 |isted in| the int|
|00002460| 72 6f 64 75 63 74 6f 72 | 79 20 74 65 78 74 20 73 |roductor|y text s|
|00002470| 65 63 74 69 6f 6e 2e 0d | 0a 09 59 6f 75 20 6d 75 |ection..|..You mu|
|00002480| 73 74 20 73 75 70 70 6c | 79 20 61 6e 20 61 62 73 |st suppl|y an abs|
|00002490| 6f 6c 75 74 65 20 6d 65 | 6d 6f 72 79 20 61 64 64 |olute me|mory add|
|000024a0| 72 65 73 73 20 28 6f 72 | 20 61 73 73 65 6d 62 6c |ress (or| assembl|
|000024b0| 65 72 0d 0a 6c 61 62 65 | 6c 20 65 74 63 29 20 61 |er..labe|l etc) a|
|000024c0| 6e 64 20 74 68 65 20 61 | 73 73 65 6d 62 6c 65 72 |nd the a|ssembler|
|000024d0| 20 61 75 74 6f 6d 61 74 | 69 63 61 6c 6c 79 20 63 | automat|ically c|
|000024e0| 61 6c 63 75 6c 61 74 65 | 73 20 74 68 65 0d 0a 72 |alculate|s the..r|
|000024f0| 65 71 75 69 72 65 64 20 | 50 43 2d 72 65 6c 61 74 |equired |PC-relat|
|00002500| 69 76 65 20 6f 66 66 73 | 65 74 2e 20 41 73 20 74 |ive offs|et. As t|
|00002510| 68 69 73 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 20 |his inst|ruction |
|00002520| 65 6e 63 6f 64 65 73 20 | 74 68 65 0d 0a 6f 66 66 |encodes |the..off|
|00002530| 73 65 74 20 69 6e 20 61 | 20 73 69 6e 67 6c 65 20 |set in a| single |
|00002540| 62 79 74 65 20 79 6f 75 | 20 63 61 6e 20 6f 6e 6c |byte you| can onl|
|00002550| 79 20 6a 75 6d 70 20 74 | 6f 20 61 64 64 72 65 73 |y jump t|o addres|
|00002560| 73 65 73 20 77 68 69 63 | 68 20 61 72 65 0d 0a 77 |ses whic|h are..w|
|00002570| 69 74 68 69 6e 20 61 70 | 70 72 6f 78 69 6d 61 74 |ithin ap|proximat|
|00002580| 65 6c 79 20 31 32 37 20 | 62 79 74 65 73 20 66 72 |ely 127 |bytes fr|
|00002590| 6f 6d 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 69 |om the c|urrent i|
|000025a0| 6e 73 74 72 75 63 74 69 | 6f 6e 2e 0d 0a 1a 01 41 |nstructi|on.....A|
|000025b0| 03 05 b4 42 52 4b c3 53 | 6f 66 74 77 61 72 65 20 |...BRK.S|oftware |
|000025c0| 69 6e 74 65 72 72 75 70 | 74 2e 20 43 61 75 73 65 |interrup|t. Cause|
|000025d0| 73 20 74 68 65 20 70 72 | 6f 63 65 73 73 6f 72 20 |s the pr|ocessor |
|000025e0| 74 6f 20 65 78 65 63 75 | 74 65 20 74 68 65 20 69 |to execu|te the i|
|000025f0| 6e 74 65 72 72 75 70 74 | 0d 0a 72 6f 75 74 69 6e |nterrupt|..routin|
|00002600| 65 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 42 52 |e throug|h the BR|
|00002610| 4b 20 69 6e 74 65 72 72 | 75 70 74 20 76 65 63 74 |K interr|upt vect|
|00002620| 6f 72 20 28 73 65 65 20 | 49 4e 54 45 52 52 55 50 |or (see |INTERRUP|
|00002630| 54 20 73 65 63 74 69 6f | 6e 0d 0a 61 62 6f 76 65 |T sectio|n..above|
|00002640| 29 2e 0d 0a 1a 01 40 09 | 05 b4 42 56 43 c3 42 72 |).....@.|..BVC.Br|
|00002650| 61 6e 63 68 20 6f 6e 20 | 63 6f 6e 64 69 74 69 6f |anch on |conditio|
|00002660| 6e 20 74 6f 20 61 20 70 | 72 6f 67 72 61 6d 20 72 |n to a p|rogram r|
|00002670| 65 6c 61 74 69 76 65 20 | 61 64 64 72 65 73 73 20 |elative |address |
|00002680| 69 66 20 74 68 65 20 63 | 75 72 72 65 6e 74 0d 0a |if the c|urrent..|
|00002690| 73 74 61 74 75 73 20 66 | 6c 61 67 73 20 69 6e 20 |status f|lags in |
|000026a0| 74 68 65 20 53 74 61 74 | 75 73 20 72 65 67 69 73 |the Stat|us regis|
|000026b0| 74 65 72 20 6d 61 74 63 | 68 20 74 68 65 20 63 6f |ter matc|h the co|
|000026c0| 6e 64 69 74 69 6f 6e 20 | 69 6d 70 6c 69 65 64 0d |ndition |implied.|
|000026d0| 0a 62 79 20 74 68 65 20 | 6f 70 65 72 61 74 6f 72 |.by the |operator|
|000026e0| 2e 20 54 68 65 20 73 74 | 61 74 75 73 20 66 6c 61 |. The st|atus fla|
|000026f0| 67 73 20 77 68 69 63 68 | 20 6d 75 73 74 20 62 65 |gs which| must be|
|00002700| 20 73 65 74 2f 72 65 73 | 65 74 20 61 72 65 0d 0a | set/res|et are..|
|00002710| 6c 69 73 74 65 64 20 69 | 6e 20 74 68 65 20 69 6e |listed i|n the in|
|00002720| 74 72 6f 64 75 63 74 6f | 72 79 20 74 65 78 74 20 |troducto|ry text |
|00002730| 73 65 63 74 69 6f 6e 2e | 0d 0a 09 59 6f 75 20 6d |section.|...You m|
|00002740| 75 73 74 20 73 75 70 70 | 6c 79 20 61 6e 20 61 62 |ust supp|ly an ab|
|00002750| 73 6f 6c 75 74 65 20 6d | 65 6d 6f 72 79 20 61 64 |solute m|emory ad|
|00002760| 64 72 65 73 73 20 28 6f | 72 20 61 73 73 65 6d 62 |dress (o|r assemb|
|00002770| 6c 65 72 0d 0a 6c 61 62 | 65 6c 20 65 74 63 29 20 |ler..lab|el etc) |
|00002780| 61 6e 64 20 74 68 65 20 | 61 73 73 65 6d 62 6c 65 |and the |assemble|
|00002790| 72 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 20 |r automa|tically |
|000027a0| 63 61 6c 63 75 6c 61 74 | 65 73 20 74 68 65 0d 0a |calculat|es the..|
|000027b0| 72 65 71 75 69 72 65 64 | 20 50 43 2d 72 65 6c 61 |required| PC-rela|
|000027c0| 74 69 76 65 20 6f 66 66 | 73 65 74 2e 20 41 73 20 |tive off|set. As |
|000027d0| 74 68 69 73 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |this ins|truction|
|000027e0| 20 65 6e 63 6f 64 65 73 | 20 74 68 65 0d 0a 6f 66 | encodes| the..of|
|000027f0| 66 73 65 74 20 69 6e 20 | 61 20 73 69 6e 67 6c 65 |fset in |a single|
|00002800| 20 62 79 74 65 20 79 6f | 75 20 63 61 6e 20 6f 6e | byte yo|u can on|
|00002810| 6c 79 20 6a 75 6d 70 20 | 74 6f 20 61 64 64 72 65 |ly jump |to addre|
|00002820| 73 73 65 73 20 77 68 69 | 63 68 20 61 72 65 0d 0a |sses whi|ch are..|
|00002830| 77 69 74 68 69 6e 20 61 | 70 70 72 6f 78 69 6d 61 |within a|pproxima|
|00002840| 74 65 6c 79 20 31 32 37 | 20 62 79 74 65 73 20 66 |tely 127| bytes f|
|00002850| 72 6f 6d 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |rom the |current |
|00002860| 69 6e 73 74 72 75 63 74 | 69 6f 6e 2e 0d 0a 1a 01 |instruct|ion.....|
|00002870| 40 09 05 b4 42 56 53 c3 | 42 72 61 6e 63 68 20 6f |@...BVS.|Branch o|
|00002880| 6e 20 63 6f 6e 64 69 74 | 69 6f 6e 20 74 6f 20 61 |n condit|ion to a|
|00002890| 20 70 72 6f 67 72 61 6d | 20 72 65 6c 61 74 69 76 | program| relativ|
|000028a0| 65 20 61 64 64 72 65 73 | 73 20 69 66 20 74 68 65 |e addres|s if the|
|000028b0| 20 63 75 72 72 65 6e 74 | 0d 0a 73 74 61 74 75 73 | current|..status|
|000028c0| 20 66 6c 61 67 73 20 69 | 6e 20 74 68 65 20 53 74 | flags i|n the St|
|000028d0| 61 74 75 73 20 72 65 67 | 69 73 74 65 72 20 6d 61 |atus reg|ister ma|
|000028e0| 74 63 68 20 74 68 65 20 | 63 6f 6e 64 69 74 69 6f |tch the |conditio|
|000028f0| 6e 20 69 6d 70 6c 69 65 | 64 0d 0a 62 79 20 74 68 |n implie|d..by th|
|00002900| 65 20 6f 70 65 72 61 74 | 6f 72 2e 20 54 68 65 20 |e operat|or. The |
|00002910| 73 74 61 74 75 73 20 66 | 6c 61 67 73 20 77 68 69 |status f|lags whi|
|00002920| 63 68 20 6d 75 73 74 20 | 62 65 20 73 65 74 2f 72 |ch must |be set/r|
|00002930| 65 73 65 74 20 61 72 65 | 0d 0a 6c 69 73 74 65 64 |eset are|..listed|
|00002940| 20 69 6e 20 74 68 65 20 | 69 6e 74 72 6f 64 75 63 | in the |introduc|
|00002950| 74 6f 72 79 20 74 65 78 | 74 20 73 65 63 74 69 6f |tory tex|t sectio|
|00002960| 6e 2e 0d 0a 09 59 6f 75 | 20 6d 75 73 74 20 73 75 |n....You| must su|
|00002970| 70 70 6c 79 20 61 6e 20 | 61 62 73 6f 6c 75 74 65 |pply an |absolute|
|00002980| 20 6d 65 6d 6f 72 79 20 | 61 64 64 72 65 73 73 20 | memory |address |
|00002990| 28 6f 72 20 61 73 73 65 | 6d 62 6c 65 72 0d 0a 6c |(or asse|mbler..l|
|000029a0| 61 62 65 6c 20 65 74 63 | 29 20 61 6e 64 20 74 68 |abel etc|) and th|
|000029b0| 65 20 61 73 73 65 6d 62 | 6c 65 72 20 61 75 74 6f |e assemb|ler auto|
|000029c0| 6d 61 74 69 63 61 6c 6c | 79 20 63 61 6c 63 75 6c |maticall|y calcul|
|000029d0| 61 74 65 73 20 74 68 65 | 0d 0a 72 65 71 75 69 72 |ates the|..requir|
|000029e0| 65 64 20 50 43 2d 72 65 | 6c 61 74 69 76 65 20 6f |ed PC-re|lative o|
|000029f0| 66 66 73 65 74 2e 20 41 | 73 20 74 68 69 73 20 69 |ffset. A|s this i|
|00002a00| 6e 73 74 72 75 63 74 69 | 6f 6e 20 65 6e 63 6f 64 |nstructi|on encod|
|00002a10| 65 73 20 74 68 65 0d 0a | 6f 66 66 73 65 74 20 69 |es the..|offset i|
|00002a20| 6e 20 61 20 73 69 6e 67 | 6c 65 20 62 79 74 65 20 |n a sing|le byte |
|00002a30| 79 6f 75 20 63 61 6e 20 | 6f 6e 6c 79 20 6a 75 6d |you can |only jum|
|00002a40| 70 20 74 6f 20 61 64 64 | 72 65 73 73 65 73 20 77 |p to add|resses w|
|00002a50| 68 69 63 68 20 61 72 65 | 0d 0a 77 69 74 68 69 6e |hich are|..within|
|00002a60| 20 61 70 70 72 6f 78 69 | 6d 61 74 65 6c 79 20 31 | approxi|mately 1|
|00002a70| 32 37 20 62 79 74 65 73 | 20 66 72 6f 6d 20 74 68 |27 bytes| from th|
|00002a80| 65 20 63 75 72 72 65 6e | 74 20 69 6e 73 74 72 75 |e curren|t instru|
|00002a90| 63 74 69 6f 6e 2e 0d 0a | 1a 01 40 03 06 b4 43 41 |ction...|..@...CA|
|00002aa0| 4c 4c c3 4a 75 6d 70 73 | 20 74 6f 20 61 20 73 75 |LL.Jumps| to a su|
|00002ab0| 62 72 6f 75 74 69 6e 65 | 20 61 64 64 72 65 73 73 |broutine| address|
|00002ac0| 20 61 66 74 65 72 20 73 | 61 76 69 6e 67 20 74 68 | after s|aving th|
|00002ad0| 65 20 6f 72 69 67 69 6e | 61 6c 20 50 43 20 76 61 |e origin|al PC va|
|00002ae0| 6c 75 65 0d 0a 6f 6e 74 | 6f 20 74 68 65 20 73 74 |lue..ont|o the st|
|00002af0| 61 63 6b 20 69 6e 20 70 | 72 65 70 61 72 61 74 69 |ack in p|reparati|
|00002b00| 6f 6e 20 66 6f 72 20 74 | 68 65 20 72 65 74 75 72 |on for t|he retur|
|00002b10| 6e 20 66 72 6f 6d 20 74 | 68 65 20 73 75 62 72 6f |n from t|he subro|
|00002b20| 75 74 69 6e 65 0d 0a 75 | 73 69 6e 67 20 74 68 65 |utine..u|sing the|
|00002b30| 20 52 45 54 20 69 6e 73 | 74 72 75 63 74 69 6f 6e | RET ins|truction|
|00002b40| 2e 0d 0a 1a 01 3e 02 06 | b4 43 42 4e 45 c3 43 6f |.....>..|.CBNE.Co|
|00002b50| 6d 70 61 72 65 20 74 68 | 65 20 41 20 72 65 67 69 |mpare th|e A regi|
|00002b60| 73 74 65 72 20 77 69 74 | 68 20 74 68 65 20 63 6f |ster wit|h the co|
|00002b70| 6e 74 65 6e 74 73 20 6f | 66 20 28 64 70 29 20 6f |ntents o|f (dp) o|
|00002b80| 72 20 28 64 70 2b 58 29 | 20 61 6e 64 0d 0a 74 68 |r (dp+X)| and..th|
|00002b90| 65 6e 20 62 72 61 6e 63 | 68 20 69 66 20 6e 6f 74 |en branc|h if not|
|00002ba0| 20 65 71 75 61 6c 2e 0d | 0a 1a 01 2c 01 06 b4 43 | equal..|...,...C|
|00002bb0| 4c 52 31 c3 43 6c 65 61 | 72 20 64 69 72 65 63 74 |LR1.Clea|r direct|
|00002bc0| 20 70 61 67 65 20 62 69 | 74 2e 0d 0a 1a 01 2c 01 | page bi|t.....,.|
|00002bd0| 06 b4 43 4c 52 43 c3 43 | 6c 65 61 72 20 63 61 72 |..CLRC.C|lear car|
|00002be0| 72 79 20 66 6c 61 67 2e | 20 54 68 65 20 43 20 66 |ry flag.| The C f|
|00002bf0| 6c 61 67 20 69 73 20 73 | 65 74 20 74 6f 20 27 30 |lag is s|et to '0|
|00002c00| 27 2e 0d 0a 1a 01 2c 01 | 06 b4 43 4c 52 50 c3 43 |'.....,.|..CLRP.C|
|00002c10| 6c 65 61 72 20 44 69 72 | 65 63 74 20 50 61 67 65 |lear Dir|ect Page|
|00002c20| 20 46 6c 61 67 2e 0d 0a | 1a 01 2c 01 06 b4 43 4c | Flag...|..,...CL|
|00002c30| 52 56 c3 43 6c 65 61 72 | 20 4f 76 65 72 66 6c 6f |RV.Clear| Overflo|
|00002c40| 77 20 61 6e 64 20 48 61 | 6c 66 20 63 61 72 72 79 |w and Ha|lf carry|
|00002c50| 20 66 6c 61 67 73 2e 0d | 0a 1a 01 41 03 05 b4 43 | flags..|...A...C|
|00002c60| 4d 50 c3 43 6f 6d 70 61 | 72 65 20 6d 65 6d 6f 72 |MP.Compa|re memor|
|00002c70| 79 20 62 79 74 65 20 28 | 6f 72 20 69 6d 6d 65 64 |y byte (|or immed|
|00002c80| 69 61 74 65 20 64 61 74 | 61 29 20 61 6e 64 20 74 |iate dat|a) and t|
|00002c90| 68 65 20 41 20 72 65 67 | 69 73 74 65 72 20 62 79 |he A reg|ister by|
|00002ca0| 0d 0a 73 75 62 74 72 61 | 63 74 69 6e 67 20 74 68 |..subtra|cting th|
|00002cb0| 65 20 76 61 6c 75 65 20 | 66 72 6f 6d 20 74 68 65 |e value |from the|
|00002cc0| 20 72 65 67 69 73 74 65 | 72 20 61 6e 64 20 64 69 | registe|r and di|
|00002cd0| 73 63 61 72 64 69 6e 67 | 20 74 68 65 20 72 65 73 |scarding| the res|
|00002ce0| 75 6c 74 0d 0a 61 66 74 | 65 72 20 73 65 74 74 69 |ult..aft|er setti|
|00002cf0| 6e 67 20 74 68 65 20 73 | 74 61 74 75 73 20 66 6c |ng the s|tatus fl|
|00002d00| 61 67 73 20 61 63 63 6f | 72 64 69 6e 67 20 74 6f |ags acco|rding to|
|00002d10| 20 74 68 65 20 72 65 73 | 75 6c 74 2e 0d 0a 1a 01 | the res|ult.....|
|00002d20| 3e 04 06 b4 43 4d 50 57 | c3 43 6f 6d 70 61 72 65 |>...CMPW|.Compare|
|00002d30| 20 74 68 65 20 63 6f 6e | 74 65 6e 74 73 20 6f 66 | the con|tents of|
|00002d40| 20 74 68 65 20 77 6f 72 | 64 20 70 6f 69 6e 74 65 | the wor|d pointe|
|00002d50| 64 20 74 6f 20 62 79 20 | 28 64 70 2b 31 29 28 64 |d to by |(dp+1)(d|
|00002d60| 70 29 20 61 6e 64 0d 0a | 74 68 65 20 59 41 20 70 |p) and..|the YA p|
|00002d70| 61 69 72 65 64 20 31 36 | 20 62 69 74 20 61 63 63 |aired 16| bit acc|
|00002d80| 75 6d 75 6c 61 74 6f 72 | 20 62 79 20 73 75 62 74 |umulator| by subt|
|00002d90| 72 61 63 74 69 6e 67 20 | 74 68 65 20 76 61 6c 75 |racting |the valu|
|00002da0| 65 20 66 72 6f 6d 0d 0a | 74 68 65 20 59 41 20 72 |e from..|the YA r|
|00002db0| 65 67 69 73 74 65 72 20 | 61 6e 64 20 64 69 73 63 |egister |and disc|
|00002dc0| 61 72 64 69 6e 67 20 74 | 68 65 20 72 65 73 75 6c |arding t|he resul|
|00002dd0| 74 20 61 66 74 65 72 20 | 73 65 74 74 69 6e 67 20 |t after |setting |
|00002de0| 74 68 65 0d 0a 73 74 61 | 74 75 73 20 66 6c 61 67 |the..sta|tus flag|
|00002df0| 73 20 61 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 74 |s accord|ing to t|
|00002e00| 68 65 20 72 65 73 75 6c | 74 2e 0d 0a 1a 01 2c 01 |he resul|t.....,.|
|00002e10| 05 b4 44 41 41 c3 44 65 | 63 69 6d 61 6c 20 61 64 |..DAA.De|cimal ad|
|00002e20| 6a 75 73 74 20 66 6f 72 | 20 61 64 64 69 74 69 6f |just for| additio|
|00002e30| 6e 2e 0d 0a 1a 01 2c 01 | 05 b4 44 41 53 c3 44 65 |n.....,.|..DAS.De|
|00002e40| 63 69 6d 61 6c 20 61 64 | 6a 75 73 74 20 66 6f 72 |cimal ad|just for|
|00002e50| 20 73 75 62 74 72 61 63 | 74 69 6f 6e 2e 0d 0a 1a | subtrac|tion....|
|00002e60| 01 37 01 06 b4 44 42 4e | 5a c3 44 65 63 72 65 6d |.7...DBN|Z.Decrem|
|00002e70| 65 6e 74 20 6d 65 6d 6f | 72 79 20 28 64 70 29 20 |ent memo|ry (dp) |
|00002e80| 6f 72 20 59 20 61 6e 64 | 20 74 68 65 6e 20 62 72 |or Y and| then br|
|00002e90| 61 6e 63 68 20 69 66 20 | 6e 6f 74 20 7a 65 72 6f |anch if |not zero|
|00002ea0| 2e 0d 0a 1a 01 3f 02 05 | b4 44 45 43 c3 44 65 63 |.....?..|.DEC.Dec|
|00002eb0| 72 65 6d 65 6e 74 20 6d | 65 6d 6f 72 79 20 62 79 |rement m|emory by|
|00002ec0| 74 65 2e 20 53 75 62 74 | 72 61 63 74 73 20 6f 6e |te. Subt|racts on|
|00002ed0| 65 20 66 72 6f 6d 20 74 | 68 65 20 73 70 65 63 69 |e from t|he speci|
|00002ee0| 66 69 65 64 20 6f 70 65 | 72 61 6e 64 0d 0a 61 6c |fied ope|rand..al|
|00002ef0| 73 6f 20 73 65 74 74 69 | 6e 67 20 74 68 65 20 73 |so setti|ng the s|
|00002f00| 74 61 74 75 73 20 66 6c | 61 67 73 20 61 63 63 6f |tatus fl|ags acco|
|00002f10| 72 64 69 6e 67 20 74 6f | 20 74 68 65 20 72 65 73 |rding to| the res|
|00002f20| 75 6c 74 2e 0d 0a 1a 01 | 2f 01 06 b4 44 45 43 57 |ult.....|/...DECW|
|00002f30| c3 44 65 63 72 65 6d 65 | 6e 74 20 74 68 65 20 7a |.Decreme|nt the z|
|00002f40| 65 72 6f 20 70 61 67 65 | 20 6d 65 6d 6f 72 79 20 |ero page| memory |
|00002f50| 70 61 69 72 20 28 64 70 | 2b 31 29 28 64 70 29 2e |pair (dp|+1)(dp).|
|00002f60| 0d 0a 1a 01 3d 01 04 b4 | 44 49 c3 43 6c 65 61 72 |....=...|DI.Clear|
|00002f70| 20 28 65 6e 61 62 6c 65 | 29 20 6d 61 73 6b 61 62 | (enable|) maskab|
|00002f80| 6c 65 20 69 6e 74 65 72 | 72 75 70 74 73 2e 20 54 |le inter|rupts. T|
|00002f90| 68 65 20 49 20 66 6c 61 | 67 20 69 73 20 73 65 74 |he I fla|g is set|
|00002fa0| 20 74 6f 20 27 30 27 2e | 0d 0a 1a 01 3b 04 05 b4 | to '0'.|....;...|
|00002fb0| 44 49 56 c3 44 69 76 69 | 64 65 20 28 31 36 20 62 |DIV.Divi|de (16 b|
|00002fc0| 69 74 20 2f 20 38 20 62 | 69 74 20 2c 6e 6f 20 73 |it / 8 b|it ,no s|
|00002fd0| 69 67 6e 29 20 74 68 65 | 20 64 69 76 69 64 65 6e |ign) the| dividen|
|00002fe0| 64 20 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 0d |d stored| in the.|
|00002ff0| 0a 59 41 20 72 65 67 69 | 73 74 65 72 20 62 79 20 |.YA regi|ster by |
|00003000| 74 68 65 20 64 69 76 69 | 73 6f 72 20 73 74 6f 72 |the divi|sor stor|
|00003010| 65 64 20 69 6e 20 74 68 | 65 20 58 20 72 65 67 69 |ed in th|e X regi|
|00003020| 73 74 65 72 2e 20 53 74 | 6f 72 65 0d 0a 74 68 65 |ster. St|ore..the|
|00003030| 20 71 75 6f 74 69 65 6e | 74 20 69 6e 20 74 68 65 | quotien|t in the|
|00003040| 20 41 20 72 65 67 69 73 | 74 65 72 20 61 6e 64 20 | A regis|ter and |
|00003050| 74 68 65 20 72 65 6d 61 | 69 6e 64 65 72 20 69 6e |the rema|inder in|
|00003060| 20 74 68 65 20 59 0d 0a | 72 65 67 69 73 74 65 72 | the Y..|register|
|00003070| 2e 0d 0a 1a 01 3c 01 04 | b4 45 49 c3 53 65 74 20 |.....<..|.EI.Set |
|00003080| 28 64 69 73 61 62 6c 65 | 29 20 6d 61 73 6b 61 62 |(disable|) maskab|
|00003090| 6c 65 20 69 6e 74 65 72 | 72 75 70 74 73 2e 20 54 |le inter|rupts. T|
|000030a0| 68 65 20 49 20 66 6c 61 | 67 20 69 73 20 73 65 74 |he I fla|g is set|
|000030b0| 20 74 6f 20 27 31 27 2e | 0d 0a 1a 01 41 02 05 b4 | to '1'.|....A...|
|000030c0| 45 4f 52 c3 4c 6f 67 69 | 63 61 6c 6c 79 20 65 78 |EOR.Logi|cally ex|
|000030d0| 63 6c 75 73 69 76 65 2d | 4f 52 20 61 20 6d 65 6d |clusive-|OR a mem|
|000030e0| 6f 72 79 20 62 79 74 65 | 20 28 6f 72 20 69 6d 6d |ory byte| (or imm|
|000030f0| 65 64 69 61 74 65 20 64 | 61 74 61 29 20 77 69 74 |ediate d|ata) wit|
|00003100| 68 20 74 68 65 0d 0a 41 | 20 72 65 67 69 73 74 65 |h the..A| registe|
|00003110| 72 20 61 6e 64 20 73 74 | 6f 72 65 20 74 68 65 20 |r and st|ore the |
|00003120| 72 65 73 75 6c 74 20 62 | 61 63 6b 20 69 6e 74 6f |result b|ack into|
|00003130| 20 41 2e 0d 0a 1a 01 3b | 02 05 b4 49 4e 43 c3 49 | A.....;|...INC.I|
|00003140| 6e 63 72 65 6d 65 6e 74 | 20 6d 65 6d 6f 72 79 20 |ncrement| memory |
|00003150| 62 79 74 65 2e 20 41 64 | 64 73 20 31 20 74 6f 20 |byte. Ad|ds 1 to |
|00003160| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 6f 70 |the spec|ified op|
|00003170| 65 72 61 6e 64 20 61 6c | 73 6f 0d 0a 73 65 74 74 |erand al|so..sett|
|00003180| 69 6e 67 20 74 68 65 20 | 73 74 61 74 75 73 20 66 |ing the |status f|
|00003190| 6c 61 67 73 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |lags acc|ording t|
|000031a0| 6f 20 74 68 65 20 72 65 | 73 75 6c 74 2e 0d 0a 1a |o the re|sult....|
|000031b0| 01 2f 01 06 b4 49 4e 43 | 57 c3 49 6e 63 72 65 6d |./...INC|W.Increm|
|000031c0| 65 6e 74 20 74 68 65 20 | 7a 65 72 6f 20 70 61 67 |ent the |zero pag|
|000031d0| 65 20 6d 65 6d 6f 72 79 | 20 70 61 69 72 20 28 64 |e memory| pair (d|
|000031e0| 70 2b 31 29 28 64 70 29 | 2e 0d 0a 1a 01 41 06 05 |p+1)(dp)|.....A..|
|000031f0| b4 4a 4d 50 c3 4a 75 6d | 70 20 74 6f 20 61 20 73 |.JMP.Jum|p to a s|
|00003200| 70 65 63 69 66 69 65 64 | 20 61 62 73 6f 6c 75 74 |pecified| absolut|
|00003210| 65 20 6d 65 6d 6f 72 79 | 20 61 64 64 72 65 73 73 |e memory| address|
|00003220| 2e 20 54 68 69 73 20 69 | 6e 73 74 72 75 63 74 69 |. This i|nstructi|
|00003230| 6f 6e 0d 0a 65 6e 61 62 | 6c 65 73 20 70 72 6f 67 |on..enab|les prog|
|00003240| 72 61 6d 20 65 78 65 63 | 75 74 69 6f 6e 20 74 6f |ram exec|ution to|
|00003250| 20 62 72 61 6e 63 68 20 | 74 6f 20 61 6e 79 20 61 | branch |to any a|
|00003260| 64 64 72 65 73 73 20 77 | 69 74 68 69 6e 20 74 68 |ddress w|ithin th|
|00003270| 65 20 36 34 4b 0d 0a 6d | 65 6d 6f 72 79 20 61 72 |e 64K..m|emory ar|
|00003280| 65 61 2e 0d 0a 09 59 6f | 75 20 6d 61 79 20 61 6c |ea....Yo|u may al|
|00003290| 73 6f 20 73 70 65 63 69 | 66 79 20 27 69 6e 64 69 |so speci|fy 'indi|
|000032a0| 72 65 63 74 27 20 61 64 | 64 72 65 73 73 65 73 2c |rect' ad|dresses,|
|000032b0| 20 77 68 65 72 65 62 79 | 20 74 68 65 0d 0a 63 6f | whereby| the..co|
|000032c0| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 20 73 70 |ntents o|f the sp|
|000032d0| 65 63 69 66 69 65 64 20 | 61 64 64 72 65 73 73 20 |ecified |address |
|000032e0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6a 75 6d |contains| the jum|
|000032f0| 70 20 61 64 64 72 65 73 | 73 20 70 6c 75 73 0d 0a |p addres|s plus..|
|00003300| 74 68 65 20 63 75 72 72 | 65 6e 74 20 76 6c 61 75 |the curr|ent vlau|
|00003310| 65 20 6f 66 20 74 68 65 | 20 58 20 72 65 67 69 73 |e of the| X regis|
|00003320| 74 65 72 2e 0d 0a 1a 01 | 41 02 05 b4 4c 53 52 c3 |ter.....|A...LSR.|
|00003330| 4c 6f 67 69 63 61 6c 20 | 73 68 69 66 74 20 61 20 |Logical |shift a |
|00003340| 6d 65 6d 6f 72 79 20 62 | 79 74 65 20 6f 72 20 61 |memory b|yte or a|
|00003350| 63 63 75 6d 75 6c 61 74 | 6f 72 20 6f 6e 65 20 62 |ccumulat|or one b|
|00003360| 69 74 20 70 6f 73 69 74 | 69 6f 6e 0d 0a 72 69 67 |it posit|ion..rig|
|00003370| 68 74 2e 20 42 69 74 20 | 30 20 69 73 20 73 68 69 |ht. Bit |0 is shi|
|00003380| 66 74 65 64 20 69 6e 74 | 6f 20 74 68 65 20 63 61 |fted int|o the ca|
|00003390| 72 72 79 20 66 6c 61 67 | 20 61 6e 64 20 62 69 74 |rry flag| and bit|
|000033a0| 20 37 20 69 73 20 63 6c | 65 61 72 65 64 2e 0d 0a | 7 is cl|eared...|
|000033b0| 1a 01 3e 01 05 b4 4d 4f | 56 c3 4d 6f 76 65 20 49 |..>...MO|V.Move I|
|000033c0| 6d 6d 65 64 69 61 74 65 | 20 64 61 74 61 2c 20 4d |mmediate| data, M|
|000033d0| 65 6d 6f 72 79 20 6f 72 | 20 52 65 67 69 73 74 65 |emory or| Registe|
|000033e0| 72 20 74 6f 20 4d 65 6d | 6f 72 79 20 6f 72 20 52 |r to Mem|ory or R|
|000033f0| 65 67 69 73 74 65 72 2e | 0d 0a 1a 01 40 02 06 b4 |egister.|....@...|
|00003400| 4d 4f 56 57 c3 4d 6f 76 | 65 20 74 68 65 20 6d 65 |MOVW.Mov|e the me|
|00003410| 6d 6f 72 79 20 77 6f 72 | 64 20 74 6f 2f 66 72 6f |mory wor|d to/fro|
|00003420| 6d 20 74 68 65 28 7a 65 | 72 6f 20 70 61 67 65 2b |m the(ze|ro page+|
|00003430| 31 29 28 7a 65 72 6f 20 | 70 61 67 65 29 20 70 6f |1)(zero |page) po|
|00003440| 69 6e 74 65 72 0d 0a 66 | 72 6f 6d 2f 74 6f 20 74 |inter..f|rom/to t|
|00003450| 68 65 20 63 6f 6d 62 69 | 6e 65 64 20 59 41 20 31 |he combi|ned YA 1|
|00003460| 36 20 62 69 74 20 72 65 | 67 69 73 74 65 72 2e 0d |6 bit re|gister..|
|00003470| 0a 1a 01 41 03 05 b4 4d | 55 4c c3 4d 75 6c 74 69 |...A...M|UL.Multi|
|00003480| 70 6c 79 20 28 38 20 62 | 69 74 20 78 20 38 20 62 |ply (8 b|it x 8 b|
|00003490| 69 74 20 2c 6e 6f 20 73 | 69 67 6e 29 20 74 68 65 |it ,no s|ign) the|
|000034a0| 20 6d 75 6c 74 69 70 6c | 69 63 61 6e 64 20 73 74 | multipl|icand st|
|000034b0| 6f 72 65 64 20 69 6e 20 | 74 68 65 0d 0a 59 20 72 |ored in |the..Y r|
|000034c0| 65 67 69 73 74 65 72 20 | 61 6e 64 20 74 68 65 20 |egister |and the |
|000034d0| 6d 75 6c 74 69 70 6c 69 | 65 72 20 73 74 6f 72 65 |multipli|er store|
|000034e0| 64 20 69 6e 20 74 68 65 | 20 41 20 72 65 67 69 73 |d in the| A regis|
|000034f0| 74 65 72 2e 20 53 74 6f | 72 65 20 74 68 65 0d 0a |ter. Sto|re the..|
|00003500| 72 65 73 75 6c 74 20 69 | 6e 20 74 68 65 20 59 41 |result i|n the YA|
|00003510| 20 31 36 20 62 69 74 20 | 61 63 63 75 6d 75 6c 61 | 16 bit |accumula|
|00003520| 74 6f 72 2e 0d 0a 1a 01 | 3f 02 05 b4 4e 4f 50 c3 |tor.....|?...NOP.|
|00003530| 4e 6f 20 6f 70 65 72 61 | 74 69 6f 6e 2e 20 54 68 |No opera|tion. Th|
|00003540| 65 20 70 72 6f 63 65 73 | 73 6f 72 20 74 61 6b 65 |e proces|sor take|
|00003550| 73 20 6e 6f 20 61 63 74 | 69 6f 6e 20 6f 6e 20 74 |s no act|ion on t|
|00003560| 68 69 73 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 0d |his inst|ruction.|
|00003570| 0a 61 6e 64 20 69 73 20 | 6f 66 74 65 6e 20 75 73 |.and is |often us|
|00003580| 65 64 20 74 6f 20 63 72 | 65 61 74 65 20 73 6d 61 |ed to cr|eate sma|
|00003590| 6c 6c 20 64 65 6c 61 79 | 73 2e 0d 0a 1a 01 2c 01 |ll delay|s.....,.|
|000035a0| 06 b4 4e 4f 54 43 c3 43 | 6f 6d 70 6c 65 6d 65 6e |..NOTC.C|omplemen|
|000035b0| 74 20 43 61 72 72 79 20 | 46 6c 61 67 2e 0d 0a 1a |t Carry |Flag....|
|000035c0| 01 3c 02 04 b4 4f 52 c3 | 4c 6f 67 69 63 61 6c 6c |.<...OR.|Logicall|
|000035d0| 79 20 4f 52 20 61 20 6d | 65 6d 6f 72 79 20 62 79 |y OR a m|emory by|
|000035e0| 74 65 20 77 69 74 68 20 | 74 68 65 20 41 20 72 65 |te with |the A re|
|000035f0| 67 69 73 74 65 72 20 61 | 6e 64 20 73 74 6f 72 65 |gister a|nd store|
|00003600| 20 74 68 65 0d 0a 72 65 | 73 75 6c 74 20 62 61 63 | the..re|sult bac|
|00003610| 6b 20 69 6e 74 6f 20 41 | 2e 0d 0a 1a 01 42 01 07 |k into A|.....B..|
|00003620| b4 50 43 41 4c 4c c3 50 | 43 41 4c 4c 20 69 73 20 |.PCALL.P|CALL is |
|00003630| 66 6f 6c 6c 6f 77 65 64 | 20 62 79 20 61 6e 20 69 |followed| by an i|
|00003640| 6e 64 65 78 20 69 6e 74 | 6f 20 6d 65 6d 6f 72 79 |ndex int|o memory|
|00003650| 20 75 70 70 65 72 20 70 | 61 67 65 20 28 24 46 46 | upper p|age ($FF|
|00003660| 30 30 2d 24 46 46 46 46 | 29 0d 0a 1a 01 3b 02 05 |00-$FFFF|)....;..|
|00003670| b4 50 4f 50 c3 50 6f 70 | 20 28 6c 6f 61 64 29 20 |.POP.Pop| (load) |
|00003680| 74 68 65 20 41 2c 20 53 | 52 2c 20 58 20 6f 72 20 |the A, S|R, X or |
|00003690| 59 20 72 65 67 69 73 74 | 65 72 20 66 72 6f 6d 20 |Y regist|er from |
|000036a0| 74 68 65 20 73 79 73 74 | 65 6d 20 73 74 61 63 6b |the syst|em stack|
|000036b0| 0d 0a 61 64 64 72 65 73 | 73 65 64 20 62 79 20 74 |..addres|sed by t|
|000036c0| 68 65 20 53 50 20 72 65 | 67 69 73 74 65 72 2e 0d |he SP re|gister..|
|000036d0| 0a 1a 01 3c 02 06 b4 50 | 55 53 48 c3 50 75 73 68 |...<...P|USH.Push|
|000036e0| 20 28 73 61 76 65 29 20 | 74 68 65 20 41 2c 20 53 | (save) |the A, S|
|000036f0| 52 2c 20 58 20 6f 72 20 | 59 20 72 65 67 69 73 74 |R, X or |Y regist|
|00003700| 65 72 20 6f 6e 74 6f 20 | 74 68 65 20 73 79 73 74 |er onto |the syst|
|00003710| 65 6d 20 73 74 61 63 6b | 0d 0a 61 64 64 72 65 73 |em stack|..addres|
|00003720| 73 65 64 20 62 79 20 74 | 68 65 20 53 50 20 72 65 |sed by t|he SP re|
|00003730| 67 69 73 74 65 72 2e 0d | 0a 1a 01 3f 05 05 b4 52 |gister..|...?...R|
|00003740| 45 54 c3 52 65 74 75 72 | 6e 20 66 72 6f 6d 20 73 |ET.Retur|n from s|
|00003750| 75 62 72 6f 75 74 69 6e | 65 2e 20 45 78 69 74 73 |ubroutin|e. Exits|
|00003760| 20 61 20 70 72 6f 63 65 | 64 75 72 65 20 69 6e 76 | a proce|dure inv|
|00003770| 6f 6b 65 64 20 62 79 20 | 74 68 65 20 43 41 4c 4c |oked by |the CALL|
|00003780| 0d 0a 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 62 |..instru|ctions b|
|00003790| 79 20 27 70 75 6c 6c 69 | 6e 67 27 20 61 20 77 6f |y 'pulli|ng' a wo|
|000037a0| 72 64 20 66 72 6f 6d 20 | 74 68 65 20 73 79 73 74 |rd from |the syst|
|000037b0| 65 6d 20 73 74 61 63 6b | 20 28 53 50 29 20 61 6e |em stack| (SP) an|
|000037c0| 64 0d 0a 70 6c 61 63 69 | 6e 67 20 74 68 65 20 61 |d..placi|ng the a|
|000037d0| 64 64 72 65 73 73 20 69 | 6e 74 6f 20 74 68 65 20 |ddress i|nto the |
|000037e0| 50 43 20 72 65 67 69 73 | 74 65 72 2c 20 74 68 75 |PC regis|ter, thu|
|000037f0| 73 20 63 61 75 73 69 6e | 67 20 74 68 65 0d 0a 69 |s causin|g the..i|
|00003800| 6e 73 74 72 75 63 74 69 | 6f 6e 20 77 68 69 63 68 |nstructi|on which|
|00003810| 20 66 6f 6c 6c 6f 77 65 | 64 20 74 68 65 20 63 61 | followe|d the ca|
|00003820| 6c 6c 69 6e 67 20 69 6e | 73 74 72 75 63 74 69 6f |lling in|structio|
|00003830| 6e 20 74 6f 20 62 65 0d | 0a 65 78 65 63 75 74 65 |n to be.|.execute|
|00003840| 64 2e 0d 0a 1a 01 41 05 | 06 b4 52 45 54 49 c3 52 |d.....A.|..RETI.R|
|00003850| 65 74 75 72 6e 20 66 72 | 6f 6d 20 69 6e 74 65 72 |eturn fr|om inter|
|00003860| 72 75 70 74 20 70 72 6f | 63 65 64 75 72 65 2e 20 |rupt pro|cedure. |
|00003870| 54 68 69 73 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |This ins|truction|
|00003880| 20 73 68 6f 75 6c 64 20 | 62 65 20 75 73 65 64 0d | should |be used.|
|00003890| 0a 74 6f 20 74 65 72 6d | 69 6e 61 74 65 20 61 20 |.to term|inate a |
|000038a0| 70 72 6f 63 65 64 75 72 | 65 20 77 68 69 63 68 20 |procedur|e which |
|000038b0| 69 73 20 69 6e 76 6f 6b | 65 64 20 62 79 20 74 68 |is invok|ed by th|
|000038c0| 65 20 53 50 43 37 30 30 | 20 69 6e 74 65 72 72 75 |e SPC700| interru|
|000038d0| 70 74 0d 0a 76 65 63 74 | 6f 72 20 70 72 6f 63 65 |pt..vect|or proce|
|000038e0| 73 73 2e 20 49 74 20 72 | 65 74 75 72 6e 73 20 74 |ss. It r|eturns t|
|000038f0| 68 65 20 73 74 61 74 75 | 73 20 72 65 67 69 73 74 |he statu|s regist|
|00003900| 65 72 20 66 72 6f 6d 20 | 74 68 65 20 73 74 61 63 |er from |the stac|
|00003910| 6b 0d 0a 62 65 66 6f 72 | 65 20 72 65 74 75 72 6e |k..befor|e return|
|00003920| 69 6e 67 20 74 6f 20 74 | 68 65 20 6e 65 78 74 20 |ing to t|he next |
|00003930| 70 72 6f 67 72 61 6d 20 | 69 6e 73 74 72 75 63 74 |program |instruct|
|00003940| 69 6f 6e 20 77 68 69 63 | 68 20 77 61 73 0d 0a 69 |ion whic|h was..i|
|00003950| 6e 74 65 72 72 75 70 74 | 65 64 2e 0d 0a 1a 01 41 |nterrupt|ed.....A|
|00003960| 04 05 b4 52 4f 4c c3 52 | 6f 74 61 74 65 20 61 20 |...ROL.R|otate a |
|00003970| 6d 65 6d 6f 72 79 20 62 | 79 74 65 20 6f 72 20 61 |memory b|yte or a|
|00003980| 63 63 75 6d 75 6c 61 74 | 6f 72 20 6f 6e 65 20 62 |ccumulat|or one b|
|00003990| 69 74 20 70 6f 73 69 74 | 69 6f 6e 20 6c 65 66 74 |it posit|ion left|
|000039a0| 20 74 68 72 6f 75 67 68 | 0d 0a 74 68 65 20 63 61 | through|..the ca|
|000039b0| 72 72 79 20 66 6c 61 67 | 2e 20 42 69 74 20 37 20 |rry flag|. Bit 7 |
|000039c0| 69 73 20 73 68 69 66 74 | 65 64 20 69 6e 74 6f 20 |is shift|ed into |
|000039d0| 74 68 65 20 63 61 72 72 | 79 20 66 6c 61 67 20 61 |the carr|y flag a|
|000039e0| 6e 64 20 74 68 65 0d 0a | 6f 72 69 67 69 6e 61 6c |nd the..|original|
|000039f0| 20 63 61 72 72 79 20 66 | 6c 61 67 20 69 73 20 73 | carry f|lag is s|
|00003a00| 68 69 66 74 65 64 20 69 | 6e 74 6f 20 62 69 74 20 |hifted i|nto bit |
|00003a10| 30 2e 20 54 68 69 73 20 | 69 73 20 6f 66 74 65 6e |0. This |is often|
|00003a20| 20 72 65 66 65 72 72 65 | 64 0d 0a 74 6f 20 61 73 | referre|d..to as|
|00003a30| 20 39 20 62 69 74 20 72 | 6f 74 61 74 69 6f 6e 2e | 9 bit r|otation.|
|00003a40| 0d 0a 1a 01 40 03 05 b4 | 52 4f 52 c3 52 6f 74 61 |....@...|ROR.Rota|
|00003a50| 74 65 20 61 20 6d 65 6d | 6f 72 79 20 62 79 74 65 |te a mem|ory byte|
|00003a60| 20 6f 72 20 61 63 63 75 | 6d 75 6c 61 74 6f 72 20 | or accu|mulator |
|00003a70| 6f 6e 65 20 62 69 74 20 | 70 6f 73 69 74 69 6f 6e |one bit |position|
|00003a80| 20 72 69 67 68 74 0d 0a | 74 68 72 6f 75 67 68 20 | right..|through |
|00003a90| 74 68 65 20 63 61 72 72 | 79 20 66 6c 61 67 2e 20 |the carr|y flag. |
|00003aa0| 42 69 74 20 30 20 69 73 | 20 73 68 69 66 74 65 64 |Bit 0 is| shifted|
|00003ab0| 20 69 6e 74 6f 20 74 68 | 65 20 63 61 72 72 79 20 | into th|e carry |
|00003ac0| 66 6c 61 67 20 61 6e 64 | 0d 0a 74 68 65 20 6f 72 |flag and|..the or|
|00003ad0| 69 67 69 6e 61 6c 20 63 | 61 72 72 79 20 66 6c 61 |iginal c|arry fla|
|00003ae0| 67 20 69 73 20 73 68 69 | 66 74 65 64 20 69 6e 74 |g is shi|fted int|
|00003af0| 6f 20 62 69 74 20 37 2e | 0d 0a 1a 01 40 03 05 b4 |o bit 7.|....@...|
|00003b00| 53 42 43 c3 53 75 62 74 | 72 61 63 74 20 6d 65 6d |SBC.Subt|ract mem|
|00003b10| 6f 72 79 20 62 79 74 65 | 20 28 6f 72 20 69 6d 6d |ory byte| (or imm|
|00003b20| 65 64 69 61 74 65 20 64 | 61 74 61 29 20 61 6e 64 |ediate d|ata) and|
|00003b30| 20 63 61 72 72 79 20 66 | 6c 61 67 20 66 72 6f 6d | carry f|lag from|
|00003b40| 20 74 68 65 0d 0a 41 20 | 72 65 67 69 73 74 65 72 | the..A |register|
|00003b50| 2e 20 53 74 6f 72 65 20 | 74 68 65 20 72 65 73 75 |. Store |the resu|
|00003b60| 6c 74 20 62 61 63 6b 20 | 69 6e 74 6f 20 41 2e 20 |lt back |into A. |
|00003b70| 2a 41 6c 73 6f 20 73 65 | 65 20 43 4c 44 2f 53 45 |*Also se|e CLD/SE|
|00003b80| 44 0d 0a 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 2e |D..instr|uctions.|
|00003b90| 0d 0a 1a 01 2c 01 06 b4 | 53 45 54 31 c3 53 65 74 |....,...|SET1.Set|
|00003ba0| 20 64 69 72 65 63 74 20 | 70 61 67 65 20 62 69 74 | direct |page bit|
|00003bb0| 2e 0d 0a 1a 01 2c 01 06 | b4 53 45 54 43 c3 53 65 |.....,..|.SETC.Se|
|00003bc0| 74 20 63 61 72 72 79 20 | 66 6c 61 67 2e 20 54 68 |t carry |flag. Th|
|00003bd0| 65 20 43 20 66 6c 61 67 | 20 69 73 20 73 65 74 20 |e C flag| is set |
|00003be0| 74 6f 20 27 31 27 2e 0d | 0a 1a 01 2c 01 06 b4 53 |to '1'..|...,...S|
|00003bf0| 45 54 50 c3 53 65 74 20 | 44 69 72 65 63 74 20 50 |ETP.Set |Direct P|
|00003c00| 61 67 65 20 46 6c 61 67 | 2e 0d 0a 1a 01 2c 01 07 |age Flag|.....,..|
|00003c10| b4 53 4c 45 45 50 c3 50 | 75 74 73 20 70 72 6f 63 |.SLEEP.P|uts proc|
|00003c20| 65 73 73 6f 72 20 69 6e | 20 73 74 61 6e 64 62 79 |essor in| standby|
|00003c30| 20 53 4c 45 45 50 20 6d | 6f 64 65 2e 0d 0a 1a 01 | SLEEP m|ode.....|
|00003c40| 2c 01 06 b4 53 54 4f 50 | c3 50 75 74 73 20 70 72 |,...STOP|.Puts pr|
|00003c50| 6f 63 65 73 73 6f 72 20 | 69 6e 20 73 74 61 6e 64 |ocessor |in stand|
|00003c60| 62 79 20 53 54 4f 50 20 | 6d 6f 64 65 2e 0d 0a 1a |by STOP |mode....|
|00003c70| 01 3c 03 06 b4 53 55 42 | 57 c3 53 75 62 74 72 61 |.<...SUB|W.Subtra|
|00003c80| 63 74 20 74 68 65 20 63 | 6f 6e 74 65 6e 74 73 20 |ct the c|ontents |
|00003c90| 6f 66 20 74 68 65 20 77 | 6f 72 64 20 70 6f 69 6e |of the w|ord poin|
|00003ca0| 74 65 64 20 74 6f 20 62 | 79 20 28 64 70 2b 31 29 |ted to b|y (dp+1)|
|00003cb0| 28 64 70 29 0d 0a 66 72 | 6f 6d 20 74 68 65 20 59 |(dp)..fr|om the Y|
|00003cc0| 41 20 70 61 69 72 65 64 | 20 31 36 20 62 69 74 20 |A paired| 16 bit |
|00003cd0| 61 63 63 75 6d 75 6c 61 | 74 6f 72 2e 20 53 74 6f |accumula|tor. Sto|
|00003ce0| 72 65 20 74 68 65 20 72 | 65 73 75 6c 74 20 62 61 |re the r|esult ba|
|00003cf0| 63 6b 0d 0a 69 6e 74 6f | 20 74 68 65 20 59 41 20 |ck..into| the YA |
|00003d00| 31 36 20 62 69 74 20 70 | 61 69 72 65 64 20 61 63 |16 bit p|aired ac|
|00003d10| 63 75 6d 75 6c 61 74 6f | 72 2e 0d 0a 1a 01 3b 02 |cumulato|r.....;.|
|00003d20| 07 b4 54 43 41 4c 4c c3 | 54 61 62 6c 65 20 43 61 |..TCALL.|Table Ca|
|00003d30| 6c 6c 20 28 6f 6e 65 20 | 62 79 74 65 20 63 6f 6d |ll (one |byte com|
|00003d40| 6d 61 6e 64 29 20 75 73 | 69 6e 67 20 63 61 6c 6c |mand) us|ing call|
|00003d50| 20 74 61 62 6c 65 73 2e | 20 54 68 65 20 74 61 62 | tables.| The tab|
|00003d60| 6c 65 0d 0a 6c 6f 63 61 | 74 69 6f 6e 20 69 73 20 |le..loca|tion is |
|00003d70| 24 46 46 44 45 2d 32 2a | 6e 20 28 6c 6f 77 20 62 |$FFDE-2*|n (low b|
|00003d80| 79 74 65 29 20 61 6e 64 | 20 24 46 46 44 46 2d 32 |yte) and| $FFDF-2|
|00003d90| 2a 6e 20 28 68 69 67 68 | 20 62 79 74 65 29 2e 0d |*n (high| byte)..|
|00003da0| 0a 1a 01 3d 03 07 b4 54 | 43 4c 52 31 c3 54 68 65 |...=...T|CLR1.The|
|00003db0| 20 31 36 20 62 69 74 20 | 77 6f 72 64 20 6d 65 6d | 16 bit |word mem|
|00003dc0| 6f 72 79 20 61 64 64 72 | 65 73 73 20 69 73 20 41 |ory addr|ess is A|
|00003dd0| 4e 44 65 64 20 75 73 69 | 6e 67 20 74 68 65 20 6d |NDed usi|ng the m|
|00003de0| 61 73 6b 20 69 6e 20 74 | 68 65 0d 0a 41 20 72 65 |ask in t|he..A re|
|00003df0| 67 69 73 74 65 72 2e 20 | 54 68 65 20 73 69 67 6e |gister. |The sign|
|00003e00| 20 28 4e 29 20 61 6e 64 | 20 7a 65 72 6f 20 28 5a | (N) and| zero (Z|
|00003e10| 29 20 66 6c 61 67 73 20 | 61 72 65 20 73 65 74 20 |) flags |are set |
|00003e20| 61 63 63 6f 72 64 69 6e | 67 0d 0a 74 6f 20 74 68 |accordin|g..to th|
|00003e30| 65 20 72 65 73 75 6c 74 | 2e 0d 0a 1a 01 3d 03 07 |e result|.....=..|
|00003e40| b4 54 53 45 54 31 c3 54 | 68 65 20 31 36 20 62 69 |.TSET1.T|he 16 bi|
|00003e50| 74 20 77 6f 72 64 20 6d | 65 6d 6f 72 79 20 61 64 |t word m|emory ad|
|00003e60| 64 72 65 73 73 20 69 73 | 20 4f 52 65 64 20 75 73 |dress is| ORed us|
|00003e70| 69 6e 67 20 74 68 65 20 | 6d 61 73 6b 20 69 6e 20 |ing the |mask in |
|00003e80| 74 68 65 0d 0a 41 20 72 | 65 67 69 73 74 65 72 2e |the..A r|egister.|
|00003e90| 20 54 68 65 20 73 69 67 | 6e 20 28 4e 29 20 61 6e | The sig|n (N) an|
|00003ea0| 64 20 7a 65 72 6f 20 28 | 5a 29 20 66 6c 61 67 73 |d zero (|Z) flags|
|00003eb0| 20 61 72 65 20 73 65 74 | 20 61 63 63 6f 72 64 69 | are set| accordi|
|00003ec0| 6e 67 0d 0a 74 6f 20 74 | 68 65 20 72 65 73 75 6c |ng..to t|he resul|
|00003ed0| 74 2e 0d 0a 1a 01 30 01 | 05 b4 58 43 4e c3 45 78 |t.....0.|..XCN.Ex|
|00003ee0| 63 68 61 6e 67 65 20 75 | 70 70 65 72 20 61 6e 64 |change u|pper and|
|00003ef0| 20 6c 6f 77 65 72 20 6e | 69 62 62 6c 65 73 20 69 | lower n|ibbles i|
|00003f00| 6e 20 41 63 63 75 6d 75 | 6c 61 74 6f 72 2e 0d 0a |n Accumu|lator...|
|00003f10| 1a | |. | |
+--------+-------------------------+-------------------------+--------+--------+