home *** CD-ROM | disk | FTP | other *** search
/ For Beginners & Professional Hackers / cd.iso / softcrc / libs / debugtut.arj < prev    next >
ARJ Archive  |  1997-07-22  |  33.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: ARJ Archive (archive/arj).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert ARJ Archive (archive/arj) magic Supported
100% file ARJ archive data, v6, slash-switched, created 22 jul 1980+17, original name: DEBUGTUT.ARJ, os: MS-DOS default
99% file data default
66% TrID ARJ compressed archive (standard) default
33% TrID ARJ compressed archive default
100% dearkID deark: arj (ARJ) default
100% siegfried fmt/610 ARJ File Format default
100% lsar ARJ default
100% gt2 ARJ Archiv gefunden (Auflistung ist deaktiviert) default
100% detectItEasy Archive: ARJ(6) default
100% binwalkID ARJ archive data, header size: 133, version 6, minimum version to extract: 1, slash-switched, compression method: stored, file type: comment header, original name: "DEBUGTUT.ARJ", original file date: 1988-08-03 03:31:16, compressed file size: 586582276, uncompressed file size: 0, os: MS-DOS default
100% xdgMime application/x-arj default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 60 ea 85 00 1e 06 01 00 | 10 00 02 04 04 89 f6 22 |`.......|......."|
|00000010| 04 89 f6 22 00 00 00 00 | 00 00 00 00 00 00 00 00 |..."....|........|
|00000020| 00 00 44 45 42 55 47 54 | 55 54 2e 41 52 4a 00 0a |..DEBUGT|UT.ARJ..|
|00000030| 20 20 20 20 41 72 63 68 | 69 76 65 20 46 72 6f 6d | Arch|ive From|
|00000040| 0a 20 48 20 41 20 43 20 | 4b 20 45 20 52 27 73 20 |. H A C |K E R's |
|00000050| 20 20 43 20 44 0a 20 20 | 20 20 20 43 72 65 61 74 | C D. | Creat|
|00000060| 65 64 20 42 79 0a 20 20 | 57 68 69 74 65 20 45 61 |ed By. |White Ea|
|00000070| 67 6c 65 20 5b 52 43 44 | 5d 0a 20 20 20 20 20 20 |gle [RCD|]. |
|00000080| 20 20 31 39 39 37 0a 0a | 00 d5 c2 66 90 00 00 60 | 1997..|...f...`|
|00000090| ea 29 00 1e 06 01 00 10 | 00 00 04 a0 28 16 0d 80 |.)......|....(...|
|000000a0| 85 00 00 80 85 00 00 23 | 2f 72 5a 00 00 20 00 00 |.......#|/rZ.. ..|
|000000b0| 00 44 45 42 55 47 2e 54 | 58 54 00 00 a6 fe ee 4c |.DEBUG.T|XT.....L|
|000000c0| 00 00 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|000000d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000000e0| 20 20 20 20 20 20 20 20 | 20 20 44 45 42 55 47 0d | | DEBUG.|
|000000f0| 0a 0d 0a 0d 0a 20 20 20 | 20 20 54 68 69 73 20 20 |..... | This |
|00000100| 74 75 74 6f 72 69 61 6c | 20 69 73 20 6d 61 64 65 |tutorial| is made|
|00000110| 20 74 6f 20 70 72 65 73 | 65 6e 74 20 61 6e 20 6f | to pres|ent an o|
|00000120| 76 65 72 76 69 65 77 20 | 6f 66 20 74 68 65 20 44 |verview |of the D|
|00000130| 45 42 55 47 2e 43 4f 4d | 20 70 72 6f 67 72 61 6d |EBUG.COM| program|
|00000140| 20 66 6f 72 0d 0a 74 68 | 65 20 49 42 4d 20 50 43 | for..th|e IBM PC|
|00000150| 2e 20 20 20 54 68 69 73 | 20 75 74 69 6c 69 74 79 |. This| utility|
|00000160| 20 63 61 6e 20 62 65 20 | 65 78 74 72 65 6d 65 6c | can be |extremel|
|00000170| 79 20 75 73 65 66 75 6c | 2c 20 77 68 65 6e 20 75 |y useful|, when u|
|00000180| 73 65 64 20 63 6f 72 72 | 65 63 74 6c 79 2e 20 20 |sed corr|ectly. |
|00000190| 49 74 20 69 73 0d 0a 61 | 6c 6d 6f 73 74 20 20 61 |It is..a|lmost a|
|000001a0| 20 20 6d 75 73 74 20 66 | 6f 72 20 41 73 73 65 6d | must f|or Assem|
|000001b0| 62 6c 65 72 20 4c 61 6e | 67 75 61 67 65 20 70 72 |bler Lan|guage pr|
|000001c0| 6f 67 72 61 6d 6d 65 72 | 73 2c 20 20 61 6e 64 20 |ogrammer|s, and |
|000001d0| 63 61 6e 20 20 61 6c 73 | 6f 20 20 70 72 6f 76 69 |can als|o provi|
|000001e0| 64 65 20 20 61 6e 0d 0a | 69 6e 73 69 67 68 74 20 |de an..|insight |
|000001f0| 20 69 6e 74 6f 20 20 74 | 68 65 20 6f 70 65 72 61 | into t|he opera|
|00000200| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 6d 61 63 68 |tion of |the mach|
|00000210| 69 6e 65 20 61 74 20 74 | 68 65 20 62 69 74 20 6c |ine at t|he bit l|
|00000220| 65 76 65 6c 2e 20 20 20 | 49 74 20 68 61 73 20 20 |evel. |It has |
|00000230| 73 65 76 65 72 61 6c 0d | 0a 6e 69 63 65 20 66 65 |several.|.nice fe|
|00000240| 61 74 75 72 65 73 2c 20 | 69 6e 63 6c 75 64 69 6e |atures, |includin|
|00000250| 67 20 74 68 65 20 61 62 | 69 6c 69 74 79 20 74 6f |g the ab|ility to|
|00000260| 20 64 69 73 70 6c 61 79 | 20 61 6e 64 20 63 68 61 | display| and cha|
|00000270| 6e 67 65 20 61 6e 79 20 | 6f 66 20 74 68 65 20 72 |nge any |of the r|
|00000280| 65 67 69 73 74 65 72 73 | 0d 0a 69 6e 20 74 68 65 |egisters|..in the|
|00000290| 20 49 42 4d 50 43 2c 20 | 73 74 61 72 74 20 61 6e | IBMPC, |start an|
|000002a0| 64 20 73 74 6f 70 20 70 | 72 6f 67 72 61 6d 20 65 |d stop p|rogram e|
|000002b0| 78 65 63 75 74 69 6f 6e | 20 61 74 20 61 6e 79 20 |xecution| at any |
|000002c0| 74 69 6d 65 2c 20 63 68 | 61 6e 67 65 20 74 68 65 |time, ch|ange the|
|000002d0| 20 70 72 6f 67 72 61 6d | 2c 0d 0a 61 6e 64 20 20 | program|,..and |
|000002e0| 6c 6f 6f 6b 20 20 61 74 | 20 64 69 73 6b 65 74 74 |look at| diskett|
|000002f0| 65 73 2c 20 20 73 65 63 | 74 6f 72 20 62 79 20 73 |es, sec|tor by s|
|00000300| 65 63 74 6f 72 2e 20 20 | 20 44 45 42 55 47 20 77 |ector. | DEBUG w|
|00000310| 6f 72 6b 73 20 61 74 20 | 74 68 65 20 20 6d 61 63 |orks at |the mac|
|00000320| 68 69 6e 65 20 20 63 6f | 64 65 0d 0a 6c 65 76 65 |hine co|de..leve|
|00000330| 6c 2c 20 20 62 75 74 20 | 69 74 20 64 6f 65 73 20 |l, but |it does |
|00000340| 61 6c 73 6f 20 68 61 76 | 65 20 74 68 65 20 61 62 |also hav|e the ab|
|00000350| 69 6c 69 74 79 20 74 6f | 20 64 69 73 61 73 73 65 |ility to| disasse|
|00000360| 6d 62 6c 65 20 6d 61 63 | 68 69 6e 65 20 63 6f 64 |mble mac|hine cod|
|00000370| 65 2c 20 20 61 6e 64 20 | 28 61 74 0d 0a 64 6f 73 |e, and |(at..dos|
|00000380| 20 32 2e 30 29 2c 20 61 | 73 73 65 6d 62 6c 65 20 | 2.0), a|ssemble |
|00000390| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 20 64 69 72 |instruct|ions dir|
|000003a0| 65 63 74 6c 79 20 69 6e | 74 6f 20 6d 61 63 68 69 |ectly in|to machi|
|000003b0| 6e 65 20 63 6f 64 65 2e | 0d 0a 0d 0a 20 20 20 20 |ne code.|.... |
|000003c0| 20 54 68 65 20 20 70 72 | 6f 63 65 64 75 72 65 20 | The pr|ocedure |
|000003d0| 66 6f 72 20 73 74 61 72 | 74 69 6e 67 20 44 45 42 |for star|ting DEB|
|000003e0| 55 47 20 61 6e 64 20 63 | 6f 6d 6d 61 6e 64 20 73 |UG and c|ommand s|
|000003f0| 79 6e 74 61 78 20 77 69 | 6c 6c 20 6e 6f 74 20 20 |yntax wi|ll not |
|00000400| 62 65 20 20 63 6f 76 65 | 72 65 64 0d 0a 68 65 72 |be cove|red..her|
|00000410| 65 2c 20 20 61 73 20 74 | 68 65 79 20 61 72 65 20 |e, as t|hey are |
|00000420| 77 65 6c 6c 20 64 6f 63 | 75 6d 65 6e 74 65 64 20 |well doc|umented |
|00000430| 69 6e 20 74 68 65 20 44 | 4f 53 20 6d 61 6e 75 61 |in the D|OS manua|
|00000440| 6c 2e 20 20 20 57 68 61 | 74 20 77 65 20 77 69 6c |l. Wha|t we wil|
|00000450| 6c 20 64 6f 20 69 73 20 | 73 68 6f 77 0d 0a 73 6f |l do is |show..so|
|00000460| 6d 65 20 65 78 61 6d 70 | 6c 65 73 20 6f 66 20 74 |me examp|les of t|
|00000470| 68 65 20 76 61 72 69 6f | 75 73 20 63 6f 6d 6d 61 |he vario|us comma|
|00000480| 6e 64 73 20 61 6e 64 20 | 74 68 65 20 72 65 73 70 |nds and |the resp|
|00000490| 6f 6e 73 65 20 77 68 69 | 63 68 20 69 73 20 65 78 |onse whi|ch is ex|
|000004a0| 70 65 63 74 65 64 2e 20 | 20 4e 6f 74 65 0d 0a 74 |pected. | Note..t|
|000004b0| 68 61 74 20 74 68 65 20 | 73 65 67 6d 65 6e 74 20 |hat the |segment |
|000004c0| 72 65 67 69 73 74 65 72 | 73 20 77 69 6c 6c 20 70 |register|s will p|
|000004d0| 72 6f 62 61 62 6c 79 20 | 6e 6f 74 20 62 65 20 65 |robably |not be e|
|000004e0| 78 61 63 74 6c 79 20 77 | 68 61 74 20 69 73 20 73 |xactly w|hat is s|
|000004f0| 68 6f 77 6e 2e 20 20 54 | 68 69 73 20 69 73 0d 0a |hown. T|his is..|
|00000500| 6e 6f 72 6d 61 6c 2c 20 | 61 6e 64 20 73 68 6f 75 |normal, |and shou|
|00000510| 6c 64 20 62 65 20 65 78 | 70 65 63 74 65 64 2e 0d |ld be ex|pected..|
|00000520| 0a 0d 0a 20 20 20 20 20 | 46 6f 72 20 20 74 68 65 |... |For the|
|00000530| 20 65 78 61 6d 70 6c 65 | 73 2c 20 20 49 20 77 69 | example|s, I wi|
|00000540| 6c 6c 20 62 65 20 75 73 | 69 6e 67 20 74 68 65 20 |ll be us|ing the |
|00000550| 64 65 6d 6f 20 70 72 6f | 67 72 61 6d 20 43 4c 4f |demo pro|gram CLO|
|00000560| 43 4b 2e 43 4f 4d 20 69 | 6e 20 74 68 65 20 20 58 |CK.COM i|n the X|
|00000570| 41 34 0d 0a 64 61 74 61 | 62 61 73 65 2e 20 20 20 |A4..data|base. |
|00000580| 46 6f 72 20 20 74 68 6f | 73 65 20 6f 66 20 79 6f |For tho|se of yo|
|00000590| 75 20 77 69 74 68 20 74 | 68 65 20 49 42 4d 20 61 |u with t|he IBM a|
|000005a0| 73 73 65 6d 62 6c 65 72 | 20 28 4d 41 53 4d 29 2c |ssembler| (MASM),|
|000005b0| 20 20 74 68 65 20 73 6f | 75 72 63 65 20 63 61 6e | the so|urce can|
|000005c0| 20 62 65 0d 0a 64 6f 77 | 6e 20 6c 6f 61 64 65 64 | be..dow|n loaded|
|000005d0| 2e 20 20 20 49 66 20 79 | 6f 75 20 64 6f 20 6e 6f |. If y|ou do no|
|000005e0| 74 20 68 61 76 65 20 74 | 68 65 20 61 73 73 65 6d |t have t|he assem|
|000005f0| 62 6c 65 72 2c 20 6f 72 | 20 68 61 76 65 20 61 6e |bler, or| have an|
|00000600| 6f 74 68 65 72 20 61 73 | 73 65 6d 62 6c 65 72 2c |other as|sembler,|
|00000610| 20 74 68 65 0d 0a 66 69 | 6c 65 20 20 43 4c 4f 43 | the..fi|le CLOC|
|00000620| 4b 2e 48 45 58 20 68 61 | 73 20 62 65 65 6e 20 75 |K.HEX ha|s been u|
|00000630| 70 20 6c 6f 61 64 65 64 | 2e 20 20 20 49 74 20 63 |p loaded|. It c|
|00000640| 61 6e 20 62 65 20 63 6f | 6e 76 65 72 74 65 64 20 |an be co|nverted |
|00000650| 74 6f 20 61 20 2e 43 4f | 4d 20 66 69 6c 65 20 20 |to a .CO|M file |
|00000660| 75 73 69 6e 67 0d 0a 61 | 6e 79 20 6f 66 20 74 68 |using..a|ny of th|
|00000670| 65 20 65 78 69 73 74 69 | 6e 67 20 48 45 58 20 63 |e existi|ng HEX c|
|00000680| 6f 6e 76 65 72 73 69 6f | 6e 20 70 72 6f 67 72 61 |onversio|n progra|
|00000690| 6d 73 20 6f 6e 20 74 68 | 65 20 53 49 47 2e 20 20 |ms on th|e SIG. |
|000006a0| 53 65 65 20 74 68 65 20 | 66 69 6c 65 20 43 4c 4f |See the |file CLO|
|000006b0| 43 4b 2e 44 4f 43 0d 0a | 66 6f 72 20 6d 6f 72 65 |CK.DOC..|for more|
|000006c0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 0d 0a 0d | informa|tion....|
|000006d0| 0a 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006f0| 20 20 20 20 20 53 54 41 | 52 54 49 4e 47 20 44 45 | STA|RTING DE|
|00000700| 42 55 47 0d 0a 0d 0a 20 | 20 20 20 20 54 68 65 72 |BUG.... | Ther|
|00000710| 65 20 61 72 65 20 74 77 | 6f 20 77 61 79 73 20 74 |e are tw|o ways t|
|00000720| 6f 20 73 74 61 72 74 20 | 44 45 42 55 47 20 77 69 |o start |DEBUG wi|
|00000730| 74 68 20 61 20 66 69 6c | 65 2e 20 20 42 6f 74 68 |th a fil|e. Both|
|00000740| 20 77 61 79 73 20 70 72 | 6f 64 75 63 65 20 74 68 | ways pr|oduce th|
|00000750| 65 20 73 61 6d 65 0d 0a | 72 65 73 75 6c 74 73 2c |e same..|results,|
|00000760| 20 61 6e 64 20 65 69 74 | 68 65 72 20 63 61 6e 20 | and eit|her can |
|00000770| 62 65 20 75 73 65 64 2e | 0d 0a 0d 0a 20 20 20 20 |be used.|.... |
|00000780| 20 49 6e 20 74 68 65 20 | 43 6f 6d 6d 61 6e 64 20 | In the |Command |
|00000790| 4c 69 6e 65 3a 20 20 41 | 3e 64 65 62 75 67 20 63 |Line: A|>debug c|
|000007a0| 6c 6f 63 6b 2e 63 6f 6d | 20 3c 45 4e 54 45 52 3e |lock.com| <ENTER>|
|000007b0| 0d 0a 0d 0a 20 20 20 20 | 20 53 65 70 61 72 61 74 |.... | Separat|
|000007c0| 65 20 66 72 6f 6d 20 74 | 68 65 20 63 6f 6d 6d 61 |e from t|he comma|
|000007d0| 6e 64 20 6c 69 6e 65 3a | 20 20 41 3e 64 65 62 75 |nd line:| A>debu|
|000007e0| 67 20 3c 45 4e 54 45 52 | 3e 0d 0a 20 20 20 20 20 |g <ENTER|>.. |
|000007f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000810| 20 2d 6e 20 63 6c 6f 63 | 6b 2e 63 6f 6d 0d 0a 20 | -n cloc|k.com.. |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000840| 20 20 20 20 20 2d 6c 0d | 0a 0d 0a 20 20 20 20 20 | -l.|... |
|00000850| 57 69 74 68 20 65 69 74 | 68 65 72 20 6d 65 74 68 |With eit|her meth|
|00000860| 6f 64 2c 20 20 79 6f 75 | 20 77 69 6c 6c 20 67 65 |od, you| will ge|
|00000870| 74 20 74 68 65 20 44 45 | 42 55 47 20 70 72 6f 6d |t the DE|BUG prom|
|00000880| 70 74 20 6f 66 20 61 20 | 68 79 70 68 65 6e 20 28 |pt of a |hyphen (|
|00000890| 2d 29 2e 20 20 44 45 42 | 55 47 0d 0a 68 61 73 20 |-). DEB|UG..has |
|000008a0| 6c 6f 61 64 65 64 20 79 | 6f 75 72 20 70 72 6f 67 |loaded y|our prog|
|000008b0| 72 61 6d 20 61 6e 64 20 | 69 73 20 72 65 61 64 79 |ram and |is ready|
|000008c0| 20 74 6f 20 72 75 6e 2e | 20 20 20 54 68 65 20 64 | to run.| The d|
|000008d0| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 65 61 |escripti|on of ea|
|000008e0| 63 68 20 69 6e 73 74 72 | 75 63 2d 0d 0a 74 69 6f |ch instr|uc-..tio|
|000008f0| 6e 20 77 69 6c 6c 20 61 | 73 73 75 6d 65 20 74 68 |n will a|ssume th|
|00000900| 69 73 20 61 73 20 61 20 | 73 74 61 72 74 69 6e 67 |is as a |starting|
|00000910| 20 70 6f 69 6e 74 2c 20 | 20 75 6e 6c 65 73 73 20 | point, | unless |
|00000920| 6f 74 68 65 72 77 69 73 | 65 20 6d 65 6e 74 69 6f |otherwis|e mentio|
|00000930| 6e 65 64 2e 20 20 20 49 | 66 20 61 74 0d 0a 61 6e |ned. I|f at..an|
|00000940| 79 20 74 69 6d 65 20 79 | 6f 75 20 67 65 74 20 64 |y time y|ou get d|
|00000950| 69 66 66 65 72 65 6e 74 | 20 72 65 73 75 6c 74 73 |ifferent| results|
|00000960| 2c 20 20 63 68 65 63 6b | 20 79 6f 75 72 20 70 72 |, check| your pr|
|00000970| 6f 63 65 64 75 72 65 20 | 63 61 72 65 66 75 6c 6c |ocedure |carefull|
|00000980| 79 2e 20 20 20 49 66 20 | 69 74 20 69 73 0d 0a 63 |y. If |it is..c|
|00000990| 6f 72 72 65 63 74 2c 20 | 20 70 6c 65 61 73 65 20 |orrect, | please |
|000009a0| 6c 65 61 76 65 20 6d 65 | 20 61 20 6d 65 73 73 61 |leave me| a messa|
|000009b0| 67 65 2e 20 20 20 49 20 | 68 61 76 65 20 74 72 69 |ge. I |have tri|
|000009c0| 65 64 20 74 6f 20 63 68 | 65 63 6b 20 65 76 65 72 |ed to ch|eck ever|
|000009d0| 79 74 68 69 6e 67 2c 20 | 20 62 75 74 20 49 0d 0a |ything, | but I..|
|000009e0| 68 61 76 65 20 62 65 65 | 6e 20 6b 6e 6f 77 6e 20 |have bee|n known |
|000009f0| 74 6f 20 6d 61 6b 65 20 | 61 20 6d 69 73 74 61 6b |to make |a mistak|
|00000a00| 65 20 6f 72 20 74 77 6f | 20 28 61 6e 79 77 61 79 |e or two| (anyway|
|00000a10| 29 2e 0d 0a 0d 0a 20 20 | 20 20 20 49 66 20 79 6f |)..... | If yo|
|00000a20| 75 20 64 6f 20 68 61 76 | 65 20 70 72 6f 62 6c 65 |u do hav|e proble|
|00000a30| 6d 73 2c 20 20 79 6f 75 | 20 63 61 6e 20 65 6e 74 |ms, you| can ent|
|00000a40| 65 72 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 20 51 |er the c|ommand Q|
|00000a50| 20 28 51 75 69 74 29 20 | 61 6e 79 20 74 69 6d 65 | (Quit) |any time|
|00000a60| 20 20 79 6f 75 0d 0a 68 | 61 76 65 20 74 68 65 20 | you..h|ave the |
|00000a70| 44 45 42 55 47 20 70 72 | 6f 6d 70 74 20 28 2d 29 |DEBUG pr|ompt (-)|
|00000a80| 2e 20 20 54 68 69 73 20 | 73 68 6f 75 6c 64 20 72 |. This |should r|
|00000a90| 65 74 75 72 6e 20 79 6f | 75 20 74 6f 20 74 68 65 |eturn yo|u to the|
|00000aa0| 20 44 4f 53 20 70 72 6f | 6d 70 74 2e 0d 0a 0d 0a | DOS pro|mpt.....|
|00000ab0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ad0| 20 20 52 55 4e 4e 49 4e | 47 20 44 45 42 55 47 0d | RUNNIN|G DEBUG.|
|00000ae0| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b00| 20 20 44 49 53 50 4c 41 | 59 20 43 4f 4d 4d 41 4e | DISPLA|Y COMMAN|
|00000b10| 44 53 0d 0a 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |DS......| |
|00000b20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b30| 20 20 20 20 20 20 20 52 | 65 67 69 73 74 65 72 20 | R|egister |
|00000b40| 63 6f 6d 6d 61 6e 64 0d | 0a 0d 0a 20 20 20 20 20 |command.|... |
|00000b50| 54 68 65 20 66 69 72 73 | 74 20 74 68 69 6e 67 20 |The firs|t thing |
|00000b60| 77 65 20 73 68 6f 75 6c | 64 20 6c 6f 6f 6b 20 61 |we shoul|d look a|
|00000b70| 74 20 61 72 65 20 74 68 | 65 20 72 65 67 69 73 74 |t are th|e regist|
|00000b80| 65 72 73 2c 20 20 75 73 | 69 6e 67 20 74 68 65 20 |ers, us|ing the |
|00000b90| 52 20 63 6f 6d 6d 61 6e | 64 2e 0d 0a 49 66 20 20 |R comman|d...If |
|00000ba0| 79 6f 75 20 74 79 70 65 | 20 69 6e 20 61 6e 20 52 |you type| in an R|
|00000bb0| 20 77 69 74 68 20 6e 6f | 20 70 61 72 61 6d 65 74 | with no| paramet|
|00000bc0| 65 72 73 2c 20 20 74 68 | 65 20 72 65 67 69 73 74 |ers, th|e regist|
|00000bd0| 65 72 73 20 73 68 6f 75 | 6c 64 20 62 65 20 64 69 |ers shou|ld be di|
|00000be0| 73 70 6c 61 79 65 64 20 | 20 61 73 0d 0a 73 6f 3a |splayed | as..so:|
|00000bf0| 0d 0a 0d 0a 41 58 3d 30 | 30 30 30 20 20 42 58 3d |....AX=0|000 BX=|
|00000c00| 30 30 30 30 20 20 43 58 | 3d 30 34 34 36 20 20 44 |0000 CX|=0446 D|
|00000c10| 58 3d 30 30 30 30 20 20 | 53 50 3d 46 46 46 45 20 |X=0000 |SP=FFFE |
|00000c20| 20 42 50 3d 30 30 30 30 | 20 20 53 49 3d 30 30 30 | BP=0000| SI=000|
|00000c30| 30 20 20 44 49 3d 30 30 | 30 30 0d 0a 44 53 3d 36 |0 DI=00|00..DS=6|
|00000c40| 38 39 37 20 20 45 53 3d | 36 38 39 37 20 20 53 53 |897 ES=|6897 SS|
|00000c50| 3d 36 38 39 37 20 20 43 | 53 3d 36 38 39 37 20 20 |=6897 C|S=6897 |
|00000c60| 49 50 3d 30 31 30 30 20 | 20 20 4e 56 20 55 50 20 |IP=0100 | NV UP |
|00000c70| 44 49 20 50 4c 20 4e 5a | 20 4e 41 20 50 45 20 4e |DI PL NZ| NA PE N|
|00000c80| 43 0d 0a 36 38 39 37 3a | 30 31 30 30 20 45 39 36 |C..6897:|0100 E96|
|00000c90| 42 30 31 20 20 20 20 20 | 20 20 20 4a 4d 50 20 20 |B01 | JMP |
|00000ca0| 20 20 20 30 32 36 45 0d | 0a 0d 0a 20 20 20 20 20 | 026E.|... |
|00000cb0| 43 58 20 20 63 6f 6e 74 | 61 69 6e 73 20 20 74 68 |CX cont|ains th|
|00000cc0| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 65 20 |e length| of the |
|00000cd0| 66 69 6c 65 20 28 30 34 | 34 36 68 20 6f 72 20 31 |file (04|46h or 1|
|00000ce0| 30 39 34 64 29 2e 20 20 | 20 49 66 20 74 68 65 20 |094d). | If the |
|00000cf0| 66 69 6c 65 20 20 77 65 | 72 65 0d 0a 6c 61 72 67 |file we|re..larg|
|00000d00| 65 72 20 20 74 68 61 6e | 20 36 34 4b 2c 20 20 42 |er than| 64K, B|
|00000d10| 58 20 77 6f 75 6c 64 20 | 63 6f 6e 74 61 69 6e 20 |X would |contain |
|00000d20| 74 68 65 20 68 69 67 68 | 20 6f 72 64 65 72 20 6f |the high| order o|
|00000d30| 66 20 74 68 65 20 73 69 | 7a 65 2e 20 20 20 54 68 |f the si|ze. Th|
|00000d40| 69 73 20 69 73 20 20 76 | 65 72 79 0d 0a 69 6d 70 |is is v|ery..imp|
|00000d50| 6f 72 74 61 6e 74 20 74 | 6f 20 72 65 6d 65 6d 62 |ortant t|o rememb|
|00000d60| 65 72 20 77 68 65 6e 20 | 75 73 69 6e 67 20 74 68 |er when |using th|
|00000d70| 65 20 57 72 69 74 65 20 | 63 6f 6d 6d 61 6e 64 2c |e Write |command,|
|00000d80| 20 20 61 73 20 74 68 69 | 73 20 69 73 20 74 68 65 | as thi|s is the|
|00000d90| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 0d 0a 66 69 | size of| the..fi|
|00000da0| 6c 65 20 74 6f 20 62 65 | 20 77 72 69 74 74 65 6e |le to be| written|
|00000db0| 2e 20 20 20 52 65 6d 65 | 6d 62 65 72 2c 20 20 6f |. Reme|mber, o|
|00000dc0| 6e 63 65 20 74 68 65 20 | 66 69 6c 65 20 69 73 20 |nce the |file is |
|00000dd0| 69 6e 20 6d 65 6d 6f 72 | 79 2c 20 20 44 45 42 55 |in memor|y, DEBU|
|00000de0| 47 20 68 61 73 20 6e 6f | 20 69 64 65 61 0d 0a 68 |G has no| idea..h|
|00000df0| 6f 77 20 6c 61 72 67 65 | 20 74 68 65 20 66 69 6c |ow large| the fil|
|00000e00| 65 20 69 73 2c 20 20 6f | 72 20 69 66 20 79 6f 75 |e is, o|r if you|
|00000e10| 20 6d 61 79 20 68 61 76 | 65 20 61 64 64 65 64 20 | may hav|e added |
|00000e20| 74 6f 20 69 74 2e 20 20 | 20 54 68 65 20 61 6d 6f |to it. | The amo|
|00000e30| 75 6e 74 20 6f 66 20 64 | 61 74 61 20 74 6f 0d 0a |unt of d|ata to..|
|00000e40| 62 65 20 77 72 69 74 74 | 65 6e 20 77 69 6c 6c 20 |be writt|en will |
|00000e50| 62 65 20 74 61 6b 65 6e | 20 66 72 6f 6d 20 74 68 |be taken| from th|
|00000e60| 65 20 42 58 20 61 6e 64 | 20 43 58 20 72 65 67 69 |e BX and| CX regi|
|00000e70| 73 74 65 72 73 2e 0d 0a | 0d 0a 20 20 20 20 20 49 |sters...|.. I|
|00000e80| 66 20 20 77 65 20 77 61 | 6e 74 20 74 6f 20 63 68 |f we wa|nt to ch|
|00000e90| 61 6e 67 65 20 6f 6e 65 | 20 6f 66 20 74 68 65 20 |ange one| of the |
|00000ea0| 72 65 67 69 73 74 65 72 | 73 2c 20 20 77 65 20 65 |register|s, we e|
|00000eb0| 6e 74 65 72 20 52 20 61 | 6e 64 20 20 74 68 65 20 |nter R a|nd the |
|00000ec0| 20 72 65 67 69 73 74 65 | 72 0d 0a 6e 61 6d 65 2e | registe|r..name.|
|00000ed0| 20 20 4c 65 74 27 73 20 | 70 6c 61 63 65 20 31 32 | Let's |place 12|
|00000ee0| 33 34 20 28 68 65 78 61 | 64 65 63 69 6d 61 6c 29 |34 (hexa|decimal)|
|00000ef0| 20 69 6e 20 74 68 65 20 | 41 58 20 72 65 67 69 73 | in the |AX regis|
|00000f00| 74 65 72 3a 0d 0a 0d 0a | 20 20 20 20 20 2d 52 20 |ter:....| -R |
|00000f10| 41 58 20 20 20 20 20 20 | 20 20 20 20 52 20 61 6e |AX | R an|
|00000f20| 64 20 41 58 20 72 65 67 | 69 73 74 65 72 0d 0a 20 |d AX reg|ister.. |
|00000f30| 20 20 20 20 41 58 20 30 | 30 30 30 20 20 20 20 20 | AX 0|000 |
|00000f40| 20 20 20 44 65 62 75 67 | 20 72 65 73 70 6f 6e 64 | Debug| respond|
|00000f50| 73 20 77 69 74 68 20 72 | 65 67 69 73 74 65 72 20 |s with r|egister |
|00000f60| 61 6e 64 20 63 6f 6e 74 | 65 6e 74 73 0d 0a 20 20 |and cont|ents.. |
|00000f70| 20 20 20 3a 20 31 32 33 | 34 20 20 20 20 20 20 20 | : 123|4 |
|00000f80| 20 20 3a 20 69 73 20 74 | 68 65 20 70 72 6f 6d 70 | : is t|he promp|
|00000f90| 74 20 66 6f 72 20 65 6e | 74 65 72 69 6e 67 20 6e |t for en|tering n|
|00000fa0| 65 77 20 63 6f 6e 74 65 | 6e 74 73 2e 20 20 57 65 |ew conte|nts. We|
|00000fb0| 20 72 65 73 70 6f 6e 64 | 20 31 32 33 34 0d 0a 20 | respond| 1234.. |
|00000fc0| 20 20 20 20 2d 20 20 20 | 20 20 20 20 20 20 20 20 | - | |
|00000fd0| 20 20 20 44 65 62 75 67 | 20 69 73 20 77 61 69 74 | Debug| is wait|
|00000fe0| 69 6e 67 20 66 6f 72 20 | 74 68 65 20 6e 65 78 74 |ing for |the next|
|00000ff0| 20 63 6f 6d 6d 61 6e 64 | 2e 0d 0a 0d 0a 20 20 20 | command|..... |
|00001000| 20 20 4e 6f 77 20 69 66 | 20 77 65 20 64 69 73 70 | Now if| we disp|
|00001010| 6c 61 79 20 74 68 65 20 | 72 65 67 69 73 74 65 72 |lay the |register|
|00001020| 73 2c 20 77 65 20 73 65 | 65 20 74 68 65 20 66 6f |s, we se|e the fo|
|00001030| 6c 6c 6f 77 69 6e 67 3a | 0d 0a 0d 0a 41 58 3d 31 |llowing:|....AX=1|
|00001040| 32 33 34 20 20 42 58 3d | 30 30 30 30 20 20 43 58 |234 BX=|0000 CX|
|00001050| 3d 30 34 34 36 20 20 44 | 58 3d 30 30 30 30 20 20 |=0446 D|X=0000 |
|00001060| 53 50 3d 46 46 46 45 20 | 20 42 50 3d 30 30 30 30 |SP=FFFE | BP=0000|
|00001070| 20 20 53 49 3d 30 30 30 | 30 20 20 44 49 3d 30 30 | SI=000|0 DI=00|
|00001080| 30 30 0d 0a 44 53 3d 36 | 38 39 37 20 20 45 53 3d |00..DS=6|897 ES=|
|00001090| 36 38 39 37 20 20 53 53 | 3d 36 38 39 37 20 20 43 |6897 SS|=6897 C|
|000010a0| 53 3d 36 38 39 37 20 20 | 49 50 3d 30 31 30 30 20 |S=6897 |IP=0100 |
|000010b0| 20 20 4e 56 20 55 50 20 | 44 49 20 50 4c 20 4e 5a | NV UP |DI PL NZ|
|000010c0| 20 4e 41 20 50 45 20 4e | 43 0d 0a 36 38 39 37 3a | NA PE N|C..6897:|
|000010d0| 30 31 30 30 20 45 39 36 | 42 30 31 20 20 20 20 20 |0100 E96|B01 |
|000010e0| 20 20 20 4a 4d 50 20 20 | 20 20 20 30 32 36 45 0d | JMP | 026E.|
|000010f0| 0a 0d 0a 4e 6f 74 65 20 | 74 68 61 74 20 6e 6f 74 |...Note |that not|
|00001100| 68 69 6e 67 20 68 61 73 | 20 63 68 61 6e 67 65 64 |hing has| changed|
|00001110| 2c 20 20 77 69 74 68 20 | 74 68 65 20 65 78 63 65 |, with |the exce|
|00001120| 70 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 41 58 20 |ption of| the AX |
|00001130| 72 65 67 69 73 74 65 72 | 2e 20 20 54 68 65 20 6e |register|. The n|
|00001140| 65 77 0d 0a 76 61 6c 75 | 65 20 68 61 73 20 62 65 |ew..valu|e has be|
|00001150| 65 6e 20 70 6c 61 63 65 | 64 20 69 6e 20 69 74 2c |en place|d in it,|
|00001160| 20 20 61 73 20 77 65 20 | 72 65 71 75 65 73 74 65 | as we |requeste|
|00001170| 64 2e 20 20 4f 6e 65 20 | 6e 6f 74 65 2e 20 20 54 |d. One |note. T|
|00001180| 68 65 20 52 65 67 69 73 | 74 65 72 20 63 6f 6d 6d |he Regis|ter comm|
|00001190| 61 6e 64 0d 0a 63 61 6e | 20 6f 6e 6c 79 20 62 65 |and..can| only be|
|000011a0| 20 75 73 65 64 20 66 6f | 72 20 31 36 20 62 69 74 | used fo|r 16 bit|
|000011b0| 20 72 65 67 69 73 74 65 | 72 73 20 28 41 58 2c 20 | registe|rs (AX, |
|000011c0| 20 42 58 2c 20 20 65 74 | 63 2e 29 2e 20 20 49 74 | BX, et|c.). It|
|000011d0| 20 63 61 6e 6e 6f 74 20 | 63 68 61 6e 67 65 20 74 | cannot |change t|
|000011e0| 68 65 20 38 0d 0a 62 69 | 74 20 72 65 67 69 73 74 |he 8..bi|t regist|
|000011f0| 65 72 73 20 28 41 48 2c | 20 20 41 4c 2c 20 20 42 |ers (AH,| AL, B|
|00001200| 48 2c 20 20 65 74 63 2e | 29 2e 20 20 54 6f 20 63 |H, etc.|). To c|
|00001210| 68 61 6e 67 65 20 6a 75 | 73 74 20 41 48 2c 20 66 |hange ju|st AH, f|
|00001220| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 79 6f 75 |or insta|nce, you|
|00001230| 20 6d 75 73 74 0d 0a 65 | 6e 74 65 72 20 74 68 65 | must..e|nter the|
|00001240| 20 74 68 65 20 64 61 74 | 61 20 69 6e 20 74 68 65 | the dat|a in the|
|00001250| 20 41 58 20 72 65 67 69 | 73 74 65 72 2c 20 77 69 | AX regi|ster, wi|
|00001260| 74 68 20 79 6f 75 72 20 | 6e 65 77 20 41 48 20 61 |th your |new AH a|
|00001270| 6e 64 20 74 68 65 20 6f | 6c 64 20 41 4c 20 76 61 |nd the o|ld AL va|
|00001280| 6c 75 65 73 2e 0d 0a 0d | 0a 0d 0a 20 20 20 20 20 |lues....|... |
|00001290| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 44 75 6d 70 | | Dump|
|000012b0| 20 63 6f 6d 6d 61 6e 64 | 0d 0a 0d 0a 20 20 20 20 | command|.... |
|000012c0| 20 4f 6e 65 20 6f 66 20 | 74 68 65 20 6f 74 68 65 | One of |the othe|
|000012d0| 72 20 6d 61 69 6e 20 66 | 65 61 74 75 72 65 73 20 |r main f|eatures |
|000012e0| 6f 66 20 44 45 42 55 47 | 20 69 73 20 74 68 65 20 |of DEBUG| is the |
|000012f0| 61 62 69 6c 69 74 79 20 | 74 6f 20 64 69 73 70 6c |ability |to displ|
|00001300| 61 79 20 61 72 65 61 73 | 20 6f 66 0d 0a 73 74 6f |ay areas| of..sto|
|00001310| 72 61 67 65 2e 20 20 20 | 55 6e 6c 65 73 73 20 79 |rage. |Unless y|
|00001320| 6f 75 20 61 72 65 20 72 | 65 61 6c 20 67 6f 6f 64 |ou are r|eal good|
|00001330| 20 61 74 20 72 65 61 64 | 69 6e 67 20 38 30 38 38 | at read|ing 8088|
|00001340| 20 6d 61 63 68 69 6e 65 | 20 6c 61 6e 67 75 61 67 | machine| languag|
|00001350| 65 2c 20 20 74 68 65 20 | 44 75 6d 70 0d 0a 63 6f |e, the |Dump..co|
|00001360| 6d 6d 61 6e 64 20 69 73 | 20 6d 6f 73 74 6c 79 20 |mmand is| mostly |
|00001370| 75 73 65 64 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |used to |display |
|00001380| 64 61 74 61 20 28 74 65 | 78 74 2c 20 20 66 6c 61 |data (te|xt, fla|
|00001390| 67 73 2c 20 20 65 74 63 | 2e 29 2e 20 20 54 6f 20 |gs, etc|.). To |
|000013a0| 64 69 73 70 6c 61 79 20 | 63 6f 64 65 2c 0d 0a 74 |display |code,..t|
|000013b0| 68 65 20 55 6e 61 73 73 | 65 6d 62 6c 65 20 63 6f |he Unass|emble co|
|000013c0| 6d 6d 61 6e 64 20 62 65 | 6c 6f 77 20 69 73 20 61 |mmand be|low is a|
|000013d0| 20 62 65 74 74 65 72 20 | 63 68 6f 69 63 65 2e 20 | better |choice. |
|000013e0| 20 20 49 66 20 77 65 20 | 65 6e 74 65 72 20 74 68 | If we |enter th|
|000013f0| 65 20 44 75 6d 70 20 63 | 6f 6d 6d 61 6e 64 0d 0a |e Dump c|ommand..|
|00001400| 61 74 20 74 68 69 73 20 | 74 69 6d 65 2c 20 20 44 |at this |time, D|
|00001410| 45 42 55 47 20 77 69 6c | 6c 20 64 65 66 61 75 6c |EBUG wil|l defaul|
|00001420| 74 20 74 6f 20 74 68 65 | 20 73 74 61 72 74 20 6f |t to the| start o|
|00001430| 66 20 74 68 65 20 70 72 | 6f 67 72 61 6d 2e 20 20 |f the pr|ogram. |
|00001440| 20 49 74 20 75 73 65 73 | 20 74 68 65 20 44 53 0d | It uses| the DS.|
|00001450| 0a 72 65 67 69 73 74 65 | 72 20 61 73 20 69 74 27 |.registe|r as it'|
|00001460| 73 20 64 65 66 61 75 6c | 74 2c 20 20 61 6e 64 2c |s defaul|t, and,|
|00001470| 20 20 73 69 6e 63 65 20 | 74 68 69 73 20 69 73 20 | since |this is |
|00001480| 61 20 2e 43 4f 4d 20 66 | 69 6c 65 2c 20 20 62 65 |a .COM f|ile, be|
|00001490| 67 69 6e 73 20 61 74 20 | 44 53 3a 30 31 30 30 2e |gins at |DS:0100.|
|000014a0| 0d 0a 49 74 20 77 69 6c | 6c 20 62 79 20 64 65 66 |..It wil|l by def|
|000014b0| 61 75 6c 74 20 64 69 73 | 70 6c 61 79 20 38 30 68 |ault dis|play 80h|
|000014c0| 20 28 31 32 38 64 29 20 | 62 79 74 65 73 20 6f 66 | (128d) |bytes of|
|000014d0| 20 64 61 74 61 2c 20 6f | 72 20 74 68 65 20 6c 65 | data, o|r the le|
|000014e0| 6e 67 74 68 20 79 6f 75 | 20 73 70 65 63 69 66 79 |ngth you| specify|
|000014f0| 2e 0d 0a 54 68 65 20 20 | 6e 65 78 74 20 20 65 78 |...The |next ex|
|00001500| 65 63 75 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 44 |ecution |of the D|
|00001510| 75 6d 70 20 63 6f 6d 6d | 61 6e 64 20 77 69 6c 6c |ump comm|and will|
|00001520| 20 64 69 73 70 6c 61 79 | 20 74 68 65 20 66 6f 6c | display| the fol|
|00001530| 6c 6f 77 69 6e 67 20 38 | 30 68 20 20 62 79 74 65 |lowing 8|0h byte|
|00001540| 73 2c 0d 0a 61 6e 64 20 | 73 6f 20 6f 6e 2e 20 20 |s,..and |so on. |
|00001550| 20 46 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 74 68 | For exa|mple, th|
|00001560| 65 20 66 69 72 73 74 20 | 65 78 65 63 75 74 69 6f |e first |executio|
|00001570| 6e 20 6f 66 20 44 20 77 | 69 6c 6c 20 64 69 73 70 |n of D w|ill disp|
|00001580| 6c 61 79 20 44 53 3a 30 | 31 30 30 20 66 6f 72 20 |lay DS:0|100 for |
|00001590| 38 30 68 0d 0a 62 79 74 | 65 73 2c 20 20 74 68 65 |80h..byt|es, the|
|000015a0| 20 6e 65 78 74 20 6f 6e | 65 20 44 53 3a 30 31 38 | next on|e DS:018|
|000015b0| 30 20 66 6f 72 20 38 30 | 68 20 62 79 74 65 73 2c |0 for 80|h bytes,|
|000015c0| 20 20 65 74 63 2e 20 20 | 20 4f 66 20 63 6f 75 72 | etc. | Of cour|
|000015d0| 73 65 2c 20 61 62 73 6f | 6c 75 74 65 20 73 65 67 |se, abso|lute seg|
|000015e0| 6d 65 6e 74 0d 0a 61 6e | 64 20 20 73 65 67 6d 65 |ment..an|d segme|
|000015f0| 6e 74 20 72 65 67 69 73 | 74 65 72 20 6f 76 65 72 |nt regis|ter over|
|00001600| 72 69 64 65 73 20 63 61 | 6e 20 62 65 20 75 73 65 |rides ca|n be use|
|00001610| 64 2c 20 20 62 75 74 20 | 6f 6e 6c 79 20 68 65 78 |d, but |only hex|
|00001620| 20 6e 75 6d 62 65 72 73 | 20 63 61 6e 20 62 65 20 | numbers| can be |
|00001630| 20 75 73 65 64 0d 0a 66 | 6f 72 20 74 68 65 20 6f | used..f|or the o|
|00001640| 66 66 73 65 74 2e 20 20 | 54 68 61 74 20 69 73 2c |ffset. |That is,|
|00001650| 20 44 20 44 53 3a 42 58 | 20 69 73 20 69 6e 76 61 | D DS:BX| is inva|
|00001660| 6c 69 64 2e 0d 0a 0d 0a | 20 20 20 20 20 57 69 74 |lid.....| Wit|
|00001670| 68 20 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 6c 6f |h our pr|ogram lo|
|00001680| 61 64 65 64 2c 20 69 66 | 20 77 65 20 65 6e 74 65 |aded, if| we ente|
|00001690| 72 20 74 68 65 20 44 75 | 6d 70 20 63 6f 6d 6d 61 |r the Du|mp comma|
|000016a0| 6e 64 2c 20 77 65 20 77 | 69 6c 6c 20 73 65 65 20 |nd, we w|ill see |
|000016b0| 74 68 69 73 3a 0d 0a 0d | 0a 36 38 39 37 3a 30 31 |this:...|.6897:01|
|000016c0| 30 30 20 20 45 39 20 36 | 42 20 30 31 20 34 33 20 |00 E9 6|B 01 43 |
|000016d0| 34 43 20 34 46 20 34 33 | 20 34 42 2d 32 45 20 34 |4C 4F 43| 4B-2E 4|
|000016e0| 31 20 35 33 20 34 44 20 | 34 33 20 36 46 20 37 30 |1 53 4D |43 6F 70|
|000016f0| 20 37 39 20 20 20 69 6b | 2e 43 4c 4f 43 4b 2e 41 | 79 ik|.CLOCK.A|
|00001700| 53 4d 43 6f 70 79 0d 0a | 36 38 39 37 3a 30 31 31 |SMCopy..|6897:011|
|00001710| 30 20 20 37 32 20 36 39 | 20 36 37 20 36 38 20 37 |0 72 69| 67 68 7|
|00001720| 34 20 32 30 20 32 38 20 | 34 33 2d 32 39 20 32 30 |4 20 28 |43-29 20|
|00001730| 20 33 31 20 33 39 20 33 | 38 20 33 33 20 34 41 20 | 31 39 3|8 33 4A |
|00001740| 36 35 20 20 20 72 69 67 | 68 74 20 28 43 29 20 31 |65 rig|ht (C) 1|
|00001750| 39 38 33 4a 65 0d 0a 36 | 38 39 37 3a 30 31 32 30 |983Je..6|897:0120|
|00001760| 20 20 37 32 20 37 32 20 | 37 39 20 32 30 20 34 34 | 72 72 |79 20 44|
|00001770| 20 32 45 20 32 30 20 35 | 33 2d 37 34 20 37 35 20 | 2E 20 5|3-74 75 |
|00001780| 36 33 20 36 42 20 36 43 | 20 36 35 20 35 30 20 37 |63 6B 6C| 65 50 7|
|00001790| 35 20 20 20 72 72 79 20 | 44 2e 20 53 74 75 63 6b |5 rry |D. Stuck|
|000017a0| 6c 65 50 75 0d 0a 36 38 | 39 37 3a 30 31 33 30 20 |lePu..68|97:0130 |
|000017b0| 20 36 32 20 36 43 20 36 | 39 20 36 33 20 32 30 20 | 62 6C 6|9 63 20 |
|000017c0| 36 34 20 36 46 20 36 44 | 2d 36 31 20 36 39 20 36 |64 6F 6D|-61 69 6|
|000017d0| 45 20 32 30 20 37 33 20 | 36 46 20 36 36 20 37 34 |E 20 73 |6F 66 74|
|000017e0| 20 20 20 62 6c 69 63 20 | 64 6f 6d 61 69 6e 20 73 | blic |domain s|
|000017f0| 6f 66 74 0d 0a 36 38 39 | 37 3a 30 31 34 30 20 20 |oft..689|7:0140 |
|00001800| 37 37 20 36 31 20 37 32 | 20 36 35 20 30 30 20 30 |77 61 72| 65 00 0|
|00001810| 30 20 30 30 20 30 30 2d | 30 30 20 30 30 20 30 30 |0 00 00-|00 00 00|
|00001820| 20 30 30 20 30 30 20 30 | 30 20 30 30 20 30 30 20 | 00 00 0|0 00 00 |
|00001830| 20 20 77 61 72 65 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e | ware..|........|
|00001840| 2e 2e 0d 0a 36 38 39 37 | 3a 30 31 35 30 20 20 30 |....6897|:0150 0|
|00001850| 30 20 30 30 20 30 30 20 | 30 30 20 30 30 20 30 30 |0 00 00 |00 00 00|
|00001860| 20 30 30 20 30 30 2d 30 | 30 20 32 34 20 30 30 20 | 00 00-0|0 24 00 |
|00001870| 30 30 20 30 30 20 30 30 | 20 30 30 20 30 30 20 20 |00 00 00| 00 00 |
|00001880| 20 2e 2e 2e 2e 2e 2e 2e | 2e 2e 24 2e 2e 2e 2e 2e | .......|..$.....|
|00001890| 2e 0d 0a 36 38 39 37 3a | 30 31 36 30 20 20 30 30 |...6897:|0160 00|
|000018a0| 20 30 30 20 30 30 20 30 | 30 20 30 30 20 30 30 20 | 00 00 0|0 00 00 |
|000018b0| 30 30 20 30 30 2d 30 30 | 20 30 30 20 30 30 20 30 |00 00-00| 00 00 0|
|000018c0| 30 20 30 30 20 30 30 20 | 30 30 20 30 30 20 20 20 |0 00 00 |00 00 |
|000018d0| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 2e 2e 2e 2e 2e |........|........|
|000018e0| 0d 0a 36 38 39 37 3a 30 | 31 37 30 20 20 30 30 20 |..6897:0|170 00 |
|000018f0| 30 30 20 30 30 20 30 30 | 20 30 30 20 30 30 20 30 |00 00 00| 00 00 0|
|00001900| 30 20 30 30 2d 30 30 20 | 30 30 20 30 30 20 30 30 |0 00-00 |00 00 00|
|00001910| 20 34 34 20 34 46 20 35 | 33 20 32 30 20 20 20 2e | 44 4F 5|3 20 .|
|00001920| 2e 2e 2e 2e 2e 2e 2e 2e | 2e 2e 2e 44 4f 53 0d 0a |........|...DOS..|
|00001930| 0d 0a 20 20 20 20 20 4e | 6f 74 69 63 65 20 74 68 |.. N|otice th|
|00001940| 61 74 20 74 68 65 20 6f | 75 74 70 75 74 20 66 72 |at the o|utput fr|
|00001950| 6f 6d 20 74 68 65 20 44 | 75 6d 70 20 63 6f 6d 6d |om the D|ump comm|
|00001960| 61 6e 64 20 69 73 20 64 | 69 76 69 64 65 64 20 69 |and is d|ivided i|
|00001970| 6e 74 6f 20 74 68 72 65 | 65 20 20 70 61 72 74 73 |nto thre|e parts|
|00001980| 2e 0d 0a 4f 6e 20 74 68 | 65 20 6c 65 66 74 2c 20 |...On th|e left, |
|00001990| 77 65 20 68 61 76 65 20 | 74 68 65 20 61 64 64 72 |we have |the addr|
|000019a0| 65 73 73 20 6f 66 20 74 | 68 65 20 66 69 72 73 74 |ess of t|he first|
|000019b0| 20 62 79 74 65 20 6f 6e | 20 74 68 65 20 6c 69 6e | byte on| the lin|
|000019c0| 65 2e 20 20 54 68 69 73 | 20 69 73 20 69 6e 20 74 |e. This| is in t|
|000019d0| 68 65 0d 0a 66 6f 72 6d | 61 74 20 53 65 67 6d 65 |he..form|at Segme|
|000019e0| 6e 74 3a 4f 66 66 73 65 | 74 2e 0d 0a 0d 0a 20 20 |nt:Offse|t..... |
|000019f0| 20 20 20 4e 65 78 74 20 | 20 63 6f 6d 65 73 20 74 | Next | comes t|
|00001a00| 68 65 20 20 68 65 78 20 | 64 61 74 61 20 61 74 20 |he hex |data at |
|00001a10| 74 68 61 74 20 6c 6f 63 | 61 74 69 6f 6e 2e 20 20 |that loc|ation. |
|00001a20| 20 44 65 62 75 67 20 77 | 69 6c 6c 20 61 6c 77 61 | Debug w|ill alwa|
|00001a30| 79 73 20 73 74 61 72 74 | 20 20 74 68 65 0d 0a 73 |ys start| the..s|
|00001a40| 65 63 6f 6e 64 20 6c 69 | 6e 65 20 61 74 20 61 20 |econd li|ne at a |
|00001a50| 31 36 20 62 79 74 65 20 | 62 6f 75 6e 64 61 72 79 |16 byte |boundary|
|00001a60| 3b 20 74 68 61 74 20 69 | 73 2c 20 69 66 20 79 6f |; that i|s, if yo|
|00001a70| 75 20 65 6e 74 65 72 65 | 64 20 44 20 31 30 39 2c |u entere|d D 109,|
|00001a80| 20 79 6f 75 20 77 6f 75 | 6c 64 20 67 65 74 0d 0a | you wou|ld get..|
|00001a90| 37 20 20 62 79 74 65 73 | 20 6f 66 20 69 6e 66 6f |7 bytes| of info|
|00001aa0| 72 6d 61 74 69 6f 6e 20 | 6f 6e 20 74 68 65 20 66 |rmation |on the f|
|00001ab0| 69 72 73 74 20 6c 69 6e | 65 20 28 31 30 39 2d 31 |irst lin|e (109-1|
|00001ac0| 30 46 29 2c 20 20 61 6e | 64 20 74 68 65 20 73 65 |0F), an|d the se|
|00001ad0| 63 6f 6e 64 20 6c 69 6e | 65 20 77 6f 75 6c 64 0d |cond lin|e would.|
|00001ae0| 0a 73 74 61 72 74 20 61 | 74 20 31 31 30 2e 20 20 |.start a|t 110. |
|00001af0| 20 54 68 65 20 6c 61 73 | 74 20 6c 69 6e 65 20 6f | The las|t line o|
|00001b00| 66 20 64 61 74 61 20 77 | 6f 75 6c 64 20 68 61 76 |f data w|ould hav|
|00001b10| 65 20 74 68 65 20 72 65 | 6d 61 69 6e 69 6e 67 20 |e the re|maining |
|00001b20| 39 20 62 79 74 65 73 20 | 6f 66 20 64 61 74 61 2c |9 bytes |of data,|
|00001b30| 0d 0a 73 6f 20 38 30 68 | 20 62 79 74 65 73 20 61 |..so 80h| bytes a|
|00001b40| 72 65 20 73 74 69 6c 6c | 20 64 69 73 70 6c 61 79 |re still| display|
|00001b50| 65 64 2e 0d 0a 0d 0a 20 | 20 20 20 20 54 68 65 20 |ed..... | The |
|00001b60| 74 68 69 72 64 20 61 72 | 65 61 20 69 73 20 74 68 |third ar|ea is th|
|00001b70| 65 20 41 53 43 49 49 20 | 72 65 70 72 65 73 65 6e |e ASCII |represen|
|00001b80| 74 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 64 61 |tation o|f the da|
|00001b90| 74 61 2e 20 20 4f 6e 6c | 79 20 74 68 65 20 73 74 |ta. Onl|y the st|
|00001ba0| 61 6e 64 61 72 64 0d 0a | 41 53 43 49 49 20 20 63 |andard..|ASCII c|
|00001bb0| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 69 73 20 |haracter| set is |
|00001bc0| 64 69 73 70 6c 61 79 65 | 64 2e 20 20 20 53 70 65 |displaye|d. Spe|
|00001bd0| 63 69 61 6c 20 63 68 61 | 72 61 63 74 65 72 73 20 |cial cha|racters |
|00001be0| 66 6f 72 20 74 68 65 20 | 49 42 4d 50 43 20 20 61 |for the |IBMPC a|
|00001bf0| 72 65 20 20 6e 6f 74 0d | 0a 64 69 73 70 6c 61 79 |re not.|.display|
|00001c00| 65 64 3b 20 20 72 61 74 | 68 65 72 20 70 65 72 69 |ed; rat|her peri|
|00001c10| 6f 64 73 20 28 2e 29 20 | 61 72 65 20 73 68 6f 77 |ods (.) |are show|
|00001c20| 6e 20 69 6e 20 74 68 65 | 69 72 20 70 6c 61 63 65 |n in the|ir place|
|00001c30| 2e 20 20 20 54 68 69 73 | 20 6d 61 6b 65 73 20 73 |. This| makes s|
|00001c40| 65 61 72 63 68 69 6e 67 | 0d 0a 66 6f 72 20 70 6c |earching|..for pl|
|00001c50| 61 69 6e 20 74 65 78 74 | 20 6d 75 63 68 20 65 61 |ain text| much ea|
|00001c60| 73 69 65 72 20 74 6f 20 | 64 6f 2e 0d 0a 0d 0a 20 |sier to |do..... |
|00001c70| 20 20 20 20 44 75 6d 70 | 20 63 61 6e 20 62 65 20 | Dump| can be |
|00001c80| 75 73 65 64 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |used to |display |
|00001c90| 75 70 20 74 6f 20 36 34 | 4b 20 62 79 74 65 73 20 |up to 64|K bytes |
|00001ca0| 6f 66 20 64 61 74 61 2c | 20 77 69 74 68 20 6f 6e |of data,| with on|
|00001cb0| 65 20 72 65 73 74 72 69 | 63 74 69 6f 6e 3a 0d 0a |e restri|ction:..|
|00001cc0| 49 74 20 63 61 6e 6e 6f | 74 20 63 72 6f 73 73 20 |It canno|t cross |
|00001cd0| 61 20 73 65 67 6d 65 6e | 74 20 62 6f 75 6e 64 61 |a segmen|t bounda|
|00001ce0| 72 79 2e 20 20 20 54 68 | 61 74 20 69 73 2c 20 20 |ry. Th|at is, |
|00001cf0| 44 20 30 31 30 30 20 6c | 20 66 30 30 30 20 69 73 |D 0100 l| f000 is|
|00001d00| 20 76 61 6c 69 64 20 28 | 64 69 73 70 6c 61 79 0d | valid (|display.|
|00001d10| 0a 44 53 3a 30 31 30 30 | 20 20 74 6f 20 20 44 53 |.DS:0100| to DS|
|00001d20| 3a 46 30 46 46 29 2c 20 | 20 62 75 74 20 20 44 20 |:F0FF), | but D |
|00001d30| 39 30 30 30 20 6c 20 38 | 30 30 30 20 69 73 20 6e |9000 l 8|000 is n|
|00001d40| 6f 74 20 28 38 30 30 30 | 68 20 2b 39 30 30 30 68 |ot (8000|h +9000h|
|00001d50| 20 20 3d 20 20 31 31 30 | 30 30 68 20 20 61 6e 64 | = 110|00h and|
|00001d60| 0d 0a 63 72 6f 73 73 65 | 73 20 61 20 73 65 67 6d |..crosse|s a segm|
|00001d70| 65 6e 74 20 62 6f 75 6e | 64 61 72 79 29 2e 0d 0a |ent boun|dary)...|
|00001d80| 0d 0a 20 20 20 20 20 53 | 69 6e 63 65 20 20 36 34 |.. S|ince 64|
|00001d90| 4b 20 20 69 73 20 31 30 | 30 30 30 68 20 61 6e 64 |K is 10|000h and|
|00001da0| 20 63 61 6e 6e 6f 74 20 | 66 69 74 20 69 6e 74 6f | cannot |fit into|
|00001db0| 20 66 6f 75 72 20 68 65 | 78 20 63 68 61 72 61 63 | four he|x charac|
|00001dc0| 74 65 72 73 2c 20 20 44 | 75 6d 70 20 20 75 73 65 |ters, D|ump use|
|00001dd0| 73 0d 0a 30 30 30 30 20 | 74 6f 20 69 6e 64 69 63 |s..0000 |to indic|
|00001de0| 61 74 65 20 36 34 4b 2e | 20 20 54 6f 20 64 69 73 |ate 64K.| To dis|
|00001df0| 70 6c 61 79 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |play a c|omplete |
|00001e00| 73 65 67 6d 65 6e 74 2c | 20 65 6e 74 65 72 20 44 |segment,| enter D|
|00001e10| 20 30 20 6c 20 30 2e 20 | 20 54 68 69 73 20 77 69 | 0 l 0. | This wi|
|00001e20| 6c 6c 0d 0a 64 69 73 70 | 6c 61 79 20 74 68 65 20 |ll..disp|lay the |
|00001e30| 74 6f 74 61 6c 20 36 34 | 4b 20 73 65 67 6d 65 6e |total 64|K segmen|
|00001e40| 74 2e 0d 0a 0d 0a 20 20 | 20 20 20 49 66 2c 20 20 |t..... | If, |
|00001e50| 61 74 20 20 61 6e 79 20 | 74 69 6d 65 20 79 6f 75 |at any |time you|
|00001e60| 20 77 61 6e 74 20 74 6f | 20 73 75 73 70 65 6e 64 | want to| suspend|
|00001e70| 20 74 68 65 20 64 69 73 | 70 6c 61 79 20 20 6f 66 | the dis|play of|
|00001e80| 20 20 64 61 74 61 2c 20 | 20 43 6e 74 6c 2d 4e 75 | data, | Cntl-Nu|
|00001e90| 6d 4c 6f 63 6b 0d 0a 77 | 6f 72 6b 73 20 61 73 20 |mLock..w|orks as |
|00001ea0| 75 73 75 61 6c 2e 20 20 | 20 49 66 20 79 6f 75 20 |usual. | If you |
|00001eb0| 77 61 6e 74 20 74 6f 20 | 74 65 72 6d 69 6e 61 74 |want to |terminat|
|00001ec0| 65 20 74 68 65 20 64 69 | 73 70 6c 61 79 2c 20 43 |e the di|splay, C|
|00001ed0| 6e 74 6c 2d 42 72 65 61 | 6b 20 77 69 6c 6c 20 73 |ntl-Brea|k will s|
|00001ee0| 74 6f 70 20 69 74 0d 0a | 61 6e 64 20 72 65 74 75 |top it..|and retu|
|00001ef0| 72 6e 20 79 6f 75 20 74 | 6f 20 74 68 65 20 44 45 |rn you t|o the DE|
|00001f00| 42 55 47 20 70 72 6f 6d | 70 74 2e 0d 0a 0d 0a 0d |BUG prom|pt......|
|00001f10| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f30| 20 20 20 20 20 20 20 53 | 65 61 72 63 68 0d 0a 0d | S|earch...|
|00001f40| 0a 20 20 20 20 20 53 65 | 61 72 63 68 20 20 69 73 |. Se|arch is|
|00001f50| 20 20 75 73 65 64 20 20 | 74 6f 20 66 69 6e 64 20 | used |to find |
|00001f60| 74 68 65 20 6f 63 63 75 | 72 72 65 6e 63 65 20 6f |the occu|rrence o|
|00001f70| 66 20 61 20 73 70 65 63 | 69 66 69 63 20 62 79 74 |f a spec|ific byt|
|00001f80| 65 20 6f 72 20 20 73 65 | 72 69 65 73 20 20 6f 66 |e or se|ries of|
|00001f90| 0d 0a 62 79 74 65 73 20 | 20 77 69 74 68 69 6e 20 |..bytes | within |
|00001fa0| 61 20 73 65 67 6d 65 6e | 74 2e 20 20 20 54 68 65 |a segmen|t. The|
|00001fb0| 20 61 64 64 72 65 73 73 | 20 70 61 72 61 6d 65 74 | address| paramet|
|00001fc0| 65 72 73 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |ers are |the same|
|00001fd0| 20 61 73 20 66 6f 72 20 | 74 68 65 20 20 44 75 6d | as for |the Dum|
|00001fe0| 70 0d 0a 63 6f 6d 6d 61 | 6e 64 2c 20 73 6f 20 77 |p..comma|nd, so w|
|00001ff0| 65 20 77 69 6c 6c 20 6e | 6f 74 20 64 75 70 6c 69 |e will n|ot dupli|
|00002000| 63 61 74 65 20 74 68 65 | 6d 20 68 65 72 65 2e 20 |cate the|m here. |
|00002010| 20 48 6f 77 65 76 65 72 | 2c 20 77 65 20 61 6c 73 | However|, we als|
|00002020| 6f 20 6e 65 65 64 20 74 | 68 65 20 64 61 74 61 20 |o need t|he data |
|00002030| 74 6f 0d 0a 62 65 20 73 | 65 61 72 63 68 65 64 20 |to..be s|earched |
|00002040| 66 6f 72 2e 20 20 20 54 | 68 69 73 20 64 61 74 61 |for. T|his data|
|00002050| 20 63 61 6e 20 62 65 20 | 65 6e 74 65 72 65 64 20 | can be |entered |
|00002060| 61 73 20 65 69 74 68 65 | 72 20 68 65 78 61 64 65 |as eithe|r hexade|
|00002070| 63 69 6d 61 6c 20 6f 72 | 20 20 63 68 61 72 61 63 |cimal or| charac|
|00002080| 74 65 72 0d 0a 64 61 74 | 61 2e 20 20 20 48 65 78 |ter..dat|a. Hex|
|00002090| 61 64 65 63 69 6d 61 6c | 20 20 64 61 74 61 20 69 |adecimal| data i|
|000020a0| 73 20 65 6e 74 65 72 65 | 64 20 61 73 20 62 79 74 |s entere|d as byt|
|000020b0| 65 73 2c 20 20 77 69 74 | 68 20 61 20 73 70 61 63 |es, wit|h a spac|
|000020c0| 65 20 6f 72 20 61 20 63 | 6f 6d 6d 61 20 61 73 20 |e or a c|omma as |
|000020d0| 20 74 68 65 0d 0a 73 65 | 70 61 72 61 74 6f 72 2e | the..se|parator.|
|000020e0| 20 20 20 43 68 61 72 61 | 63 74 65 72 20 20 64 61 | Chara|cter da|
|000020f0| 74 61 20 69 73 20 65 6e | 63 6c 6f 73 65 64 20 62 |ta is en|closed b|
|00002100| 79 20 73 69 6e 67 6c 65 | 20 6f 72 20 64 6f 75 62 |y single| or doub|
|00002110| 6c 65 20 71 75 6f 74 65 | 73 2e 20 20 20 48 65 78 |le quote|s. Hex|
|00002120| 20 20 61 6e 64 0d 0a 63 | 68 61 72 61 63 74 65 72 | and..c|haracter|
|00002130| 20 64 61 74 61 20 63 61 | 6e 20 62 65 20 6d 69 78 | data ca|n be mix|
|00002140| 65 64 20 69 6e 20 74 68 | 65 20 73 61 6d 65 20 72 |ed in th|e same r|
|00002150| 65 71 75 65 73 74 2c 20 | 20 69 2e 65 2e 20 53 20 |equest, | i.e. S |
|00002160| 30 20 6c 20 31 30 30 20 | 31 32 20 33 34 20 27 61 |0 l 100 |12 34 'a|
|00002170| 62 63 27 20 35 36 0d 0a | 69 73 20 20 76 61 6c 69 |bc' 56..|is vali|
|00002180| 64 2c 20 20 61 6e 64 20 | 72 65 71 75 65 73 74 73 |d, and |requests|
|00002190| 20 61 20 73 65 61 72 63 | 68 20 66 72 6f 6d 20 44 | a searc|h from D|
|000021a0| 53 3a 30 30 30 30 20 74 | 68 72 6f 75 67 68 20 44 |S:0000 t|hrough D|
|000021b0| 53 3a 30 30 46 46 20 66 | 6f 72 20 74 68 65 20 73 |S:00FF f|or the s|
|000021c0| 65 71 75 65 6e 63 65 0d | 0a 6f 66 20 31 32 68 20 |equence.|.of 12h |
|000021d0| 33 34 68 20 61 20 62 20 | 63 20 35 36 68 2c 20 20 |34h a b |c 56h, |
|000021e0| 69 6e 20 74 68 61 74 20 | 6f 72 64 65 72 2e 20 20 |in that |order. |
|000021f0| 55 70 70 65 72 20 63 61 | 73 65 20 63 68 61 72 61 |Upper ca|se chara|
|00002200| 63 74 65 72 73 20 61 72 | 65 20 64 69 66 66 65 72 |cters ar|e differ|
|00002210| 65 6e 74 20 74 68 61 6e | 0d 0a 6c 6f 77 65 72 20 |ent than|..lower |
|00002220| 20 63 61 73 65 20 20 63 | 68 61 72 61 63 74 65 72 | case c|haracter|
|00002230| 73 2c 20 20 61 6e 64 20 | 61 20 6d 61 74 63 68 20 |s, and |a match |
|00002240| 77 69 6c 6c 20 6e 6f 74 | 20 62 65 20 66 6f 75 6e |will not| be foun|
|00002250| 64 20 69 66 20 74 68 65 | 20 20 63 61 73 65 20 20 |d if the| case |
|00002260| 64 6f 65 73 20 20 6e 6f | 74 0d 0a 6d 61 74 63 68 |does no|t..match|
|00002270| 2e 20 20 20 46 6f 72 20 | 20 69 6e 73 74 61 6e 63 |. For | instanc|
|00002280| 65 2c 20 20 27 41 42 43 | 27 20 20 69 73 20 6e 6f |e, 'ABC|' is no|
|00002290| 74 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 27 61 |t the sa|me as 'a|
|000022a0| 62 63 27 20 6f 72 20 27 | 41 62 63 27 20 6f 72 20 |bc' or '|Abc' or |
|000022b0| 61 6e 79 20 20 6f 74 68 | 65 72 0d 0a 63 6f 6d 62 |any oth|er..comb|
|000022c0| 69 6e 61 74 69 6f 6e 20 | 6f 66 20 75 70 70 65 72 |ination |of upper|
|000022d0| 20 61 6e 64 20 6c 6f 77 | 65 72 20 63 61 73 65 20 | and low|er case |
|000022e0| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 48 6f 77 |characte|rs. How|
|000022f0| 65 76 65 72 2c 20 27 41 | 42 43 27 20 69 73 20 69 |ever, 'A|BC' is i|
|00002300| 64 65 6e 74 69 63 61 6c | 20 74 6f 0d 0a 22 41 42 |dentical| to.."AB|
|00002310| 43 22 2c 20 73 69 6e 63 | 65 20 74 68 65 20 73 69 |C", sinc|e the si|
|00002320| 6e 67 6c 65 20 61 6e 64 | 20 64 6f 75 62 6c 65 20 |ngle and| double |
|00002330| 71 75 6f 74 65 73 20 61 | 72 65 20 73 65 70 61 72 |quotes a|re separ|
|00002340| 61 74 6f 72 73 20 6f 6e | 6c 79 2e 0d 0a 0d 0a 20 |ators on|ly..... |
|00002350| 20 20 20 20 41 6e 20 65 | 78 61 6d 70 6c 65 20 69 | An e|xample i|
|00002360| 73 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 20 74 68 |s lookin|g for th|
|00002370| 65 20 73 74 72 69 6e 67 | 20 27 53 61 74 27 2e 20 |e string| 'Sat'. |
|00002380| 20 48 65 72 65 27 73 20 | 77 68 61 74 20 77 6f 75 | Here's |what wou|
|00002390| 6c 64 20 68 61 70 70 65 | 6e 3a 0d 0a 0d 0a 20 20 |ld happe|n:.... |
|000023a0| 20 20 20 2d 53 20 30 20 | 6c 20 30 20 27 53 61 74 | -S 0 |l 0 'Sat|
|000023b0| 27 0d 0a 20 20 20 20 20 | 36 38 39 37 3a 30 32 33 |'.. |6897:023|
|000023c0| 35 0d 0a 20 20 20 20 20 | 2d 0d 0a 41 67 61 69 6e |5.. |-..Again|
|000023d0| 2c 20 20 74 68 65 20 20 | 61 63 74 75 61 6c 20 73 |, the |actual s|
|000023e0| 65 67 6d 65 6e 74 20 77 | 6f 75 6c 64 20 62 65 20 |egment w|ould be |
|000023f0| 64 69 66 66 65 72 65 6e | 74 20 69 6e 20 79 6f 75 |differen|t in you|
|00002400| 72 20 73 79 73 74 65 6d | 2c 20 20 62 75 74 20 74 |r system|, but t|
|00002410| 68 65 20 20 6f 66 66 73 | 65 74 0d 0a 73 68 6f 75 |he offs|et..shou|
|00002420| 6c 64 20 62 65 20 74 68 | 65 20 73 61 6d 65 2e 20 |ld be th|e same. |
|00002430| 20 20 49 66 20 77 65 20 | 74 68 65 6e 20 64 69 73 | If we |then dis|
|00002440| 70 6c 61 79 65 64 20 74 | 68 65 20 64 61 74 61 2c |played t|he data,|
|00002450| 20 20 77 65 20 77 6f 75 | 6c 64 20 66 69 6e 64 20 | we wou|ld find |
|00002460| 74 68 65 20 20 73 74 72 | 69 6e 67 0d 0a 27 53 61 |the str|ing..'Sa|
|00002470| 74 75 72 64 61 79 27 20 | 20 61 74 20 74 68 69 73 |turday' | at this|
|00002480| 20 6c 6f 63 61 74 69 6f | 6e 2e 20 20 20 57 65 20 | locatio|n. We |
|00002490| 63 6f 75 6c 64 20 61 6c | 73 6f 20 73 65 61 72 63 |could al|so searc|
|000024a0| 68 20 6f 6e 20 27 74 75 | 72 64 61 27 2c 20 20 6f |h on 'tu|rda', o|
|000024b0| 72 20 61 6e 79 20 20 6f | 74 68 65 72 0d 0a 63 6f |r any o|ther..co|
|000024c0| 6d 62 69 6e 61 74 69 6f | 6e 20 20 6f 66 20 63 68 |mbinatio|n of ch|
|000024d0| 61 72 61 63 74 65 72 73 | 20 69 6e 20 74 68 65 20 |aracters| in the |
|000024e0| 73 74 72 69 6e 67 2e 20 | 20 20 49 66 20 77 65 20 |string. | If we |
|000024f0| 77 61 6e 74 65 64 20 74 | 6f 20 66 69 6e 64 20 65 |wanted t|o find e|
|00002500| 76 65 72 79 20 70 6c 61 | 63 65 20 77 65 0d 0a 64 |very pla|ce we..d|
|00002510| 69 64 20 61 6e 20 49 6e | 74 20 32 31 68 20 28 6d |id an In|t 21h (m|
|00002520| 61 63 68 69 6e 65 20 63 | 6f 64 65 20 66 6f 72 20 |achine c|ode for |
|00002530| 49 6e 74 20 69 73 20 43 | 44 29 2c 20 77 65 20 77 |Int is C|D), we w|
|00002540| 6f 75 6c 64 20 64 6f 20 | 74 68 65 20 66 6f 6c 6c |ould do |the foll|
|00002550| 6f 77 69 6e 67 3a 0d 0a | 0d 0a 20 20 20 20 20 2d |owing:..|.. -|
|00002560| 53 20 30 20 6c 20 30 20 | 63 64 20 32 31 0d 0a 20 |S 0 l 0 |cd 21.. |
|00002570| 20 20 20 20 36 38 39 37 | 3a 30 30 35 30 0d 0a 20 | 6897|:0050.. |
|00002580| 20 20 20 20 36 38 39 37 | 3a 30 32 37 34 0d 0a 20 | 6897|:0274.. |
|00002590| 20 20 20 20 36 38 39 37 | 3a 30 32 37 46 0d 0a 20 | 6897|:027F.. |
|000025a0| 20 20 20 20 36 38 39 37 | 3a 30 32 38 42 0d 0a 20 | 6897|:028B.. |
|000025b0| 20 20 20 20 36 38 39 37 | 3a 30 32 41 44 0d 0a 20 | 6897|:02AD.. |
|000025c0| 20 20 20 20 36 38 39 37 | 3a 30 32 42 34 0d 0a 20 | 6897|:02B4.. |
|000025d0| 20 20 20 20 36 38 39 37 | 3a 30 33 33 32 0d 0a 20 | 6897|:0332.. |
|000025e0| 20 20 20 20 36 38 39 37 | 3a 30 33 34 35 0d 0a 20 | 6897|:0345.. |
|000025f0| 20 20 20 20 36 38 39 37 | 3a 30 33 34 43 0d 0a 20 | 6897|:034C.. |
|00002600| 20 20 20 20 36 38 39 37 | 3a 30 34 33 41 0d 0a 20 | 6897|:043A.. |
|00002610| 20 20 20 20 36 38 39 37 | 3a 30 34 36 37 0d 0a 20 | 6897|:0467.. |
|00002620| 20 20 20 20 36 38 39 37 | 3a 30 34 37 41 0d 0a 20 | 6897|:047A.. |
|00002630| 20 20 20 20 36 38 39 37 | 3a 30 35 31 33 0d 0a 20 | 6897|:0513.. |
|00002640| 20 20 20 20 36 38 39 37 | 3a 30 35 32 36 0d 0a 20 | 6897|:0526.. |
|00002650| 20 20 20 20 36 38 39 37 | 3a 30 35 33 37 0d 0a 20 | 6897|:0537.. |
|00002660| 20 20 20 20 36 38 39 37 | 3a 30 35 34 34 0d 0a 20 | 6897|:0544.. |
|00002670| 20 20 20 20 2d 0d 0a 0d | 0a 44 45 42 55 47 20 66 | -...|.DEBUG f|
|00002680| 6f 75 6e 64 20 74 68 65 | 20 68 65 78 20 64 61 74 |ound the| hex dat|
|00002690| 61 20 43 44 20 32 31 20 | 61 74 20 74 68 65 20 61 |a CD 21 |at the a|
|000026a0| 62 6f 76 65 20 6c 6f 63 | 61 74 69 6f 6e 73 2e 20 |bove loc|ations. |
|000026b0| 20 54 68 69 73 20 64 6f | 65 73 20 6e 6f 74 20 6d | This do|es not m|
|000026c0| 65 61 6e 20 74 68 61 74 | 0d 0a 61 6c 6c 20 74 68 |ean that|..all th|
|000026d0| 65 73 65 20 61 64 64 72 | 65 73 73 65 73 20 61 72 |ese addr|esses ar|
|000026e0| 65 20 49 4e 54 20 32 31 | 27 73 2c 20 6f 6e 6c 79 |e INT 21|'s, only|
|000026f0| 20 74 68 61 74 20 74 68 | 61 74 20 64 61 74 61 20 | that th|at data |
|00002700| 77 61 73 20 74 68 65 72 | 65 2e 20 20 49 74 20 63 |was ther|e. It c|
|00002710| 6f 75 6c 64 20 28 61 6e | 64 0d 0a 6d 6f 73 74 20 |ould (an|d..most |
|00002720| 6c 69 6b 65 6c 79 20 69 | 73 29 20 61 6e 20 69 6e |likely i|s) an in|
|00002730| 73 74 72 75 63 74 69 6f | 6e 2c 20 20 62 75 74 20 |structio|n, but |
|00002740| 69 74 20 63 6f 75 6c 64 | 20 61 6c 73 6f 20 62 65 |it could| also be|
|00002750| 20 61 6e 20 61 64 64 72 | 65 73 73 2c 20 74 68 65 | an addr|ess, the|
|00002760| 20 6c 61 73 74 20 70 61 | 72 74 0d 0a 6f 66 20 61 | last pa|rt..of a|
|00002770| 20 4a 4d 50 20 69 6e 73 | 74 72 75 63 74 69 6f 6e | JMP ins|truction|
|00002780| 2c 20 20 65 74 63 2e 20 | 20 59 6f 75 20 77 69 6c |, etc. | You wil|
|00002790| 6c 20 68 61 76 65 20 74 | 6f 20 6d 61 6e 75 61 6c |l have t|o manual|
|000027a0| 6c 79 20 69 6e 73 70 65 | 63 74 20 74 68 65 20 63 |ly inspe|ct the c|
|000027b0| 6f 64 65 20 61 74 20 74 | 68 61 74 0d 0a 61 72 65 |ode at t|hat..are|
|000027c0| 61 20 74 6f 20 6d 61 6b | 65 20 73 75 72 65 20 69 |a to mak|e sure i|
|000027d0| 74 20 69 73 20 61 6e 20 | 49 4e 54 20 32 31 2e 20 |t is an |INT 21. |
|000027e0| 20 20 28 59 6f 75 20 64 | 6f 6e 27 74 20 65 78 70 | (You d|on't exp|
|000027f0| 65 63 74 20 74 68 65 20 | 6d 61 63 68 69 6e 65 20 |ect the |machine |
|00002800| 74 6f 20 64 6f 20 65 76 | 65 72 79 2d 0d 0a 74 68 |to do ev|ery-..th|
|00002810| 69 6e 67 2c 20 64 6f 20 | 79 6f 75 3f 29 2e 0d 0a |ing, do |you?)...|
|00002820| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00002830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002840| 20 20 20 20 43 6f 6d 70 | 61 72 65 20 63 6f 6d 6d | Comp|are comm|
|00002850| 61 6e 64 0d 0a 0d 0a 20 | 20 20 20 20 41 6c 6f 6e |and.... | Alon|
|00002860| 67 20 20 74 68 65 20 20 | 73 61 6d 65 20 6c 69 6e |g the |same lin|
|00002870| 65 73 20 6f 66 20 44 75 | 6d 70 20 61 6e 64 20 53 |es of Du|mp and S|
|00002880| 65 61 72 63 68 20 63 6f | 6d 6d 61 6e 64 73 2c 20 |earch co|mmands, |
|00002890| 20 77 65 20 68 61 76 65 | 20 20 74 68 65 20 20 43 | we have| the C|
|000028a0| 6f 6d 70 61 72 65 0d 0a | 63 6f 6d 6d 61 6e 64 2e |ompare..|command.|
|000028b0| 20 20 20 43 6f 6d 70 61 | 72 65 20 20 77 69 6c 6c | Compa|re will|
|000028c0| 20 74 61 6b 65 20 74 77 | 6f 20 62 6c 6f 63 6b 73 | take tw|o blocks|
|000028d0| 20 6f 66 20 6d 65 6d 6f | 72 79 20 61 6e 64 20 63 | of memo|ry and c|
|000028e0| 6f 6d 70 61 72 65 20 74 | 68 65 6d 2c 20 20 62 79 |ompare t|hem, by|
|000028f0| 74 65 20 20 66 6f 72 0d | 0a 62 79 74 65 2e 20 20 |te for.|.byte. |
|00002900| 49 66 20 74 68 65 20 74 | 77 6f 20 61 64 64 72 65 |If the t|wo addre|
|00002910| 73 73 65 73 20 64 6f 20 | 6e 6f 74 20 63 6f 6e 74 |sses do |not cont|
|00002920| 61 69 6e 20 74 68 65 20 | 73 61 6d 65 20 69 6e 66 |ain the |same inf|
|00002930| 6f 72 6d 61 74 69 6f 6e | 2c 20 62 6f 74 68 20 61 |ormation|, both a|
|00002940| 64 64 72 65 73 73 65 73 | 0d 0a 61 72 65 20 64 69 |ddresses|..are di|
|00002950| 73 70 6c 61 79 65 64 2c | 20 20 77 69 74 68 20 74 |splayed,| with t|
|00002960| 68 65 69 72 20 72 65 73 | 70 65 63 74 69 76 65 20 |heir res|pective |
|00002970| 64 61 74 61 20 62 79 74 | 65 73 2e 20 20 20 41 73 |data byt|es. As|
|00002980| 20 61 6e 20 65 78 61 6d | 70 6c 65 2c 20 77 65 20 | an exam|ple, we |
|00002990| 77 69 6c 6c 20 63 6f 6d | 2d 0d 0a 70 61 72 65 20 |will com|-..pare |
|000029a0| 44 53 3a 30 31 30 30 20 | 77 69 74 68 20 44 53 3a |DS:0100 |with DS:|
|000029b0| 30 32 30 30 20 66 6f 72 | 20 61 20 6c 65 6e 67 74 |0200 for| a lengt|
|000029c0| 68 20 6f 66 20 38 2e 0d | 0a 0d 0a 20 20 20 20 20 |h of 8..|... |
|000029d0| 2d 64 20 30 31 30 30 20 | 6c 20 38 20 30 32 30 30 |-d 0100 |l 8 0200|
|000029e0| 0d 0a 20 20 20 20 20 36 | 38 39 37 3a 30 31 30 30 |.. 6|897:0100|
|000029f0| 20 20 45 39 20 20 36 35 | 20 20 36 38 39 37 3a 30 | E9 65| 6897:0|
|00002a00| 32 30 30 0d 0a 20 20 20 | 20 20 36 38 39 37 3a 30 |200.. | 6897:0|
|00002a10| 31 30 31 20 20 36 42 20 | 20 37 30 20 20 36 38 39 |101 6B | 70 689|
|00002a20| 37 3a 30 32 30 31 0d 0a | 20 20 20 20 20 36 38 39 |7:0201..| 689|
|00002a30| 37 3a 30 31 30 32 20 20 | 30 31 20 20 37 34 20 20 |7:0102 |01 74 |
|00002a40| 36 38 39 37 3a 30 32 30 | 32 0d 0a 20 20 20 20 20 |6897:020|2.. |
|00002a50| 36 38 39 37 3a 30 31 30 | 33 20 20 34 33 20 20 36 |6897:010|3 43 6|
|00002a60| 35 20 20 36 38 39 37 3a | 30 32 30 33 0d 0a 20 20 |5 6897:|0203.. |
|00002a70| 20 20 20 36 38 39 37 3a | 30 31 30 34 20 20 34 43 | 6897:|0104 4C|
|00002a80| 20 20 36 44 20 20 36 38 | 39 37 3a 30 32 30 34 0d | 6D 68|97:0204.|
|00002a90| 0a 20 20 20 20 20 36 38 | 39 37 3a 30 31 30 35 20 |. 68|97:0105 |
|00002aa0| 20 34 46 20 20 36 32 20 | 20 36 38 39 37 3a 30 32 | 4F 62 | 6897:02|
|00002ab0| 30 35 0d 0a 20 20 20 20 | 20 36 38 39 37 3a 30 31 |05.. | 6897:01|
|00002ac0| 30 36 20 20 34 33 20 20 | 36 35 20 20 36 38 39 37 |06 43 |65 6897|
|00002ad0| 3a 30 32 30 36 0d 0a 20 | 20 20 20 20 36 38 39 37 |:0206.. | 6897|
|00002ae0| 3a 30 31 30 37 20 20 34 | 42 20 20 37 32 20 20 36 |:0107 4|B 72 6|
|00002af0| 38 39 37 3a 30 32 30 37 | 0d 0a 0d 0a 20 20 20 20 |897:0207|.... |
|00002b00| 20 4e 6f 6e 65 20 6f 66 | 20 74 68 65 20 65 69 67 | None of| the eig|
|00002b10| 68 74 20 62 79 74 65 73 | 20 63 6f 6d 70 61 72 65 |ht bytes| compare|
|00002b20| 64 2c 20 20 73 6f 20 77 | 65 20 67 6f 74 20 6f 75 |d, so w|e got ou|
|00002b30| 74 70 75 74 20 66 6f 72 | 20 65 61 63 68 20 62 79 |tput for| each by|
|00002b40| 74 65 2e 20 20 20 49 66 | 20 77 65 0d 0a 68 61 64 |te. If| we..had|
|00002b50| 20 67 6f 74 74 65 6e 20 | 61 20 6d 61 74 63 68 20 | gotten |a match |
|00002b60| 6f 6e 20 61 6e 79 20 6f | 66 20 74 68 65 20 62 79 |on any o|f the by|
|00002b70| 74 65 73 2c 20 44 45 42 | 55 47 20 77 6f 75 6c 64 |tes, DEB|UG would|
|00002b80| 20 68 61 76 65 20 73 6b | 69 70 70 65 64 20 74 68 | have sk|ipped th|
|00002b90| 61 74 20 62 79 74 65 2e | 20 20 69 66 0d 0a 61 6c |at byte.| if..al|
|00002ba0| 6c 20 6f 66 20 74 68 65 | 20 6c 6f 63 61 74 69 6f |l of the| locatio|
|00002bb0| 6e 73 20 72 65 71 75 65 | 73 74 65 64 20 6d 61 74 |ns reque|sted mat|
|00002bc0| 63 68 65 64 2c 20 20 44 | 45 42 55 47 20 77 6f 75 |ched, D|EBUG wou|
|00002bd0| 6c 64 20 68 61 76 65 20 | 73 69 6d 70 6c 79 20 72 |ld have |simply r|
|00002be0| 65 73 70 6f 6e 64 65 64 | 20 77 69 74 68 0d 0a 61 |esponded| with..a|
|00002bf0| 6e 6f 74 68 65 72 20 70 | 72 6f 6d 70 74 2e 20 20 |nother p|rompt. |
|00002c00| 20 4e 6f 20 6f 74 68 65 | 72 20 6d 65 73 73 61 67 | No othe|r messag|
|00002c10| 65 20 69 73 20 64 69 73 | 70 6c 61 79 65 64 2e 20 |e is dis|played. |
|00002c20| 20 20 54 68 69 73 20 69 | 73 20 75 73 65 66 75 6c | This i|s useful|
|00002c30| 20 66 6f 72 20 63 6f 6d | 70 61 72 69 6e 67 0d 0a | for com|paring..|
|00002c40| 74 77 6f 20 62 6c 6f 63 | 6b 73 20 6f 66 20 64 61 |two bloc|ks of da|
|00002c50| 74 61 20 66 72 6f 6d 20 | 61 20 66 69 6c 65 2c 20 |ta from |a file, |
|00002c60| 20 6f 72 20 61 20 70 72 | 6f 67 72 61 6d 20 77 69 | or a pr|ogram wi|
|00002c70| 74 68 20 74 68 65 20 42 | 49 4f 53 20 52 4f 4d 2e |th the B|IOS ROM.|
|00002c80| 20 20 20 4f 74 68 65 72 | 77 69 73 65 2c 20 49 0d | Other|wise, I.|
|00002c90| 0a 68 61 76 65 20 6e 6f | 74 20 66 6f 75 6e 64 20 |.have no|t found |
|00002ca0| 61 20 67 72 65 61 74 20 | 61 6d 6f 75 6e 74 20 6f |a great |amount o|
|00002cb0| 66 20 75 73 65 20 66 6f | 72 20 69 74 2e 0d 0a 0d |f use fo|r it....|
|00002cc0| 0a 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00002cd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ce0| 20 20 20 55 6e 61 73 73 | 65 6d 62 6c 65 20 63 6f | Unass|emble co|
|00002cf0| 6d 6d 61 6e 64 0d 0a 0d | 0a 20 20 20 20 20 46 6f |mmand...|. Fo|
|00002d00| 72 20 20 64 65 62 75 67 | 67 69 6e 67 2c 20 20 6f |r debug|ging, o|
|00002d10| 6e 65 20 6f 66 20 74 68 | 65 20 6d 61 69 6e 20 63 |ne of th|e main c|
|00002d20| 6f 6d 6d 61 6e 64 73 20 | 79 6f 75 20 77 69 6c 6c |ommands |you will|
|00002d30| 20 75 73 65 20 69 73 20 | 20 74 68 65 20 20 55 6e | use is | the Un|
|00002d40| 61 73 73 65 6d 62 6c 65 | 0d 0a 63 6f 6d 6d 61 6e |assemble|..comman|
|00002d50| 64 2e 20 20 20 54 68 69 | 73 20 20 63 6f 6d 6d 61 |d. Thi|s comma|
|00002d60| 6e 64 20 77 69 6c 6c 20 | 74 61 6b 65 20 6d 61 63 |nd will |take mac|
|00002d70| 68 69 6e 65 20 63 6f 64 | 65 20 61 6e 64 20 63 6f |hine cod|e and co|
|00002d80| 6e 76 65 72 74 20 69 74 | 20 74 6f 20 69 6e 73 74 |nvert it| to inst|
|00002d90| 72 75 63 74 69 6f 6e 73 | 2e 0d 0a 41 64 64 72 65 |ructions|...Addre|
|00002da0| 73 73 69 6e 67 20 69 73 | 20 74 68 65 20 73 61 6d |ssing is| the sam|
|00002db0| 65 20 61 73 20 66 6f 72 | 20 70 72 65 76 69 6f 75 |e as for| previou|
|00002dc0| 73 20 63 6f 6d 6d 61 6e | 64 73 20 77 69 74 68 20 |s comman|ds with |
|00002dd0| 6f 6e 65 20 65 78 63 65 | 70 74 69 6f 6e 3a 20 20 |one exce|ption: |
|00002de0| 20 53 69 6e 63 65 20 20 | 77 65 0d 0a 61 72 65 20 | Since |we..are |
|00002df0| 20 6e 6f 77 20 20 77 6f | 72 6b 69 6e 67 20 77 69 | now wo|rking wi|
|00002e00| 74 68 20 63 6f 64 65 20 | 28 74 68 65 20 70 72 65 |th code |(the pre|
|00002e10| 76 69 6f 75 73 20 63 6f | 6d 6d 61 6e 64 73 20 61 |vious co|mmands a|
|00002e20| 72 65 20 6d 61 69 6e 6c | 79 20 20 66 6f 72 20 20 |re mainl|y for |
|00002e30| 64 61 74 61 29 2c 20 20 | 74 68 65 0d 0a 64 65 66 |data), |the..def|
|00002e40| 61 75 6c 74 20 72 65 67 | 69 73 74 65 72 20 69 73 |ault reg|ister is|
|00002e50| 20 74 68 65 20 43 53 20 | 72 65 67 69 73 74 65 72 | the CS |register|
|00002e60| 2e 20 20 49 6e 20 61 20 | 2e 43 4f 4d 20 70 72 6f |. In a |.COM pro|
|00002e70| 67 72 61 6d 2c 20 74 68 | 69 73 20 6d 61 6b 65 73 |gram, th|is makes|
|00002e80| 20 76 65 72 79 20 6c 69 | 74 74 6c 65 0d 0a 64 69 | very li|ttle..di|
|00002e90| 66 66 65 72 65 6e 63 65 | 2c 20 20 75 6e 6c 65 73 |fference|, unles|
|00002ea0| 73 20 20 79 6f 75 20 72 | 65 73 65 74 20 74 68 65 |s you r|eset the|
|00002eb0| 20 44 53 20 72 65 67 69 | 73 74 65 72 20 79 6f 75 | DS regi|ster you|
|00002ec0| 72 73 65 6c 66 2e 20 20 | 20 48 6f 77 65 76 65 72 |rself. | However|
|00002ed0| 2c 20 20 69 6e 20 61 20 | 20 2e 45 58 45 0d 0a 66 |, in a | .EXE..f|
|00002ee0| 69 6c 65 2c 20 20 69 74 | 20 20 63 61 6e 20 6d 61 |ile, it| can ma|
|00002ef0| 6b 65 20 61 20 6c 6f 74 | 20 6f 66 20 64 69 66 66 |ke a lot| of diff|
|00002f00| 65 72 65 6e 63 65 2c 20 | 20 61 73 20 74 68 65 20 |erence, | as the |
|00002f10| 43 53 20 61 6e 64 20 44 | 53 20 72 65 67 69 73 74 |CS and D|S regist|
|00002f20| 65 72 73 20 61 72 65 20 | 73 65 74 20 74 6f 0d 0a |ers are |set to..|
|00002f30| 64 69 66 66 65 72 65 6e | 74 20 76 61 6c 75 65 73 |differen|t values|
|00002f40| 2e 0d 0a 0d 0a 20 20 20 | 20 20 55 6e 61 73 73 65 |..... | Unasse|
|00002f50| 6d 62 6c 65 20 64 61 74 | 61 20 63 61 6e 20 6c 65 |mble dat|a can le|
|00002f60| 61 64 20 74 6f 20 73 6f | 6d 65 20 69 6e 74 65 72 |ad to so|me inter|
|00002f70| 65 73 74 69 6e 67 20 72 | 65 73 75 6c 74 73 2e 20 |esting r|esults. |
|00002f80| 20 20 46 6f 72 20 20 69 | 6e 73 74 61 6e 63 65 2c | For i|nstance,|
|00002f90| 20 20 69 6e 0d 0a 6f 75 | 72 20 65 78 61 6d 70 6c | in..ou|r exampl|
|00002fa0| 65 2c 20 20 43 53 3a 49 | 50 20 69 73 20 73 65 74 |e, CS:I|P is set|
|00002fb0| 20 74 6f 20 36 38 39 37 | 3a 30 31 30 30 2e 20 20 | to 6897|:0100. |
|00002fc0| 20 49 66 20 77 65 20 6c | 6f 6f 6b 20 61 74 20 74 | If we l|ook at t|
|00002fd0| 68 65 20 70 72 6f 67 72 | 61 6d 2c 20 20 77 65 20 |he progr|am, we |
|00002fe0| 73 65 65 20 61 0d 0a 4a | 4d 50 20 61 73 20 74 68 |see a..J|MP as th|
|00002ff0| 65 20 66 69 72 73 74 20 | 69 6e 73 74 72 75 63 74 |e first |instruct|
|00003000| 69 6f 6e 2c 20 20 66 6f | 6c 6c 6f 77 65 64 20 62 |ion, fo|llowed b|
|00003010| 79 20 64 61 74 61 2e 20 | 20 20 49 66 20 77 65 20 |y data. | If we |
|00003020| 6a 75 73 74 20 65 6e 74 | 65 72 20 55 2c 20 20 77 |just ent|er U, w|
|00003030| 65 20 77 69 6c 6c 0d 0a | 73 74 61 72 74 20 61 74 |e will..|start at|
|00003040| 20 43 53 3a 49 50 20 28 | 36 38 39 37 3a 30 31 30 | CS:IP (|6897:010|
|00003050| 30 29 20 61 6e 64 20 73 | 74 61 72 74 20 75 6e 61 |0) and s|tart una|
|00003060| 73 73 65 6d 62 6c 69 6e | 67 20 64 61 74 61 2e 20 |ssemblin|g data. |
|00003070| 20 20 57 68 61 74 20 77 | 65 20 77 69 6c 6c 20 67 | What w|e will g|
|00003080| 65 74 20 69 73 20 61 0d | 0a 67 6f 6f 64 20 69 6e |et is a.|.good in|
|00003090| 73 74 72 75 63 74 69 6f | 6e 2c 20 66 6f 6c 6c 6f |structio|n, follo|
|000030a0| 77 65 64 20 62 79 20 6d | 6f 72 65 20 6f 72 20 6c |wed by m|ore or l|
|000030b0| 65 73 73 20 6e 6f 6e 73 | 65 6e 73 65 2e 20 20 46 |ess nons|ense. F|
|000030c0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 3a 0d 0a 0d 0a |or insta|nce:....|
|000030d0| 20 20 20 20 20 2d 55 0d | 0a 20 20 20 20 20 36 38 | -U.|. 68|
|000030e0| 39 37 3a 30 31 30 30 20 | 45 39 36 42 30 31 20 20 |97:0100 |E96B01 |
|000030f0| 20 20 20 20 20 20 4a 4d | 50 20 20 20 20 20 30 32 | JM|P 02|
|00003100| 36 45 0d 0a 20 20 20 20 | 20 36 38 39 37 3a 30 31 |6E.. | 6897:01|
|00003110| 30 33 20 34 33 20 20 20 | 20 20 20 20 20 20 20 20 |03 43 | |
|00003120| 20 49 4e 43 20 20 20 20 | 20 42 58 0d 0a 20 20 20 | INC | BX.. |
|00003130| 20 20 36 38 39 37 3a 30 | 31 30 34 20 34 43 20 20 | 6897:0|104 4C |
|00003140| 20 20 20 20 20 20 20 20 | 20 20 44 45 43 20 20 20 | | DEC |
|00003150| 20 20 53 50 0d 0a 20 20 | 20 20 20 36 38 39 37 3a | SP.. | 6897:|
|00003160| 30 31 30 35 20 34 46 20 | 20 20 20 20 20 20 20 20 |0105 4F | |
|00003170| 20 20 20 44 45 43 20 20 | 20 20 20 44 49 0d 0a 20 | DEC | DI.. |
|00003180| 20 20 20 20 36 38 39 37 | 3a 30 31 30 36 20 34 33 | 6897|:0106 43|
|00003190| 20 20 20 20 20 20 20 20 | 20 20 20 20 49 4e 43 20 | | INC |
|000031a0| 20 20 20 20 42 58 0d 0a | 20 20 20 20 20 36 38 39 | BX..| 689|
|000031b0| 37 3a 30 31 30 37 20 34 | 42 20 20 20 20 20 20 20 |7:0107 4|B |
|000031c0| 20 20 20 20 20 44 45 43 | 20 20 20 20 20 42 58 0d | DEC| BX.|
|000031d0| 0a 0d 0a 41 6e 64 20 73 | 6f 20 6f 6e 2c 20 20 74 |...And s|o on, t|
|000031e0| 68 72 6f 75 67 68 20 36 | 38 39 37 3a 30 31 31 44 |hrough 6|897:011D|
|000031f0| 2e 20 20 20 57 65 20 6b | 6e 6f 77 20 74 68 65 20 |. We k|now the |
|00003200| 49 4e 43 20 42 58 2c 20 | 44 45 43 20 53 50 2c 20 |INC BX, |DEC SP, |
|00003210| 65 74 63 2e 20 61 72 65 | 20 6e 6f 74 20 76 61 6c |etc. are| not val|
|00003220| 69 64 0d 0a 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |id..inst|ructions|
|00003230| 2c 20 20 62 75 74 20 20 | 44 45 42 55 47 20 64 6f |, but |DEBUG do|
|00003240| 65 73 6e 27 74 2c 20 20 | 73 6f 20 77 65 20 64 6f |esn't, |so we do|
|00003250| 20 68 61 76 65 20 74 6f | 20 6c 6f 6f 6b 20 61 74 | have to| look at|
|00003260| 20 74 68 65 20 20 63 6f | 64 65 2e 20 20 20 41 66 | the co|de. Af|
|00003270| 74 65 72 0d 0a 77 6f 72 | 6b 69 6e 67 20 77 69 74 |ter..wor|king wit|
|00003280| 68 20 44 45 42 55 47 20 | 61 20 6c 69 74 74 6c 65 |h DEBUG |a little|
|00003290| 2c 20 79 6f 75 20 77 69 | 6c 6c 20 62 65 20 61 62 |, you wi|ll be ab|
|000032a0| 6c 65 20 74 6f 20 73 70 | 6f 74 20 63 6f 64 65 20 |le to sp|ot code |
|000032b0| 76 65 72 73 75 73 20 64 | 61 74 61 20 77 69 74 68 |versus d|ata with|
|000032c0| 20 74 68 65 0d 0a 55 6e | 61 73 73 65 6d 62 6c 65 | the..Un|assemble|
|000032d0| 20 20 63 6f 6d 6d 61 6e | 64 2e 20 20 20 46 6f 72 | comman|d. For|
|000032e0| 20 6e 6f 77 2c 20 20 73 | 75 66 66 69 63 65 20 74 | now, s|uffice t|
|000032f0| 6f 20 73 61 79 20 74 68 | 61 74 20 74 68 65 20 66 |o say th|at the f|
|00003300| 69 72 73 74 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |irst ins|truction|
|00003310| 20 77 69 6c 6c 0d 0a 74 | 61 6b 65 20 75 73 20 74 | will..t|ake us t|
|00003320| 6f 20 43 53 3a 30 32 36 | 45 20 61 6e 64 20 77 65 |o CS:026|E and we|
|00003330| 20 63 61 6e 20 73 74 61 | 72 74 20 66 72 6f 6d 20 | can sta|rt from |
|00003340| 74 68 65 72 65 2e 0d 0a | 0d 0a 20 20 20 20 20 49 |there...|.. I|
|00003350| 66 20 77 65 20 55 6e 61 | 73 73 65 6d 62 6c 65 20 |f we Una|ssemble |
|00003360| 43 53 3a 30 32 36 45 2c | 20 77 65 20 77 69 6c 6c |CS:026E,| we will|
|00003370| 20 66 69 6e 64 20 73 6f | 6d 65 74 68 69 6e 67 20 | find so|mething |
|00003380| 77 68 69 63 68 20 6c 6f | 6f 6b 73 20 61 20 6c 69 |which lo|oks a li|
|00003390| 74 74 6c 65 20 6d 6f 72 | 65 0d 0a 6c 69 6b 65 20 |ttle mor|e..like |
|000033a0| 77 68 61 74 20 77 65 20 | 65 78 70 65 63 74 2e 20 |what we |expect. |
|000033b0| 20 57 65 20 67 65 74 3a | 0d 0a 0d 0a 20 20 20 20 | We get:|.... |
|000033c0| 20 2d 55 20 32 36 45 0d | 0a 20 20 20 20 20 36 38 | -U 26E.|. 68|
|000033d0| 39 37 3a 30 32 36 45 20 | 38 44 31 36 37 38 30 32 |97:026E |8D167802|
|000033e0| 20 20 20 20 20 20 4c 45 | 41 20 20 20 20 20 44 58 | LE|A DX|
|000033f0| 2c 5b 30 32 37 38 5d 0d | 0a 20 20 20 20 20 36 38 |,[0278].|. 68|
|00003400| 39 37 3a 30 32 37 32 20 | 42 34 30 39 20 20 20 20 |97:0272 |B409 |
|00003410| 20 20 20 20 20 20 4d 4f | 56 20 20 20 20 20 41 48 | MO|V AH|
|00003420| 2c 30 39 0d 0a 20 20 20 | 20 20 36 38 39 37 3a 30 |,09.. | 6897:0|
|00003430| 32 37 34 20 43 44 32 31 | 20 20 20 20 20 20 20 20 |274 CD21| |
|00003440| 20 20 49 4e 54 20 20 20 | 20 20 32 31 0d 0a 20 20 | INT | 21.. |
|00003450| 20 20 20 36 38 39 37 3a | 30 32 37 36 20 45 42 30 | 6897:|0276 EB0|
|00003460| 35 20 20 20 20 20 20 20 | 20 20 20 4a 4d 50 20 20 |5 | JMP |
|00003470| 20 20 20 30 32 37 44 0d | 0a 20 20 20 20 20 36 38 | 027D.|. 68|
|00003480| 39 37 3a 30 32 37 38 20 | 31 42 35 42 33 32 20 20 |97:0278 |1B5B32 |
|00003490| 20 20 20 20 20 20 53 42 | 42 20 20 20 20 20 42 58 | SB|B BX|
|000034a0| 2c 5b 42 50 2b 44 49 2b | 33 32 5d 0d 0a 20 20 20 |,[BP+DI+|32].. |
|000034b0| 20 20 36 38 39 37 3a 30 | 32 37 42 20 34 41 20 20 | 6897:0|27B 4A |
|000034c0| 20 20 20 20 20 20 20 20 | 20 20 44 45 43 20 20 20 | | DEC |
|000034d0| 20 20 44 58 0d 0a 20 20 | 20 20 20 36 38 39 37 3a | DX.. | 6897:|
|000034e0| 30 32 37 43 20 32 34 42 | 34 20 20 20 20 20 20 20 |027C 24B|4 |
|000034f0| 20 20 20 41 4e 44 20 20 | 20 20 20 41 4c 2c 42 34 | AND | AL,B4|
|00003500| 0d 0a 20 20 20 20 20 36 | 38 39 37 3a 30 32 37 45 |.. 6|897:027E|
|00003510| 20 33 30 43 44 20 20 20 | 20 20 20 20 20 20 20 58 | 30CD | X|
|00003520| 4f 52 20 20 20 20 20 43 | 48 2c 43 4c 0d 0a 20 20 |OR C|H,CL.. |
|00003530| 20 20 20 36 38 39 37 3a | 30 32 38 30 20 32 31 33 | 6897:|0280 213|
|00003540| 43 20 20 20 20 20 20 20 | 20 20 20 41 4e 44 20 20 |C | AND |
|00003550| 20 20 20 5b 53 49 5d 2c | 44 49 0d 0a 20 20 20 20 | [SI],|DI.. |
|00003560| 20 36 38 39 37 3a 30 32 | 38 32 20 30 32 37 44 30 | 6897:02|82 027D0|
|00003570| 41 20 20 20 20 20 20 20 | 20 41 44 44 20 20 20 20 |A | ADD |
|00003580| 20 42 48 2c 5b 44 49 2b | 30 41 5d 0d 0a 20 20 20 | BH,[DI+|0A].. |
|00003590| 20 20 36 38 39 37 3a 30 | 32 38 35 20 38 44 31 36 | 6897:0|285 8D16|
|000035a0| 37 43 30 31 20 20 20 20 | 20 20 4c 45 41 20 20 20 |7C01 | LEA |
|000035b0| 20 20 44 58 2c 5b 30 31 | 37 43 5d 0d 0a 20 20 20 | DX,[01|7C].. |
|000035c0| 20 20 36 38 39 37 3a 30 | 32 38 39 20 42 34 30 39 | 6897:0|289 B409|
|000035d0| 20 20 20 20 20 20 20 20 | 20 20 4d 4f 56 20 20 20 | | MOV |
|000035e0| 20 20 41 48 2c 30 39 0d | 0a 20 20 20 20 20 36 38 | AH,09.|. 68|
|000035f0| 39 37 3a 30 32 38 42 20 | 43 44 32 31 20 20 20 20 |97:028B |CD21 |
|00003600| 20 20 20 20 20 20 49 4e | 54 20 20 20 20 20 32 31 | IN|T 21|
|00003610| 0d 0a 20 20 20 20 20 36 | 38 39 37 3a 30 32 38 44 |.. 6|897:028D|
|00003620| 20 43 44 32 30 20 20 20 | 20 20 20 20 20 20 20 49 | CD20 | I|
|00003630| 4e 54 20 20 20 20 20 32 | 30 0d 0a 0d 0a 20 20 20 |NT 2|0.... |
|00003640| 20 20 54 68 65 20 66 69 | 72 73 74 20 66 65 77 20 | The fi|rst few |
|00003650| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 20 6c 6f 6f |instruct|ions loo|
|00003660| 6b 20 66 69 6e 65 2e 20 | 20 20 42 75 74 2c 20 20 |k fine. | But, |
|00003670| 61 66 74 65 72 20 74 68 | 65 20 4a 4d 50 20 20 30 |after th|e JMP 0|
|00003680| 32 37 44 2c 20 20 74 68 | 69 6e 67 73 0d 0a 73 74 |27D, th|ings..st|
|00003690| 61 72 74 20 74 6f 20 6c | 6f 6f 6b 20 61 20 6c 69 |art to l|ook a li|
|000036a0| 74 74 6c 65 20 66 75 6e | 6e 79 2e 20 20 41 6c 73 |ttle fun|ny. Als|
|000036b0| 6f 2c 20 6e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |o, note |that the|
|000036c0| 72 65 20 69 73 20 6e 6f | 20 69 6e 73 74 72 75 63 |re is no| instruc|
|000036d0| 74 69 6f 6e 20 73 74 61 | 72 74 69 6e 67 0d 0a 61 |tion sta|rting..a|
|000036e0| 74 20 30 32 37 44 2e 20 | 20 20 57 65 20 68 61 76 |t 027D. | We hav|
|000036f0| 65 20 69 6e 73 74 72 75 | 63 74 69 6f 6e 73 20 61 |e instru|ctions a|
|00003700| 74 20 30 32 37 43 20 61 | 6e 64 20 30 32 37 45 2c |t 027C a|nd 027E,|
|00003710| 20 20 62 75 74 20 6e 6f | 74 20 30 32 37 44 2e 20 | but no|t 027D. |
|00003720| 20 54 68 69 73 20 69 73 | 20 61 67 61 69 6e 0d 0a | This is| again..|
|00003730| 62 65 63 61 75 73 65 20 | 44 45 42 55 47 20 64 6f |because |DEBUG do|
|00003740| 65 73 6e 27 74 20 6b 6e | 6f 77 20 64 61 74 61 20 |esn't kn|ow data |
|00003750| 66 72 6f 6d 20 69 6e 73 | 74 72 75 63 74 69 6f 6e |from ins|truction|
|00003760| 73 2e 20 20 41 74 20 30 | 32 37 43 2c 20 77 65 20 |s. At 0|27C, we |
|00003770| 73 68 6f 75 6c 64 20 28 | 61 6e 64 20 64 6f 29 0d |should (|and do).|
|00003780| 0a 68 61 76 65 20 74 68 | 65 20 65 6e 64 20 6f 66 |.have th|e end of|
|00003790| 20 6f 75 72 20 64 61 74 | 61 2e 20 20 20 42 75 74 | our dat|a. But|
|000037a0| 2c 20 74 68 69 73 20 61 | 6c 73 6f 20 74 72 61 6e |, this a|lso tran|
|000037b0| 73 6c 61 74 65 73 20 69 | 6e 74 6f 20 61 20 76 61 |slates i|nto a va|
|000037c0| 6c 69 64 20 41 4e 44 20 | 69 6e 73 74 72 75 63 2d |lid AND |instruc-|
|000037d0| 0d 0a 74 69 6f 6e 2c 20 | 20 73 6f 20 44 45 42 55 |..tion, | so DEBU|
|000037e0| 47 20 77 69 6c 6c 20 74 | 72 65 61 74 20 69 74 20 |G will t|reat it |
|000037f0| 61 73 20 73 75 63 68 2e | 20 20 20 49 66 20 77 65 |as such.| If we|
|00003800| 20 77 61 6e 74 65 64 20 | 74 68 65 20 61 63 74 75 | wanted |the actu|
|00003810| 61 6c 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 20 61 |al instr|uction a|
|00003820| 74 0d 0a 30 32 37 44 2c | 20 20 77 65 20 63 6f 75 |t..027D,| we cou|
|00003830| 6c 64 20 65 6e 74 65 72 | 20 55 20 30 32 37 44 20 |ld enter| U 027D |
|00003840| 61 6e 64 20 67 65 74 20 | 69 74 2c 20 20 62 75 74 |and get |it, but|
|00003850| 20 66 72 6f 6d 20 68 65 | 72 65 2c 20 20 77 65 20 | from he|re, we |
|00003860| 64 6f 6e 27 74 20 6b 6e | 6f 77 20 77 68 61 74 20 |don't kn|ow what |
|00003870| 69 74 0d 0a 69 73 2e 20 | 20 20 77 68 61 74 20 49 |it..is. | what I|
|00003880| 27 6d 20 74 72 79 69 6e | 67 20 74 6f 20 73 61 79 |'m tryin|g to say|
|00003890| 20 69 73 2c 20 20 44 45 | 42 55 47 20 77 69 6c 6c | is, DE|BUG will|
|000038a0| 20 64 6f 20 77 68 61 74 | 20 65 76 65 72 20 79 6f | do what| ever yo|
|000038b0| 75 20 74 65 6c 6c 20 69 | 74 2e 20 20 20 49 66 20 |u tell i|t. If |
|000038c0| 79 6f 75 0d 0a 74 65 6c | 6c 20 69 74 20 74 6f 20 |you..tel|l it to |
|000038d0| 55 6e 61 73 73 65 6d 62 | 6c 65 20 64 61 74 61 2c |Unassemb|le data,|
|000038e0| 20 20 69 74 20 77 69 6c | 6c 20 64 6f 20 73 6f 20 | it wil|l do so |
|000038f0| 74 6f 20 74 68 65 20 62 | 65 73 74 20 6f 66 20 69 |to the b|est of i|
|00003900| 74 73 20 61 62 69 6c 69 | 74 79 2e 20 20 53 6f 2c |ts abili|ty. So,|
|00003910| 20 79 6f 75 0d 0a 68 61 | 76 65 20 74 6f 20 6d 61 | you..ha|ve to ma|
|00003920| 6b 65 20 73 75 72 65 20 | 79 6f 75 20 68 61 76 65 |ke sure |you have|
|00003930| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 77 68 | instruc|tions wh|
|00003940| 65 72 65 20 79 6f 75 20 | 74 68 69 6e 6b 20 79 6f |ere you |think yo|
|00003950| 75 20 64 6f 2e 0d 0a 0d | 0a 0d 0a 20 20 20 20 20 |u do....|... |
|00003960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003970| 20 20 20 20 20 20 20 20 | 20 44 41 54 41 20 45 4e | | DATA EN|
|00003980| 54 52 59 20 43 4f 4d 4d | 41 4e 44 53 0d 0a 0d 0a |TRY COMM|ANDS....|
|00003990| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000039a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000039b0| 20 20 20 20 20 45 6e 74 | 65 72 0d 0a 0d 0a 20 20 | Ent|er.... |
|000039c0| 20 20 20 54 68 65 20 20 | 45 6e 74 65 72 20 63 6f | The |Enter co|
|000039d0| 6d 6d 61 6e 64 20 69 73 | 20 75 73 65 64 20 74 6f |mmand is| used to|
|000039e0| 20 70 6c 61 63 65 20 62 | 79 74 65 73 20 6f 66 20 | place b|ytes of |
|000039f0| 64 61 74 61 20 69 6e 20 | 6d 65 6d 6f 72 79 2e 20 |data in |memory. |
|00003a00| 20 20 49 74 20 68 61 73 | 20 20 74 77 6f 0d 0a 6d | It has| two..m|
|00003a10| 6f 64 65 73 3a 20 20 44 | 69 73 70 6c 61 79 2f 4d |odes: D|isplay/M|
|00003a20| 6f 64 69 66 79 20 20 61 | 6e 64 20 20 52 65 70 6c |odify a|nd Repl|
|00003a30| 61 63 65 2e 20 20 20 54 | 68 65 20 64 69 66 66 65 |ace. T|he diffe|
|00003a40| 72 65 6e 63 65 20 69 73 | 20 69 6e 20 77 68 65 72 |rence is| in wher|
|00003a50| 65 20 74 68 65 20 64 61 | 74 61 20 20 69 73 0d 0a |e the da|ta is..|
|00003a60| 73 70 65 63 69 66 69 65 | 64 20 2d 20 69 6e 20 74 |specifie|d - in t|
|00003a70| 68 65 20 45 6e 74 65 72 | 20 63 6f 6d 6d 61 6e 64 |he Enter| command|
|00003a80| 20 69 74 73 65 6c 66 2c | 20 6f 72 20 61 66 74 65 | itself,| or afte|
|00003a90| 72 20 74 68 65 20 70 72 | 6f 6d 70 74 2e 0d 0a 0d |r the pr|ompt....|
|00003aa0| 0a 20 20 20 20 20 49 66 | 20 79 6f 75 20 65 6e 74 |. If| you ent|
|00003ab0| 65 72 20 45 20 61 64 64 | 72 65 73 73 20 61 6c 6f |er E add|ress alo|
|00003ac0| 6e 65 2c 20 20 79 6f 75 | 20 61 72 65 20 69 6e 20 |ne, you| are in |
|00003ad0| 64 69 73 70 6c 61 79 2f | 6d 6f 64 69 66 79 20 6d |display/|modify m|
|00003ae0| 6f 64 65 2e 20 20 44 45 | 42 55 47 20 77 69 6c 6c |ode. DE|BUG will|
|00003af0| 0d 0a 70 72 6f 6d 70 74 | 20 20 79 6f 75 20 20 6f |..prompt| you o|
|00003b00| 6e 65 20 20 62 79 74 65 | 20 61 74 20 61 20 74 69 |ne byte| at a ti|
|00003b10| 6d 65 2c 20 20 64 69 73 | 70 6c 61 79 69 6e 67 20 |me, dis|playing |
|00003b20| 74 68 65 20 63 75 72 72 | 65 6e 74 20 62 79 74 65 |the curr|ent byte|
|00003b30| 20 20 66 6f 6c 6c 6f 77 | 65 64 20 20 62 79 20 20 | follow|ed by |
|00003b40| 61 0d 0a 70 65 72 69 6f | 64 2e 20 20 20 41 74 20 |a..perio|d. At |
|00003b50| 74 68 69 73 20 74 69 6d | 65 2c 20 20 79 6f 75 20 |this tim|e, you |
|00003b60| 68 61 76 65 20 74 68 65 | 20 6f 70 74 69 6f 6e 20 |have the| option |
|00003b70| 6f 66 20 65 6e 74 65 72 | 69 6e 67 20 6f 6e 65 20 |of enter|ing one |
|00003b80| 6f 72 20 74 77 6f 20 68 | 65 78 61 64 65 63 69 6d |or two h|exadecim|
|00003b90| 61 6c 0d 0a 63 68 61 72 | 61 63 74 65 72 73 2e 20 |al..char|acters. |
|00003ba0| 20 20 49 66 20 79 6f 75 | 20 68 69 74 20 74 68 65 | If you| hit the|
|00003bb0| 20 73 70 61 63 65 20 62 | 61 72 2c 20 44 45 42 55 | space b|ar, DEBU|
|00003bc0| 47 20 77 69 6c 6c 20 6e | 6f 74 20 6d 6f 64 69 66 |G will n|ot modif|
|00003bd0| 79 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 62 79 |y the cu|rrent by|
|00003be0| 74 65 2c 0d 0a 62 75 74 | 20 20 67 6f 20 6f 6e 20 |te,..but| go on |
|00003bf0| 74 6f 20 74 68 65 20 6e | 65 78 74 20 62 79 74 65 |to the n|ext byte|
|00003c00| 20 6f 66 20 64 61 74 61 | 2e 20 20 20 49 66 20 79 | of data|. If y|
|00003c10| 6f 75 20 67 6f 20 74 6f | 6f 20 66 61 72 2c 20 20 |ou go to|o far, |
|00003c20| 74 68 65 20 68 79 70 68 | 65 6e 20 28 2d 29 20 20 |the hyph|en (-) |
|00003c30| 77 69 6c 6c 0d 0a 62 61 | 63 6b 20 75 70 20 6f 6e |will..ba|ck up on|
|00003c40| 65 20 62 79 74 65 20 65 | 61 63 68 20 74 69 6d 65 |e byte e|ach time|
|00003c50| 20 69 74 20 69 73 20 70 | 72 65 73 73 65 64 2e 0d | it is p|ressed..|
|00003c60| 0a 0d 0a 20 20 20 20 20 | 45 20 31 30 33 0d 0a 20 |... |E 103.. |
|00003c70| 20 20 20 20 36 38 39 37 | 3a 30 31 30 33 20 20 34 | 6897|:0103 4|
|00003c80| 33 2e 34 31 20 20 20 34 | 43 2e 34 32 20 20 20 34 |3.41 4|C.42 4|
|00003c90| 46 2e 34 33 20 20 20 34 | 33 2e 20 20 20 20 20 34 |F.43 4|3. 4|
|00003ca0| 42 2e 34 35 0d 0a 20 20 | 20 20 20 36 38 39 37 3a |B.45.. | 6897:|
|00003cb0| 30 31 30 38 20 20 32 45 | 2e 34 36 20 20 20 34 31 |0108 2E|.46 41|
|00003cc0| 2e 34 30 20 20 20 35 33 | 2e 2d 0d 0a 20 20 20 20 |.40 53|.-.. |
|00003cd0| 20 36 38 39 37 3a 30 31 | 30 39 20 20 34 30 2e 34 | 6897:01|09 40.4|
|00003ce0| 37 20 20 20 35 33 2e 0d | 0a 0d 0a 49 6e 20 74 68 |7 53..|...In th|
|00003cf0| 69 73 20 65 78 61 6d 70 | 6c 65 2c 20 20 77 65 20 |is examp|le, we |
|00003d00| 65 6e 74 65 72 65 64 20 | 45 20 31 30 33 2e 20 20 |entered |E 103. |
|00003d10| 20 44 45 42 55 47 20 72 | 65 73 70 6f 6e 64 65 64 | DEBUG r|esponded|
|00003d20| 20 77 69 74 68 20 74 68 | 65 20 61 64 64 72 65 73 | with th|e addres|
|00003d30| 73 20 61 6e 64 20 20 74 | 68 65 0d 0a 69 6e 66 6f |s and t|he..info|
|00003d40| 72 6d 61 74 69 6f 6e 20 | 20 61 74 20 20 74 68 61 |rmation | at tha|
|00003d50| 74 20 20 62 79 74 65 20 | 28 34 33 29 2e 20 20 20 |t byte |(43). |
|00003d60| 57 65 20 65 6e 74 65 72 | 65 64 20 74 68 65 20 34 |We enter|ed the 4|
|00003d70| 31 20 61 6e 64 20 20 44 | 45 42 55 47 20 20 61 75 |1 and D|EBUG au|
|00003d80| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 0d 0a 73 68 6f |tomatica|lly..sho|
|00003d90| 77 65 64 20 74 68 65 20 | 6e 65 78 74 20 62 79 74 |wed the |next byt|
|00003da0| 65 20 6f 66 20 64 61 74 | 61 20 28 34 43 29 2e 20 |e of dat|a (4C). |
|00003db0| 20 41 67 61 69 6e 2c 20 | 77 65 20 65 6e 74 65 72 | Again, |we enter|
|00003dc0| 65 64 20 34 32 2c 20 64 | 65 62 75 67 20 63 61 6d |ed 42, d|ebug cam|
|00003dd0| 65 20 62 61 63 6b 2e 20 | 20 54 68 65 0d 0a 6e 65 |e back. | The..ne|
|00003de0| 78 74 20 62 79 74 65 20 | 77 61 73 20 34 46 2c 20 |xt byte |was 4F, |
|00003df0| 77 65 20 63 68 61 6e 67 | 65 64 20 69 74 20 74 6f |we chang|ed it to|
|00003e00| 20 34 33 2e 20 20 41 74 | 20 31 30 36 2c 20 34 33 | 43. At| 106, 43|
|00003e10| 20 77 61 73 20 66 69 6e | 65 20 77 69 74 68 20 75 | was fin|e with u|
|00003e20| 73 2c 20 73 6f 20 77 65 | 20 6a 75 73 74 0d 0a 68 |s, so we| just..h|
|00003e30| 69 74 20 74 68 65 20 73 | 70 61 63 65 20 62 61 72 |it the s|pace bar|
|00003e40| 2e 20 20 44 45 42 55 47 | 20 64 69 64 20 6e 6f 74 |. DEBUG| did not|
|00003e50| 20 63 68 61 6e 67 65 20 | 74 68 65 20 64 61 74 61 | change |the data|
|00003e60| 2c 20 61 6e 64 20 77 65 | 6e 74 20 6f 6e 20 74 6f |, and we|nt on to|
|00003e70| 20 74 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 0d 0a | the fol|lowing..|
|00003e80| 62 79 74 65 73 2e 20 20 | 41 66 74 65 72 20 65 6e |bytes. |After en|
|00003e90| 74 65 72 69 6e 67 20 34 | 30 20 61 74 20 6c 6f 63 |tering 4|0 at loc|
|00003ea0| 61 74 69 6f 6e 20 31 30 | 39 2c 20 77 65 20 66 6f |ation 10|9, we fo|
|00003eb0| 75 6e 64 20 77 65 20 68 | 61 64 20 65 6e 74 65 72 |und we h|ad enter|
|00003ec0| 65 64 20 61 20 62 61 64 | 20 76 61 6c 75 65 2e 0d |ed a bad| value..|
|00003ed0| 0a 54 68 65 20 20 68 79 | 70 68 65 6e 20 20 6b 65 |.The hy|phen ke|
|00003ee0| 79 20 77 61 73 20 70 72 | 65 73 73 65 64 2c 20 20 |y was pr|essed, |
|00003ef0| 61 6e 64 20 44 45 42 55 | 47 20 62 61 63 6b 65 64 |and DEBU|G backed|
|00003f00| 20 75 70 20 20 6f 6e 65 | 20 20 62 79 74 65 2c 20 | up one| byte, |
|00003f10| 20 64 69 73 70 6c 61 79 | 69 6e 67 20 20 74 68 65 | display|ing the|
|00003f20| 0d 0a 61 64 64 72 65 73 | 73 20 61 6e 64 20 63 75 |..addres|s and cu|
|00003f30| 72 72 65 6e 74 20 63 6f | 6e 74 65 6e 74 73 2e 20 |rrent co|ntents. |
|00003f40| 20 4e 6f 74 65 20 74 68 | 61 74 20 69 74 20 68 61 | Note th|at it ha|
|00003f50| 73 20 63 68 61 6e 67 65 | 64 20 66 72 6f 6d 20 74 |s change|d from t|
|00003f60| 68 65 20 6f 72 69 67 69 | 6e 61 6c 20 76 61 6c 75 |he origi|nal valu|
|00003f70| 65 0d 0a 28 34 31 29 20 | 20 74 6f 20 20 74 68 65 |e..(41) | to the|
|00003f80| 20 76 61 6c 75 65 20 77 | 65 20 74 79 70 65 64 20 | value w|e typed |
|00003f90| 69 6e 20 28 34 30 29 2e | 20 20 20 57 65 20 74 68 |in (40).| We th|
|00003fa0| 65 6e 20 74 79 70 65 20 | 69 6e 20 74 68 65 20 63 |en type |in the c|
|00003fb0| 6f 72 72 65 63 74 20 20 | 76 61 6c 75 65 20 20 61 |orrect |value a|
|00003fc0| 6e 64 0d 0a 74 65 72 6d | 69 6e 61 74 65 20 62 79 |nd..term|inate by|
|00003fd0| 20 70 72 65 73 73 69 6e | 67 20 74 68 65 20 45 4e | pressin|g the EN|
|00003fe0| 54 45 52 20 6b 65 79 2e | 0d 0a 0d 0a 20 20 20 20 |TER key.|.... |
|00003ff0| 20 41 73 20 79 6f 75 20 | 63 61 6e 20 73 65 65 2c | As you |can see,|
|00004000| 20 20 74 68 69 73 20 63 | 61 6e 20 62 65 20 76 65 | this c|an be ve|
|00004010| 72 79 20 61 77 6b 77 61 | 72 64 2c 20 20 65 73 70 |ry awkwa|rd, esp|
|00004020| 65 63 69 61 6c 6c 79 20 | 77 68 65 72 65 20 6c 61 |ecially |where la|
|00004030| 72 67 65 20 61 6d 6f 75 | 6e 74 73 0d 0a 6f 66 20 |rge amou|nts..of |
|00004040| 64 61 74 61 20 61 72 65 | 20 63 6f 6e 63 65 72 6e |data are| concern|
|00004050| 65 64 2e 20 20 20 41 6c | 73 6f 2c 20 69 66 20 79 |ed. Al|so, if y|
|00004060| 6f 75 20 6e 65 65 64 20 | 41 53 43 49 49 20 64 61 |ou need |ASCII da|
|00004070| 74 61 2c 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 |ta, you |have to |
|00004080| 6c 6f 6f 6b 20 75 70 20 | 65 61 63 68 0d 0a 63 68 |look up |each..ch|
|00004090| 61 72 61 63 74 65 72 20 | 20 61 6e 64 20 65 6e 74 |aracter | and ent|
|000040a0| 65 72 20 69 74 73 20 68 | 65 78 20 76 61 6c 75 65 |er its h|ex value|
|000040b0| 2e 20 20 20 4e 6f 74 20 | 65 61 73 79 2c 20 20 74 |. Not |easy, t|
|000040c0| 6f 20 62 65 20 73 75 72 | 65 2e 20 20 20 54 68 61 |o be sur|e. Tha|
|000040d0| 74 27 73 20 77 68 65 72 | 65 20 74 68 65 0d 0a 52 |t's wher|e the..R|
|000040e0| 65 70 6c 61 63 65 20 20 | 6d 6f 64 20 20 6f 66 20 |eplace |mod of |
|000040f0| 6f 70 65 72 61 74 69 6f | 6e 20 63 6f 6d 65 73 20 |operatio|n comes |
|00004100| 69 6e 20 68 61 6e 64 79 | 2e 20 20 20 57 68 65 72 |in handy|. Wher|
|00004110| 65 20 74 68 65 20 44 69 | 73 70 6c 61 79 2f 4d 6f |e the Di|splay/Mo|
|00004120| 64 69 66 79 20 20 6d 6f | 64 65 20 20 69 73 0d 0a |dify mo|de is..|
|00004130| 68 61 6e 64 79 20 20 66 | 6f 72 20 20 63 68 61 6e |handy f|or chan|
|00004140| 67 69 6e 67 20 61 20 66 | 65 77 20 62 79 74 65 73 |ging a f|ew bytes|
|00004150| 20 61 74 20 76 61 72 69 | 6f 75 73 20 6f 66 66 73 | at vari|ous offs|
|00004160| 65 74 73 2c 20 20 74 68 | 65 20 52 65 70 6c 61 63 |ets, th|e Replac|
|00004170| 65 20 6d 6f 64 65 20 20 | 69 73 20 20 66 6f 72 0d |e mode |is for.|
|00004180| 0a 63 68 61 6e 67 69 6e | 67 20 20 73 65 76 65 72 |.changin|g sever|
|00004190| 61 6c 20 20 62 79 74 65 | 73 20 6f 66 20 69 6e 66 |al byte|s of inf|
|000041a0| 6f 72 6d 61 74 69 6f 6e | 20 61 74 20 6f 6e 65 20 |ormation| at one |
|000041b0| 74 69 6d 65 2e 20 20 20 | 44 61 74 61 20 63 61 6e |time. |Data can|
|000041c0| 20 62 65 20 20 65 6e 74 | 65 72 65 64 20 20 69 6e | be ent|ered in|
|000041d0| 0d 0a 68 65 78 61 64 65 | 63 69 6d 61 6c 20 6f 72 |..hexade|cimal or|
|000041e0| 20 63 68 61 72 61 63 74 | 65 72 20 66 6f 72 6d 61 | charact|er forma|
|000041f0| 74 2c 20 20 61 6e 64 20 | 6d 75 6c 74 69 70 6c 65 |t, and |multiple|
|00004200| 20 62 79 74 65 73 20 63 | 61 6e 20 62 65 20 65 6e | bytes c|an be en|
|00004210| 74 65 72 65 64 20 61 74 | 20 6f 6e 65 20 74 69 6d |tered at| one tim|
|00004220| 65 0d 0a 77 69 74 68 6f | 75 74 20 20 77 61 69 74 |e..witho|ut wait|
|00004230| 69 6e 67 20 20 66 6f 72 | 20 74 68 65 20 70 72 6f |ing for| the pro|
|00004240| 6d 70 74 2e 20 20 20 49 | 66 20 79 6f 75 20 77 61 |mpt. I|f you wa|
|00004250| 6e 74 65 64 20 74 6f 20 | 73 74 6f 72 65 20 74 68 |nted to |store th|
|00004260| 65 20 20 63 68 61 72 61 | 63 74 65 72 73 20 20 27 |e chara|cters '|
|00004270| 4d 79 0d 0a 6e 61 6d 65 | 27 20 66 6f 6c 6c 6f 77 |My..name|' follow|
|00004280| 65 64 20 62 79 20 61 20 | 68 65 78 61 64 65 63 69 |ed by a |hexadeci|
|00004290| 6d 61 6c 20 30 30 20 73 | 74 61 72 74 69 6e 67 20 |mal 00 s|tarting |
|000042a0| 61 74 20 6c 6f 63 61 74 | 69 6f 6e 20 31 30 33 2c |at locat|ion 103,|
|000042b0| 20 79 6f 75 20 77 6f 75 | 6c 64 20 65 6e 74 65 72 | you wou|ld enter|
|000042c0| 3a 0d 0a 0d 0a 20 20 20 | 20 20 45 20 31 30 33 20 |:.... | E 103 |
|000042d0| 27 4d 79 20 6e 61 6d 65 | 27 20 30 0d 0a 0d 0a 41 |'My name|' 0....A|
|000042e0| 73 20 20 69 6e 20 20 74 | 68 65 20 53 65 61 72 63 |s in t|he Searc|
|000042f0| 68 20 63 6f 6d 6d 61 6e | 64 2c 20 20 64 61 74 61 |h comman|d, data|
|00004300| 20 63 61 6e 20 62 65 20 | 65 6e 74 65 72 65 64 20 | can be |entered |
|00004310| 69 6e 20 63 68 61 72 61 | 63 74 65 72 20 20 28 69 |in chara|cter (i|
|00004320| 6e 20 20 71 75 6f 74 65 | 73 29 20 20 6f 72 0d 0a |n quote|s) or..|
|00004330| 68 65 78 61 64 65 63 69 | 6d 61 6c 20 20 66 6f 72 |hexadeci|mal for|
|00004340| 6d 73 20 20 61 6e 64 20 | 20 63 61 6e 20 62 65 20 |ms and | can be |
|00004350| 6d 69 78 65 64 20 69 6e | 20 74 68 65 20 73 61 6d |mixed in| the sam|
|00004360| 65 20 63 6f 6d 6d 61 6e | 64 2e 20 20 20 54 68 69 |e comman|d. Thi|
|00004370| 73 20 69 73 20 20 74 68 | 65 20 20 6d 6f 73 74 0d |s is th|e most.|
|00004380| 0a 75 73 65 66 75 6c 20 | 77 61 79 20 6f 66 20 65 |.useful |way of e|
|00004390| 6e 74 65 72 69 6e 67 20 | 6c 61 72 67 65 20 61 6d |ntering |large am|
|000043a0| 6f 75 6e 74 73 20 6f 66 | 20 64 61 74 61 20 69 6e |ounts of| data in|
|000043b0| 74 6f 20 6d 65 6d 6f 72 | 79 2e 0d 0a 0d 0a 0d 0a |to memor|y.......|
|000043c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000043e0| 20 20 20 20 20 46 69 6c | 6c 0d 0a 0d 0a 20 20 20 | Fil|l.... |
|000043f0| 20 20 54 68 65 20 46 69 | 6c 6c 20 63 6f 6d 6d 61 | The Fi|ll comma|
|00004400| 6e 64 20 69 73 20 75 73 | 65 66 75 6c 20 66 6f 72 |nd is us|eful for|
|00004410| 20 73 74 6f 72 69 6e 67 | 20 61 20 6c 6f 74 20 6f | storing| a lot o|
|00004420| 66 20 64 61 74 61 20 6f | 66 20 74 68 65 20 73 61 |f data o|f the sa|
|00004430| 6d 65 20 64 61 74 61 2e | 20 20 49 74 0d 0a 64 69 |me data.| It..di|
|00004440| 66 66 65 72 73 20 20 66 | 72 6f 6d 20 20 74 68 65 |ffers f|rom the|
|00004450| 20 45 6e 74 65 72 20 63 | 6f 6d 6d 61 6e 64 20 69 | Enter c|ommand i|
|00004460| 6e 20 74 68 61 74 20 74 | 68 65 20 6c 69 73 74 20 |n that t|he list |
|00004470| 77 69 6c 6c 20 62 65 20 | 20 72 65 70 65 61 74 65 |will be | repeate|
|00004480| 64 20 20 75 6e 74 69 6c | 20 20 74 68 65 0d 0a 72 |d until| the..r|
|00004490| 65 71 75 65 73 74 65 64 | 20 61 6d 6f 75 6e 74 20 |equested| amount |
|000044a0| 6f 66 20 6d 65 6d 6f 72 | 79 20 69 73 20 66 69 6c |of memor|y is fil|
|000044b0| 6c 65 64 2e 20 20 49 66 | 20 74 68 65 20 6c 69 73 |led. If| the lis|
|000044c0| 74 20 69 73 20 6c 6f 6e | 67 65 72 20 74 68 61 6e |t is lon|ger than|
|000044d0| 20 74 68 65 20 61 6d 6f | 75 6e 74 20 6f 66 0d 0a | the amo|unt of..|
|000044e0| 6d 65 6d 6f 72 79 20 74 | 6f 20 62 65 20 66 69 6c |memory t|o be fil|
|000044f0| 6c 65 64 2c 20 20 74 68 | 65 20 65 78 74 72 61 20 |led, th|e extra |
|00004500| 69 74 65 6d 73 20 61 72 | 65 20 69 67 6e 6f 72 65 |items ar|e ignore|
|00004510| 64 2e 20 20 20 4c 69 6b | 65 20 74 68 65 20 45 6e |d. Lik|e the En|
|00004520| 74 65 72 20 63 6f 6d 6d | 61 6e 64 2c 20 69 74 0d |ter comm|and, it.|
|00004530| 0a 77 69 6c 6c 20 20 74 | 61 6b 65 20 68 65 78 61 |.will t|ake hexa|
|00004540| 64 65 63 69 6d 61 6c 20 | 6f 72 20 63 68 61 72 61 |decimal |or chara|
|00004550| 63 74 65 72 20 64 61 74 | 61 2e 20 20 20 55 6e 6c |cter dat|a. Unl|
|00004560| 69 6b 65 20 74 68 65 20 | 45 6e 74 65 72 20 20 63 |ike the |Enter c|
|00004570| 6f 6d 6d 61 6e 64 2c 20 | 20 74 68 6f 75 67 68 2c |ommand, | though,|
|00004580| 0d 0a 6c 61 72 67 65 20 | 61 6d 6f 75 6e 74 73 20 |..large |amounts |
|00004590| 6f 66 20 64 61 74 61 20 | 63 61 6e 20 62 65 20 73 |of data |can be s|
|000045a0| 74 6f 72 65 64 20 77 69 | 74 68 6f 75 74 20 73 70 |tored wi|thout sp|
|000045b0| 65 63 69 66 79 69 6e 67 | 20 65 76 65 72 79 20 63 |ecifying| every c|
|000045c0| 68 61 72 61 63 74 65 72 | 2e 20 20 20 41 73 20 61 |haracter|. As a|
|000045d0| 6e 0d 0a 65 78 61 6d 70 | 6c 65 2c 20 74 6f 20 63 |n..examp|le, to c|
|000045e0| 6c 65 61 72 20 33 32 4b | 20 28 38 30 30 30 68 29 |lear 32K| (8000h)|
|000045f0| 20 6f 66 20 6d 65 6d 6f | 72 79 20 74 6f 20 30 30 | of memo|ry to 00|
|00004600| 68 2c 20 79 6f 75 20 6f | 6e 6c 79 20 6e 65 65 64 |h, you o|nly need|
|00004610| 20 74 6f 20 65 6e 74 65 | 72 3a 0d 0a 0d 0a 20 20 | to ente|r:.... |
|00004620| 20 20 20 46 20 30 20 4c | 20 38 30 30 30 20 30 0d | F 0 L| 8000 0.|
|00004630| 0a 0d 0a 57 68 69 63 68 | 20 74 72 61 6e 73 6c 61 |...Which| transla|
|00004640| 74 65 73 20 69 6e 74 6f | 20 46 69 6c 6c 2c 20 73 |tes into| Fill, s|
|00004650| 74 61 72 74 69 6e 67 20 | 61 74 20 44 53 3a 30 30 |tarting |at DS:00|
|00004660| 30 30 20 66 6f 72 20 61 | 20 4c 65 6e 67 74 68 20 |00 for a| Length |
|00004670| 6f 66 20 33 32 4b 20 28 | 38 30 30 30 29 20 77 69 |of 32K (|8000) wi|
|00004680| 74 68 0d 0a 30 30 68 2e | 20 20 20 49 66 20 74 68 |th..00h.| If th|
|00004690| 65 20 64 61 74 61 20 77 | 65 72 65 20 65 6e 74 65 |e data w|ere ente|
|000046a0| 72 65 64 20 61 73 20 27 | 31 32 33 34 27 2c 20 20 |red as '|1234', |
|000046b0| 74 68 65 20 6d 65 6d 6f | 72 79 20 77 6f 75 6c 64 |the memo|ry would|
|000046c0| 20 62 65 20 66 69 6c 6c | 65 64 20 77 69 74 68 20 | be fill|ed with |
|000046d0| 74 68 65 0d 0a 72 65 70 | 65 61 74 69 6e 67 20 73 |the..rep|eating s|
|000046e0| 74 72 69 6e 67 20 27 31 | 32 33 34 31 32 33 34 31 |tring '1|23412341|
|000046f0| 32 33 34 27 2c 20 20 65 | 74 63 2e 20 20 20 55 73 |234', e|tc. Us|
|00004700| 75 61 6c 6c 79 2c 20 20 | 69 74 20 69 73 20 62 65 |ually, |it is be|
|00004710| 74 74 65 72 20 74 6f 20 | 65 6e 74 65 72 20 20 73 |tter to |enter s|
|00004720| 6d 61 6c 6c 0d 0a 61 6d | 6f 75 6e 74 73 20 6f 66 |mall..am|ounts of|
|00004730| 20 64 61 74 61 20 77 69 | 74 68 20 74 68 65 20 45 | data wi|th the E|
|00004740| 6e 74 65 72 20 63 6f 6d | 6d 61 6e 64 2c 20 20 62 |nter com|mand, b|
|00004750| 65 63 61 75 73 65 20 61 | 6e 20 65 72 72 6f 72 20 |ecause a|n error |
|00004760| 69 6e 20 74 68 65 20 6c | 65 6e 67 74 68 20 70 61 |in the l|ength pa|
|00004770| 72 61 6d 65 2d 0d 0a 74 | 65 72 20 6f 66 20 74 68 |rame-..t|er of th|
|00004780| 65 20 46 69 6c 6c 20 63 | 6f 6d 6d 61 6e 64 20 63 |e Fill c|ommand c|
|00004790| 61 6e 20 64 65 73 74 72 | 6f 79 20 61 20 6c 6f 74 |an destr|oy a lot|
|000047a0| 20 6f 66 20 77 6f 72 6b | 2e 20 20 54 68 65 20 45 | of work|. The E|
|000047b0| 6e 74 65 72 20 63 6f 6d | 6d 61 6e 64 2c 20 68 6f |nter com|mand, ho|
|000047c0| 77 65 76 65 72 2c 0d 0a | 77 69 6c 6c 20 20 6f 6e |wever,..|will on|
|000047d0| 6c 79 20 63 68 61 6e 67 | 65 20 74 68 65 20 6e 75 |ly chang|e the nu|
|000047e0| 6d 62 65 72 20 6f 66 20 | 62 79 74 65 73 20 61 63 |mber of |bytes ac|
|000047f0| 74 75 61 6c 6c 79 20 65 | 6e 74 65 72 65 64 2c 20 |tually e|ntered, |
|00004800| 20 6d 69 6e 69 6d 69 7a | 69 6e 67 20 74 68 65 20 | minimiz|ing the |
|00004810| 65 66 66 65 63 74 73 0d | 0a 6f 66 20 61 20 70 61 |effects.|.of a pa|
|00004820| 72 61 6d 65 74 65 72 20 | 65 72 72 6f 72 2e 0d 0a |rameter |error...|
|00004830| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00004840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004850| 20 20 20 20 20 20 20 20 | 20 4d 6f 76 65 0d 0a 0d | | Move...|
|00004860| 0a 20 20 20 20 20 54 68 | 65 20 4d 6f 76 65 20 63 |. Th|e Move c|
|00004870| 6f 6d 6d 61 6e 64 20 64 | 6f 65 73 20 6a 75 73 74 |ommand d|oes just|
|00004880| 20 77 68 61 74 20 69 74 | 20 73 61 79 73 20 2d 20 | what it| says - |
|00004890| 69 74 20 6d 6f 76 65 73 | 20 64 61 74 61 20 61 72 |it moves| data ar|
|000048a0| 6f 75 6e 64 20 69 6e 73 | 69 64 65 20 20 74 68 65 |ound ins|ide the|
|000048b0| 0d 0a 6d 61 63 68 69 6e | 65 2e 20 20 20 49 74 20 |..machin|e. It |
|000048c0| 20 74 61 6b 65 73 20 20 | 62 79 74 65 73 20 66 72 | takes |bytes fr|
|000048d0| 6f 6d 20 77 69 74 68 20 | 74 68 65 20 73 74 61 72 |om with |the star|
|000048e0| 74 69 6e 67 20 61 64 64 | 72 65 73 73 20 61 6e 64 |ting add|ress and|
|000048f0| 20 6d 6f 76 65 73 20 69 | 74 20 74 6f 20 20 74 68 | moves i|t to th|
|00004900| 65 0d 0a 65 6e 64 69 6e | 67 20 61 64 64 72 65 73 |e..endin|g addres|
|00004910| 73 2e 20 20 20 49 66 20 | 79 6f 75 20 6e 65 65 64 |s. If |you need|
|00004920| 20 74 6f 20 61 64 64 20 | 61 6e 20 69 6e 73 74 72 | to add |an instr|
|00004930| 75 63 74 69 6f 6e 20 69 | 6e 74 6f 20 61 20 70 72 |uction i|nto a pr|
|00004940| 6f 67 72 61 6d 2c 20 20 | 69 74 20 63 61 6e 20 20 |ogram, |it can |
|00004950| 62 65 0d 0a 75 73 65 64 | 20 20 74 6f 20 6d 61 6b |be..used| to mak|
|00004960| 65 20 72 6f 6f 6d 20 66 | 6f 72 20 74 68 65 20 69 |e room f|or the i|
|00004970| 6e 73 74 72 75 63 74 69 | 6f 6e 2e 20 20 20 42 65 |nstructi|on. Be|
|00004980| 77 61 72 65 2c 20 20 74 | 68 6f 75 67 68 2e 20 20 |ware, t|hough. |
|00004990| 20 41 6e 79 20 64 61 74 | 61 20 6f 72 20 6c 61 62 | Any dat|a or lab|
|000049a0| 65 6c 73 0d 0a 72 65 66 | 65 72 65 6e 63 65 64 20 |els..ref|erenced |
|000049b0| 61 66 74 65 72 20 74 68 | 65 20 6d 6f 76 65 20 77 |after th|e move w|
|000049c0| 69 6c 6c 20 6e 6f 74 20 | 62 65 20 69 6e 20 74 68 |ill not |be in th|
|000049d0| 65 20 73 61 6d 65 20 70 | 6c 61 63 65 2e 20 20 20 |e same p|lace. |
|000049e0| 4d 6f 76 65 20 63 61 6e | 20 62 65 20 75 73 65 64 |Move can| be used|
|000049f0| 20 20 74 6f 0d 0a 73 61 | 76 65 20 61 20 70 61 72 | to..sa|ve a par|
|00004a00| 74 20 6f 66 20 74 68 65 | 20 70 72 6f 67 72 61 6d |t of the| program|
|00004a10| 20 69 6e 20 66 72 65 65 | 20 6d 65 6d 6f 72 79 20 | in free| memory |
|00004a20| 77 68 69 6c 65 20 79 6f | 75 20 70 6c 61 79 20 77 |while yo|u play w|
|00004a30| 69 74 68 20 74 68 65 20 | 70 72 6f 67 72 61 6d 2c |ith the |program,|
|00004a40| 20 20 61 6e 64 0d 0a 72 | 65 73 74 6f 72 65 20 20 | and..r|estore |
|00004a50| 69 74 20 20 61 74 20 61 | 6e 79 20 74 69 6d 65 2e |it at a|ny time.|
|00004a60| 20 20 20 49 74 20 63 61 | 6e 20 61 6c 73 6f 20 62 | It ca|n also b|
|00004a70| 65 20 75 73 65 64 20 74 | 6f 20 63 6f 70 79 20 52 |e used t|o copy R|
|00004a80| 4f 4d 20 42 49 4f 53 20 | 20 69 6e 74 6f 20 20 6d |OM BIOS | into m|
|00004a90| 65 6d 6f 72 79 2c 0d 0a | 77 68 65 72 65 20 69 74 |emory,..|where it|
|00004aa0| 20 63 61 6e 20 62 65 20 | 77 72 69 74 74 65 6e 20 | can be |written |
|00004ab0| 74 6f 20 61 20 66 69 6c | 65 20 6f 72 20 70 6c 61 |to a fil|e or pla|
|00004ac0| 79 65 64 20 77 69 74 68 | 20 74 6f 20 79 6f 75 72 |yed with| to your|
|00004ad0| 20 68 65 61 72 74 27 73 | 20 63 6f 6e 74 65 6e 74 | heart's| content|
|00004ae0| 2e 20 20 20 59 6f 75 0d | 0a 63 61 6e 20 74 68 65 |. You.|.can the|
|00004af0| 6e 20 63 68 61 6e 67 65 | 20 74 68 69 6e 67 73 20 |n change| things |
|00004b00| 61 72 6f 75 6e 64 20 69 | 6e 20 42 49 4f 53 20 77 |around i|n BIOS w|
|00004b10| 69 74 68 6f 75 74 20 68 | 61 76 69 6e 67 20 74 6f |ithout h|aving to|
|00004b20| 20 77 6f 72 72 79 20 61 | 62 6f 75 74 20 70 72 6f | worry a|bout pro|
|00004b30| 67 72 61 6d 6d 69 6e 67 | 0d 0a 61 20 52 4f 4d 2e |gramming|..a ROM.|
|00004b40| 0d 0a 0d 0a 20 20 20 20 | 20 4d 20 31 30 30 20 4c |.... | M 100 L|
|00004b50| 20 32 30 30 20 45 53 3a | 31 30 30 0d 0a 0d 0a 54 | 200 ES:|100....T|
|00004b60| 68 69 73 20 20 77 69 6c | 6c 20 20 6d 6f 76 65 20 |his wil|l move |
|00004b70| 74 68 65 20 64 61 74 61 | 20 66 72 6f 6d 20 44 53 |the data| from DS|
|00004b80| 3a 30 31 30 30 20 74 6f | 20 44 53 3a 30 32 46 46 |:0100 to| DS:02FF|
|00004b90| 20 28 4c 65 6e 67 74 68 | 20 32 30 30 29 20 74 6f | (Length| 200) to|
|00004ba0| 20 20 74 68 65 20 20 61 | 64 64 72 65 73 73 0d 0a | the a|ddress..|
|00004bb0| 70 6f 69 6e 74 65 64 20 | 74 6f 20 62 79 20 45 53 |pointed |to by ES|
|00004bc0| 3a 30 31 30 30 2e 20 20 | 4c 61 74 65 72 2c 20 69 |:0100. |Later, i|
|00004bd0| 66 20 77 65 20 77 61 6e | 74 20 74 6f 20 72 65 73 |f we wan|t to res|
|00004be0| 74 6f 72 65 20 74 68 65 | 20 64 61 74 61 2c 20 77 |tore the| data, w|
|00004bf0| 65 20 63 61 6e 20 73 61 | 79 3a 0d 0a 0d 0a 20 20 |e can sa|y:.... |
|00004c00| 20 20 20 4d 20 45 53 3a | 31 30 30 20 4c 20 32 30 | M ES:|100 L 20|
|00004c10| 30 20 31 30 30 0d 0a 0d | 0a 77 68 69 63 68 20 77 |0 100...|.which w|
|00004c20| 69 6c 6c 20 6d 6f 76 65 | 20 74 68 65 20 64 61 74 |ill move| the dat|
|00004c30| 61 20 62 61 63 6b 20 74 | 6f 20 69 74 73 20 73 74 |a back t|o its st|
|00004c40| 61 72 74 69 6e 67 20 70 | 6f 69 6e 74 2e 20 20 20 |arting p|oint. |
|00004c50| 55 6e 6c 65 73 73 20 74 | 68 65 20 64 61 74 61 20 |Unless t|he data |
|00004c60| 68 61 73 20 62 65 65 6e | 0d 0a 63 68 61 6e 67 65 |has been|..change|
|00004c70| 64 20 77 68 69 6c 65 20 | 61 74 20 74 68 65 20 74 |d while |at the t|
|00004c80| 65 6d 70 6f 72 61 72 79 | 20 6c 6f 63 61 74 69 6f |emporary| locatio|
|00004c90| 6e 20 28 45 53 3a 30 31 | 30 30 29 2c 20 20 77 65 |n (ES:01|00), we|
|00004ca0| 20 77 69 6c 6c 20 72 65 | 73 74 6f 72 65 20 74 68 | will re|store th|
|00004cb0| 65 20 64 61 74 61 20 74 | 6f 0d 0a 69 74 73 20 6f |e data t|o..its o|
|00004cc0| 72 69 67 69 6e 61 6c 20 | 73 74 61 74 65 2e 0d 0a |riginal |state...|
|00004cd0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004ce0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004cf0| 20 20 20 20 20 41 73 73 | 65 6d 62 6c 65 0d 0a 0d | Ass|emble...|
|00004d00| 0a 49 20 70 75 72 70 6f | 73 65 6c 79 20 6c 65 66 |.I purpo|sely lef|
|00004d10| 74 20 74 68 65 20 41 73 | 73 65 6d 62 6c 65 20 63 |t the As|semble c|
|00004d20| 6f 6d 6d 61 6e 64 20 74 | 6f 20 74 68 65 20 65 6e |ommand t|o the en|
|00004d30| 64 2c 20 20 61 73 20 69 | 74 20 69 73 20 74 68 65 |d, as i|t is the|
|00004d40| 20 6d 6f 73 74 20 63 6f | 6d 70 6c 65 78 20 6f 66 | most co|mplex of|
|00004d50| 0d 0a 74 68 65 20 20 64 | 61 74 61 20 65 6e 74 72 |..the d|ata entr|
|00004d60| 79 20 63 6f 6d 6d 61 6e | 64 73 2e 20 20 20 49 74 |y comman|ds. It|
|00004d70| 20 77 69 6c 6c 20 74 61 | 6b 65 20 74 68 65 20 69 | will ta|ke the i|
|00004d80| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 69 6e 20 74 |nstructi|ons in t|
|00004d90| 68 65 20 61 73 73 65 6d | 62 6c 65 72 20 6c 61 6e |he assem|bler lan|
|00004da0| 2d 0d 0a 67 75 61 67 65 | 20 61 6e 64 20 63 6f 6e |-..guage| and con|
|00004db0| 76 65 72 74 20 74 68 65 | 6d 20 74 6f 20 6d 61 63 |vert the|m to mac|
|00004dc0| 68 69 6e 65 20 63 6f 64 | 65 20 64 69 72 65 63 74 |hine cod|e direct|
|00004dd0| 6c 79 2e 20 20 20 53 6f | 6d 65 20 6f 66 20 74 68 |ly. So|me of th|
|00004de0| 65 20 74 68 69 6e 67 73 | 20 69 74 20 20 63 61 6e |e things| it can|
|00004df0| 27 74 0d 0a 64 6f 2c 20 | 20 68 6f 77 65 76 65 72 |'t..do, | however|
|00004e00| 2c 20 20 61 72 65 3a 20 | 72 65 66 65 72 65 6e 63 |, are: |referenc|
|00004e10| 65 20 6c 61 62 65 6c 73 | 2c 20 73 65 74 20 65 71 |e labels|, set eq|
|00004e20| 75 61 74 65 73 2c 20 75 | 73 65 20 6d 61 63 72 6f |uates, u|se macro|
|00004e30| 73 2c 20 6f 72 20 61 6e | 79 74 68 69 6e 67 20 65 |s, or an|ything e|
|00004e40| 6c 73 65 0d 0a 77 68 69 | 63 68 20 63 61 6e 6e 6f |lse..whi|ch canno|
|00004e50| 74 20 62 65 20 74 72 61 | 6e 73 6c 61 74 65 64 20 |t be tra|nslated |
|00004e60| 74 6f 20 61 20 76 61 6c | 75 65 2e 20 20 44 61 74 |to a val|ue. Dat|
|00004e70| 61 20 6c 6f 63 61 74 69 | 6f 6e 73 20 68 61 76 65 |a locati|ons have|
|00004e80| 20 74 6f 20 62 65 20 72 | 65 66 65 72 65 6e 63 65 | to be r|eference|
|00004e90| 64 20 62 79 0d 0a 74 68 | 65 20 70 68 79 73 69 63 |d by..th|e physic|
|00004ea0| 61 6c 20 6d 65 6d 6f 72 | 79 20 61 64 64 72 65 73 |al memor|y addres|
|00004eb0| 73 2c 20 73 65 67 6d 65 | 6e 74 20 72 65 67 69 73 |s, segme|nt regis|
|00004ec0| 74 65 72 73 2c 20 69 66 | 20 64 69 66 66 65 72 65 |ters, if| differe|
|00004ed0| 6e 74 20 66 72 6f 6d 20 | 74 68 65 20 64 65 66 61 |nt from |the defa|
|00004ee0| 75 6c 74 73 2c 0d 0a 6d | 75 73 74 20 62 65 20 73 |ults,..m|ust be s|
|00004ef0| 70 65 63 69 66 69 65 64 | 2c 20 20 61 6e 64 20 52 |pecified|, and R|
|00004f00| 45 54 20 69 6e 73 74 72 | 75 63 74 69 6f 6e 73 20 |ET instr|uctions |
|00004f10| 6d 75 73 74 20 73 70 65 | 63 69 66 79 20 74 68 65 |must spe|cify the|
|00004f20| 20 74 79 70 65 20 28 4e | 45 41 52 20 6f 72 20 46 | type (N|EAR or F|
|00004f30| 41 52 29 20 6f 66 0d 0a | 72 65 74 75 72 6e 20 74 |AR) of..|return t|
|00004f40| 6f 20 62 65 20 75 73 65 | 64 2e 20 20 20 41 6c 73 |o be use|d. Als|
|00004f50| 6f 2c 20 20 69 66 20 61 | 6e 20 69 6e 73 74 72 75 |o, if a|n instru|
|00004f60| 63 74 69 6f 6e 20 72 65 | 66 65 72 65 6e 63 65 73 |ction re|ferences|
|00004f70| 20 64 61 74 61 20 62 75 | 74 20 6e 6f 74 20 72 65 | data bu|t not re|
|00004f80| 67 69 73 74 65 72 73 0d | 0a 28 69 2e 65 2e 20 20 |gisters.|.(i.e. |
|00004f90| 4d 6f 76 20 5b 32 37 38 | 5d 2c 35 29 2c 20 74 68 |Mov [278|],5), th|
|00004fa0| 65 20 42 79 74 65 20 70 | 74 72 20 6f 72 20 57 6f |e Byte p|tr or Wo|
|00004fb0| 72 64 20 70 74 72 20 6f | 76 65 72 72 69 64 65 73 |rd ptr o|verrides|
|00004fc0| 20 6d 75 73 74 20 62 65 | 20 73 70 65 63 69 66 69 | must be| specifi|
|00004fd0| 65 64 2e 20 20 4f 6e 65 | 0d 0a 6f 74 68 65 72 20 |ed. One|..other |
|00004fe0| 20 72 65 73 74 72 69 63 | 74 69 6f 6e 3a 20 20 20 | restric|tion: |
|00004ff0| 54 6f 20 74 65 6c 6c 20 | 44 45 42 55 47 20 74 68 |To tell |DEBUG th|
|00005000| 65 20 64 69 66 66 65 72 | 65 6e 63 65 20 62 65 74 |e differ|ence bet|
|00005010| 77 65 65 6e 20 6d 6f 76 | 69 6e 67 20 31 32 33 34 |ween mov|ing 1234|
|00005020| 68 20 69 6e 74 6f 20 41 | 58 0d 0a 61 6e 64 20 20 |h into A|X..and |
|00005030| 6d 6f 76 69 6e 67 20 20 | 74 68 65 20 64 61 74 61 |moving |the data|
|00005040| 20 66 72 6f 6d 20 6c 6f | 63 61 74 69 6f 6e 20 31 | from lo|cation 1|
|00005050| 32 33 34 20 69 6e 74 6f | 20 41 58 2c 20 20 74 68 |234 into| AX, th|
|00005060| 65 20 6c 61 74 74 65 72 | 20 69 73 20 63 6f 64 65 |e latter| is code|
|00005070| 64 20 20 61 73 20 20 4d | 6f 76 0d 0a 41 58 2c 5b |d as M|ov..AX,[|
|00005080| 31 32 33 34 5d 2c 20 20 | 77 68 65 72 65 20 74 68 |1234], |where th|
|00005090| 65 20 62 72 61 63 6b 65 | 74 73 20 69 6e 64 69 63 |e bracke|ts indic|
|000050a0| 61 74 65 20 74 68 65 20 | 72 65 66 65 72 65 6e 63 |ate the |referenc|
|000050b0| 65 20 69 73 20 61 6e 20 | 61 64 64 72 65 73 73 65 |e is an |addresse|
|000050c0| 64 20 6c 6f 63 61 74 69 | 6f 6e 2e 0d 0a 54 68 65 |d locati|on...The|
|000050d0| 20 64 69 66 66 65 72 65 | 6e 63 65 73 20 62 65 74 | differe|nces bet|
|000050e0| 77 65 65 6e 20 4d 41 53 | 4d 20 61 6e 64 20 44 45 |ween MAS|M and DE|
|000050f0| 42 55 47 20 61 72 65 20 | 61 73 20 66 6f 6c 6c 6f |BUG are |as follo|
|00005100| 77 73 3a 0d 0a 0d 0a 20 | 20 20 20 20 4d 41 53 4d |ws:.... | MASM|
|00005110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005120| 44 45 42 55 47 20 20 20 | 20 20 20 20 20 20 20 20 |DEBUG | |
|00005130| 20 20 20 20 20 20 20 20 | 20 43 6f 6d 6d 65 6e 74 | | Comment|
|00005140| 73 0d 0a 0d 0a 20 20 20 | 20 20 4d 6f 76 20 20 41 |s.... | Mov A|
|00005150| 58 2c 31 32 33 34 20 20 | 20 20 20 20 20 20 4d 6f |X,1234 | Mo|
|00005160| 76 20 20 41 58 2c 31 32 | 33 34 20 20 20 20 20 20 |v AX,12|34 |
|00005170| 20 20 20 20 20 20 20 50 | 6c 61 63 65 20 31 32 33 | P|lace 123|
|00005180| 34 20 69 6e 74 6f 20 41 | 58 0d 0a 20 20 20 20 20 |4 into A|X.. |
|00005190| 4d 6f 76 20 20 41 58 2c | 4c 31 32 33 34 20 20 20 |Mov AX,|L1234 |
|000051a0| 20 20 20 20 4d 6f 76 20 | 20 41 58 2c 5b 31 32 33 | Mov | AX,[123|
|000051b0| 34 5d 20 20 20 20 20 20 | 20 20 20 20 20 43 6f 6e |4] | Con|
|000051c0| 74 65 6e 74 73 20 6f 66 | 20 61 64 64 2e 20 31 32 |tents of| add. 12|
|000051d0| 33 34 20 74 6f 20 41 58 | 0d 0a 20 20 20 20 20 4d |34 to AX|.. M|
|000051e0| 6f 76 20 20 41 58 2c 43 | 53 3a 31 32 33 34 20 20 |ov AX,C|S:1234 |
|000051f0| 20 20 20 43 53 3a 4d 6f | 76 20 41 58 2c 5b 31 32 | CS:Mo|v AX,[12|
|00005200| 33 34 5d 20 20 20 20 20 | 20 20 20 20 4d 6f 76 65 |34] | Move|
|00005210| 20 66 72 6f 6d 20 6f 66 | 66 73 65 74 20 6f 66 20 | from of|fset of |
|00005220| 43 53 2e 0d 0a 20 20 20 | 20 20 4d 6f 76 73 20 42 |CS... | Movs B|
|00005230| 79 74 65 20 70 74 72 20 | 2e 2e 2e 20 20 20 4d 6f |yte ptr |... Mo|
|00005240| 76 65 73 62 20 20 20 20 | 20 20 20 20 20 20 20 20 |vesb | |
|00005250| 20 20 20 20 20 20 20 4d | 6f 76 65 20 62 79 74 65 | M|ove byte|
|00005260| 20 73 74 72 69 6e 67 0d | 0a 20 20 20 20 20 4d 6f | string.|. Mo|
|00005270| 76 73 20 57 6f 72 64 20 | 70 74 72 20 2e 2e 2e 20 |vs Word |ptr ... |
|00005280| 20 20 4d 6f 76 73 77 20 | 20 20 20 20 20 20 20 20 | Movsw | |
|00005290| 20 20 20 20 20 20 20 20 | 20 20 20 4d 6f 76 65 20 | | Move |
|000052a0| 77 6f 72 64 20 73 74 72 | 69 6e 67 0d 0a 20 20 20 |word str|ing.. |
|000052b0| 20 20 52 65 74 20 20 20 | 20 20 20 20 20 20 20 20 | Ret | |
|000052c0| 20 20 20 20 20 20 52 65 | 74 20 20 20 20 20 20 20 | Re|t |
|000052d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 4e | | N|
|000052e0| 65 61 72 20 72 65 74 75 | 72 6e 0d 0a 20 20 20 20 |ear retu|rn.. |
|000052f0| 20 52 65 74 20 20 20 20 | 20 20 20 20 20 20 20 20 | Ret | |
|00005300| 20 20 20 20 20 52 65 74 | 66 20 20 20 20 20 20 20 | Ret|f |
|00005310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 46 61 | | Fa|
|00005320| 72 20 72 65 74 75 72 6e | 0d 0a 0d 0a 41 6c 73 6f |r return|....Also|
|00005330| 2c 20 20 4a 6d 70 20 69 | 6e 73 74 72 75 63 74 69 |, Jmp i|nstructi|
|00005340| 6f 6e 73 20 77 69 6c 6c | 20 62 65 20 61 73 73 65 |ons will| be asse|
|00005350| 6d 62 6c 65 64 20 61 75 | 74 6f 6d 61 74 69 63 61 |mbled au|tomatica|
|00005360| 6c 6c 79 20 74 6f 20 53 | 68 6f 72 74 2c 20 20 4e |lly to S|hort, N|
|00005370| 65 61 72 2c 20 6f 72 20 | 46 61 72 0d 0a 4a 6d 70 |ear, or |Far..Jmp|
|00005380| 73 2e 20 20 48 6f 77 65 | 76 65 72 2c 20 74 68 65 |s. Howe|ver, the|
|00005390| 20 4e 65 61 72 20 61 6e | 64 20 46 61 72 20 6f 70 | Near an|d Far op|
|000053a0| 65 72 61 6e 64 73 20 63 | 61 6e 20 62 65 20 75 73 |erands c|an be us|
|000053b0| 65 64 20 74 6f 20 6f 76 | 65 72 72 69 64 65 20 74 |ed to ov|erride t|
|000053c0| 68 65 20 64 69 73 70 6c | 61 63 65 2d 0d 0a 6d 65 |he displ|ace-..me|
|000053d0| 6e 74 20 69 66 20 79 6f | 75 20 64 6f 20 6e 65 65 |nt if yo|u do nee|
|000053e0| 64 20 74 68 65 6d 2e 20 | 20 4c 65 74 27 73 20 74 |d them. | Let's t|
|000053f0| 72 79 20 61 20 76 65 72 | 79 20 73 69 6d 70 6c 65 |ry a ver|y simple|
|00005400| 20 72 6f 75 74 69 6e 65 | 20 74 6f 20 63 6c 65 61 | routine| to clea|
|00005410| 72 20 74 68 65 20 73 63 | 72 65 65 6e 2e 0d 0a 0d |r the sc|reen....|
|00005420| 0a 20 20 20 20 20 2d 41 | 20 31 30 30 0d 0a 20 20 |. -A| 100.. |
|00005430| 20 20 20 36 38 39 37 3a | 30 31 30 30 20 6d 6f 76 | 6897:|0100 mov|
|00005440| 20 61 78 2c 36 30 30 0d | 0a 20 20 20 20 20 36 38 | ax,600.|. 68|
|00005450| 39 37 3a 30 31 30 33 20 | 6d 6f 76 20 63 78 2c 30 |97:0103 |mov cx,0|
|00005460| 0d 0a 20 20 20 20 20 36 | 38 39 37 3a 30 31 30 36 |.. 6|897:0106|
|00005470| 20 6d 6f 76 20 64 78 2c | 31 38 34 66 0d 0a 20 20 | mov dx,|184f.. |
|00005480| 20 20 20 36 38 39 37 3a | 30 31 30 39 20 6d 6f 76 | 6897:|0109 mov|
|00005490| 20 62 68 2c 30 37 0d 0a | 20 20 20 20 20 36 38 39 | bh,07..| 689|
|000054a0| 37 3a 30 31 30 42 20 69 | 6e 74 20 31 30 0d 0a 20 |7:010B i|nt 10.. |
|000054b0| 20 20 20 20 36 38 39 37 | 3a 30 31 30 44 20 69 6e | 6897|:010D in|
|000054c0| 74 20 32 30 0d 0a 20 20 | 20 20 20 36 38 39 37 3a |t 20.. | 6897:|
|000054d0| 30 31 30 46 0d 0a 20 20 | 20 20 20 2d 0d 0a 0d 0a |010F.. | -....|
|000054e0| 20 20 20 20 20 57 65 20 | 20 61 72 65 20 75 73 69 | We | are usi|
|000054f0| 6e 67 20 42 49 4f 53 20 | 69 6e 74 65 72 72 75 70 |ng BIOS |interrup|
|00005500| 74 20 31 30 68 2c 20 20 | 77 68 69 63 68 20 69 73 |t 10h, |which is|
|00005510| 20 74 68 65 20 76 69 64 | 65 6f 20 69 6e 74 65 72 | the vid|eo inter|
|00005520| 72 75 70 74 2e 20 20 28 | 49 66 20 20 79 6f 75 0d |rupt. (|If you.|
|00005530| 0a 77 6f 75 6c 64 20 6c | 69 6b 65 20 6d 6f 72 65 |.would l|ike more|
|00005540| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|00005550| 74 68 65 20 69 6e 74 65 | 72 72 75 70 74 2c 20 20 |the inte|rrupt, |
|00005560| 74 68 65 72 65 20 69 73 | 20 61 20 76 65 72 79 20 |there is| a very |
|00005570| 67 6f 6f 64 20 64 65 73 | 63 72 69 70 74 69 6f 6e |good des|cription|
|00005580| 0d 0a 69 6e 20 20 74 68 | 65 20 54 65 63 68 6e 69 |..in th|e Techni|
|00005590| 63 61 6c 20 52 65 66 65 | 72 65 6e 63 65 20 4d 61 |cal Refe|rence Ma|
|000055a0| 6e 75 61 6c 2e 29 20 20 | 57 65 20 6e 65 65 64 20 |nual.) |We need |
|000055b0| 74 6f 20 63 61 6c 6c 20 | 42 49 4f 53 20 77 69 74 |to call |BIOS wit|
|000055c0| 68 20 20 41 58 3d 36 30 | 30 2c 20 20 42 48 3d 37 |h AX=60|0, BH=7|
|000055d0| 2c 0d 0a 43 58 3d 30 2c | 20 61 6e 64 20 44 58 3d |,..CX=0,| and DX=|
|000055e0| 31 38 34 46 68 2e 20 20 | 46 69 72 73 74 20 77 65 |184Fh. |First we|
|000055f0| 20 68 61 64 20 74 6f 20 | 6c 6f 61 64 20 74 68 65 | had to |load the|
|00005600| 20 72 65 67 69 73 74 65 | 72 73 2c 20 77 68 69 63 | registe|rs, whic|
|00005610| 68 20 77 65 20 64 69 64 | 20 61 74 20 69 6e 20 74 |h we did| at in t|
|00005620| 68 65 0d 0a 66 69 72 73 | 74 20 20 66 6f 75 72 20 |he..firs|t four |
|00005630| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 2e 20 20 20 |instruct|ions. |
|00005640| 54 68 65 20 73 74 61 74 | 65 6d 65 6e 74 20 61 74 |The stat|ement at|
|00005650| 20 6f 66 66 73 65 74 20 | 36 38 39 37 3a 30 31 30 | offset |6897:010|
|00005660| 42 20 20 61 63 74 75 61 | 6c 6c 79 20 20 63 61 6c |B actua|lly cal|
|00005670| 6c 65 64 0d 0a 42 49 4f | 53 2e 20 20 20 54 68 65 |led..BIO|S. The|
|00005680| 20 49 4e 54 20 32 30 20 | 61 74 20 6f 66 66 73 65 | INT 20 |at offse|
|00005690| 74 20 30 31 30 44 20 69 | 73 20 66 6f 72 20 73 61 |t 010D i|s for sa|
|000056a0| 66 65 74 79 20 6f 6e 6c | 79 2e 20 20 57 65 20 72 |fety onl|y. We r|
|000056b0| 65 61 6c 6c 79 20 64 6f | 6e 27 74 20 6e 65 65 64 |eally do|n't need|
|000056c0| 20 69 74 2c 0d 0a 62 75 | 74 20 77 69 74 68 20 69 | it,..bu|t with i|
|000056d0| 74 20 69 6e 2c 20 20 74 | 68 65 20 70 72 6f 67 72 |t in, t|he progr|
|000056e0| 61 6d 20 77 69 6c 6c 20 | 73 74 6f 70 20 61 75 74 |am will |stop aut|
|000056f0| 6f 6d 61 74 69 63 61 6c | 6c 79 2e 20 20 20 57 69 |omatical|ly. Wi|
|00005700| 74 68 6f 75 74 20 74 68 | 65 20 49 4e 54 20 32 30 |thout th|e INT 20|
|00005710| 2c 20 61 6e 64 0d 0a 69 | 66 20 20 77 65 20 64 69 |, and..i|f we di|
|00005720| 64 20 6e 6f 74 20 73 74 | 6f 70 2c 20 20 44 45 42 |d not st|op, DEB|
|00005730| 55 47 20 77 6f 75 6c 64 | 20 74 72 79 20 61 6e 64 |UG would| try and|
|00005740| 20 65 78 65 63 75 74 65 | 20 77 68 61 74 65 76 65 | execute| whateve|
|00005750| 72 20 6f 63 63 75 72 73 | 20 61 74 20 30 31 30 46 |r occurs| at 010F|
|00005760| 2e 20 20 20 49 66 0d 0a | 74 68 69 73 20 20 68 61 |. If..|this ha|
|00005770| 70 70 65 6e 73 20 20 74 | 6f 20 20 62 65 20 61 20 |ppens t|o be a |
|00005780| 76 61 6c 69 64 20 70 72 | 6f 67 72 61 6d 20 28 75 |valid pr|ogram (u|
|00005790| 6e 6c 69 6b 65 6c 79 29 | 2c 20 20 77 65 20 77 6f |nlikely)|, we wo|
|000057a0| 75 6c 64 20 20 6a 75 73 | 74 20 20 65 78 65 63 75 |uld jus|t execu|
|000057b0| 74 65 20 20 74 68 65 0d | 0a 70 72 6f 67 72 61 6d |te the.|.program|
|000057c0| 2e 20 20 20 55 73 75 61 | 6c 6c 79 2c 20 20 74 68 |. Usua|lly, th|
|000057d0| 6f 75 67 68 2c 20 20 77 | 65 20 77 69 6c 6c 20 66 |ough, w|e will f|
|000057e0| 69 6e 64 20 69 74 20 74 | 6f 20 62 65 20 69 6e 76 |ind it t|o be inv|
|000057f0| 61 6c 69 64 2c 20 20 61 | 6e 64 20 77 69 6c 6c 20 |alid, a|nd will |
|00005800| 70 72 6f 62 61 62 6c 79 | 0d 0a 68 61 6e 67 20 74 |probably|..hang t|
|00005810| 68 65 20 73 79 73 74 65 | 6d 2c 20 20 72 65 71 75 |he syste|m, requ|
|00005820| 69 72 69 6e 67 20 61 20 | 63 6e 74 6c 2d 61 6c 74 |iring a |cntl-alt|
|00005830| 2d 64 65 6c 20 28 6d 61 | 79 62 65 29 20 6f 72 20 |-del (ma|ybe) or |
|00005840| 61 20 70 6f 77 65 72 2d | 6f 66 66 20 61 6e 64 20 |a power-|off and |
|00005850| 6f 6e 20 20 61 67 61 69 | 6e 0d 0a 28 75 73 75 61 |on agai|n..(usua|
|00005860| 6c 6c 79 29 2e 20 20 53 | 6f 2c 20 62 65 20 63 61 |lly). S|o, be ca|
|00005870| 72 65 66 75 6c 20 61 6e | 64 20 64 6f 75 62 6c 65 |reful an|d double|
|00005880| 20 63 68 65 63 6b 20 79 | 6f 75 72 20 77 6f 72 6b | check y|our work|
|00005890| 21 0d 0a 0d 0a 20 20 20 | 20 20 4e 6f 77 2c 20 77 |!.... | Now, w|
|000058a0| 65 20 6e 65 65 64 20 74 | 6f 20 65 78 65 63 75 74 |e need t|o execut|
|000058b0| 65 20 74 68 65 20 70 72 | 6f 67 72 61 6d 2e 20 20 |e the pr|ogram. |
|000058c0| 54 6f 20 64 6f 20 74 68 | 69 73 2c 20 65 6e 74 65 |To do th|is, ente|
|000058d0| 72 20 74 68 65 20 47 20 | 63 6f 6d 6d 61 6e 64 2c |r the G |command,|
|000058e0| 20 61 20 47 0d 0a 66 6f | 6c 6c 6f 77 65 64 20 20 | a G..fo|llowed |
|000058f0| 62 79 20 20 74 68 65 20 | 65 6e 74 65 72 20 6b 65 |by the |enter ke|
|00005900| 79 2e 20 20 20 49 66 20 | 79 6f 75 20 68 61 76 65 |y. If |you have|
|00005910| 20 65 6e 74 65 72 65 64 | 20 74 68 65 20 70 72 6f | entered| the pro|
|00005920| 67 72 61 6d 20 20 63 6f | 72 72 65 63 74 6c 79 2c |gram co|rrectly,|
|00005930| 20 20 74 68 65 0d 0a 73 | 63 72 65 65 6e 20 20 77 | the..s|creen w|
|00005940| 69 6c 6c 20 20 63 6c 65 | 61 72 20 61 6e 64 20 79 |ill cle|ar and y|
|00005950| 6f 75 20 77 69 6c 6c 20 | 67 65 74 20 61 20 6d 65 |ou will |get a me|
|00005960| 73 73 61 67 65 20 22 50 | 72 6f 67 72 61 6d 20 20 |ssage "P|rogram |
|00005970| 74 65 72 6d 69 6e 61 74 | 65 64 20 20 6e 6f 72 6d |terminat|ed norm|
|00005980| 61 6c 6c 79 22 2e 0d 0a | 28 4d 6f 72 65 20 6f 6e |ally"...|(More on|
|00005990| 20 74 68 65 20 47 6f 20 | 63 6f 6d 6d 61 6e 64 20 | the Go |command |
|000059a0| 6c 61 74 65 72 29 2e 0d | 0a 0d 0a 20 20 20 20 20 |later)..|... |
|000059b0| 41 67 61 69 6e 2c 20 49 | 20 63 61 6e 6e 6f 74 20 |Again, I| cannot |
|000059c0| 73 74 72 65 73 73 20 74 | 68 65 20 69 6d 70 6f 72 |stress t|he impor|
|000059d0| 74 61 6e 63 65 20 6f 66 | 20 63 68 65 63 6b 69 6e |tance of| checkin|
|000059e0| 67 20 79 6f 75 72 20 77 | 6f 72 6b 20 77 68 65 6e |g your w|ork when|
|000059f0| 20 75 73 69 6e 67 20 74 | 68 65 0d 0a 41 73 73 65 | using t|he..Asse|
|00005a00| 6d 62 6c 65 20 20 63 6f | 6d 6d 61 6e 64 2e 20 20 |mble co|mmand. |
|00005a10| 20 54 68 65 20 63 6f 6d | 6d 61 6e 64 73 20 6d 61 | The com|mands ma|
|00005a20| 79 20 61 73 73 65 6d 62 | 6c 65 20 63 6f 72 72 65 |y assemb|le corre|
|00005a30| 63 74 6c 79 2c 20 20 62 | 75 74 20 63 61 75 73 65 |ctly, b|ut cause|
|00005a40| 20 61 20 20 6c 6f 74 20 | 20 6f 66 0d 0a 70 72 6f | a lot | of..pro|
|00005a50| 62 6c 65 6d 73 2e 20 20 | 20 54 68 69 73 20 20 69 |blems. | This i|
|00005a60| 73 20 65 73 70 65 63 69 | 61 6c 6c 79 20 69 6d 70 |s especi|ally imp|
|00005a70| 6f 72 74 61 6e 74 20 66 | 6f 72 20 74 68 65 20 4a |ortant f|or the J|
|00005a80| 6d 70 20 61 6e 64 20 43 | 61 6c 6c 20 63 6f 6d 6d |mp and C|all comm|
|00005a90| 61 6e 64 73 3b 20 20 73 | 69 6e 63 65 0d 0a 74 68 |ands; s|ince..th|
|00005aa0| 65 79 20 20 63 61 75 73 | 65 20 20 61 6e 20 69 6e |ey caus|e an in|
|00005ab0| 74 65 72 72 75 70 74 69 | 6f 6e 20 69 6e 20 74 68 |terrupti|on in th|
|00005ac0| 65 20 66 6c 6f 77 20 6f | 66 20 74 68 65 20 70 72 |e flow o|f the pr|
|00005ad0| 6f 67 72 61 6d 2c 20 20 | 74 68 65 79 20 20 63 61 |ogram, |they ca|
|00005ae0| 6e 20 20 63 61 75 73 65 | 20 20 74 68 65 0d 0a 70 |n cause| the..p|
|00005af0| 72 6f 67 72 61 6d 20 20 | 74 6f 20 6a 75 6d 70 20 |rogram |to jump |
|00005b00| 69 6e 74 6f 20 74 68 65 | 20 6d 69 64 64 6c 65 20 |into the| middle |
|00005b10| 6f 66 20 61 6e 20 69 6e | 73 74 72 75 63 74 69 6f |of an in|structio|
|00005b20| 6e 2c 20 20 63 61 75 73 | 69 6e 67 20 56 45 52 59 |n, caus|ing VERY|
|00005b30| 20 75 6e 70 72 65 64 69 | 63 74 61 62 6c 65 0d 0a | unpredi|ctable..|
|00005b40| 72 65 73 75 6c 74 73 2e | 0d 0a 0d 0a 0d 0a 20 20 |results.|...... |
|00005b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 49 | | I|
|00005b70| 2f 4f 20 63 6f 6d 6d 61 | 6e 64 73 0d 0a 0d 0a 20 |/O comma|nds.... |
|00005b80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ba0| 20 20 20 20 4e 61 6d 65 | 0d 0a 0d 0a 54 68 65 20 | Name|....The |
|00005bb0| 20 4e 61 6d 65 20 20 63 | 6f 6d 6d 61 6e 64 20 68 | Name c|ommand h|
|00005bc0| 61 73 20 6a 75 73 74 20 | 6f 6e 65 20 70 75 72 70 |as just |one purp|
|00005bd0| 6f 73 65 20 2d 20 73 70 | 65 63 69 66 79 69 6e 67 |ose - sp|ecifying|
|00005be0| 20 74 68 65 20 6e 61 6d | 65 20 6f 66 20 61 20 20 | the nam|e of a |
|00005bf0| 66 69 6c 65 20 20 77 68 | 69 63 68 0d 0a 44 45 42 |file wh|ich..DEB|
|00005c00| 55 47 20 69 73 20 67 6f | 69 6e 67 20 74 6f 20 4c |UG is go|ing to L|
|00005c10| 6f 61 64 20 6f 72 20 57 | 72 69 74 65 2e 20 20 49 |oad or W|rite. I|
|00005c20| 74 20 64 6f 65 73 20 6e | 6f 74 68 69 6e 67 20 74 |t does n|othing t|
|00005c30| 6f 20 63 68 61 6e 67 65 | 20 6d 65 6d 6f 72 79 20 |o change| memory |
|00005c40| 6f 72 20 65 78 65 63 75 | 74 65 20 61 0d 0a 70 72 |or execu|te a..pr|
|00005c50| 6f 67 72 61 6d 2c 20 20 | 62 75 74 20 64 6f 65 73 |ogram, |but does|
|00005c60| 20 70 72 65 70 61 72 65 | 20 61 20 66 69 6c 65 20 | prepare| a file |
|00005c70| 63 6f 6e 74 72 6f 6c 20 | 62 6c 6f 63 6b 20 66 6f |control |block fo|
|00005c80| 72 20 44 45 42 55 47 20 | 74 6f 20 77 6f 72 6b 20 |r DEBUG |to work |
|00005c90| 77 69 74 68 2e 20 20 49 | 66 20 79 6f 75 0d 0a 61 |with. I|f you..a|
|00005ca0| 72 65 20 67 6f 69 6e 67 | 20 74 6f 20 6c 6f 61 64 |re going| to load|
|00005cb0| 20 61 20 70 72 6f 67 72 | 61 6d 2c 20 20 79 6f 75 | a progr|am, you|
|00005cc0| 20 63 61 6e 20 73 70 65 | 63 69 66 79 20 61 6e 79 | can spe|cify any|
|00005cd0| 20 70 61 72 61 6d 65 74 | 65 72 73 20 6f 6e 20 74 | paramet|ers on t|
|00005ce0| 68 65 20 73 61 6d 65 20 | 20 6c 69 6e 65 2c 0d 0a |he same | line,..|
|00005cf0| 6a 75 73 74 20 20 6c 69 | 6b 65 20 69 6e 20 44 4f |just li|ke in DO|
|00005d00| 53 2e 20 20 20 4f 6e 65 | 20 64 69 66 66 65 72 65 |S. One| differe|
|00005d10| 6e 63 65 20 69 73 2c 20 | 20 74 68 65 20 65 78 74 |nce is, | the ext|
|00005d20| 65 6e 73 69 6f 6e 20 4d | 55 53 54 20 62 65 20 73 |ension M|UST be s|
|00005d30| 70 65 63 69 66 69 65 64 | 2e 20 20 20 54 68 65 0d |pecified|. The.|
|00005d40| 0a 64 65 66 61 75 6c 74 | 20 69 73 20 6e 6f 20 65 |.default| is no e|
|00005d50| 78 74 65 6e 73 69 6f 6e | 2e 20 20 20 44 45 42 55 |xtension|. DEBU|
|00005d60| 47 20 77 69 6c 6c 20 6c | 6f 61 64 20 6f 72 20 77 |G will l|oad or w|
|00005d70| 72 69 74 65 20 61 6e 79 | 20 66 69 6c 65 2c 20 62 |rite any| file, b|
|00005d80| 75 74 20 74 68 65 20 66 | 75 6c 6c 20 66 69 6c 65 |ut the f|ull file|
|00005d90| 0d 0a 6e 61 6d 65 20 6d | 75 73 74 20 62 65 20 65 |..name m|ust be e|
|00005da0| 6e 74 65 72 65 64 2e 0d | 0a 0d 0a 20 20 20 20 20 |ntered..|... |
|00005db0| 2d 6e 20 63 68 6b 64 73 | 6b 2e 63 6f 6d 20 2f 66 |-n chkds|k.com /f|
|00005dc0| 0d 0a 0d 0a 54 68 69 73 | 20 73 74 61 74 65 6d 65 |....This| stateme|
|00005dd0| 6e 74 20 70 72 65 70 61 | 72 65 73 20 44 45 42 55 |nt prepa|res DEBU|
|00005de0| 47 20 66 6f 72 20 6c 6f | 61 64 69 6e 67 20 74 68 |G for lo|ading th|
|00005df0| 65 20 70 72 6f 67 72 61 | 6d 20 43 48 4b 44 53 4b |e progra|m CHKDSK|
|00005e00| 2e 43 4f 4d 20 70 61 73 | 73 69 6e 67 20 74 68 65 |.COM pas|sing the|
|00005e10| 20 2f 66 0d 0a 73 77 69 | 74 63 68 20 74 6f 20 74 | /f..swi|tch to t|
|00005e20| 68 65 20 70 72 6f 67 72 | 61 6d 2e 20 20 20 57 68 |he progr|am. Wh|
|00005e30| 65 6e 20 74 68 65 20 4c | 6f 61 64 20 28 73 65 65 |en the L|oad (see|
|00005e40| 20 62 65 6c 6f 77 29 20 | 63 6f 6d 6d 61 6e 64 20 | below) |command |
|00005e50| 69 73 20 20 65 78 65 63 | 75 74 65 64 2c 20 20 44 |is exec|uted, D|
|00005e60| 45 42 55 47 0d 0a 77 69 | 6c 6c 20 20 6c 6f 61 64 |EBUG..wi|ll load|
|00005e70| 20 43 48 4b 44 53 4b 2e | 43 4f 4d 20 61 6e 64 20 | CHKDSK.|COM and |
|00005e80| 73 65 74 20 75 70 20 74 | 68 65 20 70 61 72 61 6d |set up t|he param|
|00005e90| 65 74 65 72 20 6c 69 73 | 74 20 28 2f 66 29 20 69 |eter lis|t (/f) i|
|00005ea0| 6e 20 74 68 65 20 70 72 | 6f 67 72 61 6d 27 73 20 |n the pr|ogram's |
|00005eb0| 69 6e 70 75 74 0d 0a 61 | 72 65 61 2e 0d 0a 0d 0a |input..a|rea.....|
|00005ec0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005ee0| 20 20 20 20 20 20 20 4c | 6f 61 64 0d 0a 0d 0a 20 | L|oad.... |
|00005ef0| 20 20 20 20 54 68 65 20 | 4c 6f 61 64 20 63 6f 6d | The |Load com|
|00005f00| 6d 61 6e 64 20 68 61 73 | 20 74 77 6f 20 66 6f 72 |mand has| two for|
|00005f10| 6d 61 74 73 2e 20 20 54 | 68 65 20 66 69 72 73 74 |mats. T|he first|
|00005f20| 20 6f 6e 65 20 77 69 6c | 6c 20 6c 6f 61 64 20 61 | one wil|l load a|
|00005f30| 20 70 72 6f 67 72 61 6d | 20 77 68 69 63 68 0d 0a | program| which..|
|00005f40| 68 61 73 20 62 65 65 6e | 20 73 70 65 63 69 66 69 |has been| specifi|
|00005f50| 65 64 20 62 79 20 74 68 | 65 20 4e 61 6d 65 20 63 |ed by th|e Name c|
|00005f60| 6f 6d 6d 61 6e 64 20 69 | 6e 74 6f 20 73 74 6f 72 |ommand i|nto stor|
|00005f70| 61 67 65 2c 20 73 65 74 | 20 74 68 65 20 76 61 72 |age, set| the var|
|00005f80| 69 6f 75 73 20 72 65 67 | 69 73 74 65 72 73 2c 0d |ious reg|isters,.|
|00005f90| 0a 61 6e 64 20 70 72 65 | 70 61 72 65 20 66 6f 72 |.and pre|pare for|
|00005fa0| 20 65 78 65 63 75 74 69 | 6f 6e 2e 20 20 20 41 6e | executi|on. An|
|00005fb0| 79 20 70 72 6f 67 72 61 | 6d 20 70 61 72 61 6d 65 |y progra|m parame|
|00005fc0| 74 65 72 73 20 69 6e 20 | 74 68 65 20 4e 61 6d 65 |ters in |the Name|
|00005fd0| 20 63 6f 6d 6d 61 6e 64 | 20 77 69 6c 6c 20 62 65 | command| will be|
|00005fe0| 0d 0a 73 65 74 20 69 6e | 74 6f 20 74 68 65 20 50 |..set in|to the P|
|00005ff0| 72 6f 67 72 61 6d 20 53 | 65 67 6d 65 6e 74 20 50 |rogram S|egment P|
|00006000| 72 65 66 69 78 2c 20 20 | 61 6e 64 20 74 68 65 20 |refix, |and the |
|00006010| 70 72 6f 67 72 61 6d 20 | 77 69 6c 6c 20 62 65 20 |program |will be |
|00006020| 72 65 61 64 79 20 74 6f | 20 72 75 6e 2e 20 20 49 |ready to| run. I|
|00006030| 66 0d 0a 74 68 65 20 20 | 66 69 6c 65 20 69 73 20 |f..the |file is |
|00006040| 61 20 2e 48 45 58 20 66 | 69 6c 65 2c 20 20 69 74 |a .HEX f|ile, it|
|00006050| 20 69 73 20 61 73 73 75 | 6d 65 64 20 74 6f 20 68 | is assu|med to h|
|00006060| 61 76 65 20 76 61 6c 69 | 64 20 20 68 65 78 61 64 |ave vali|d hexad|
|00006070| 65 63 69 6d 61 6c 20 20 | 63 68 61 72 61 63 74 65 |ecimal |characte|
|00006080| 72 73 0d 0a 72 65 70 72 | 65 73 65 6e 74 69 6e 67 |rs..repr|esenting|
|00006090| 20 20 6d 65 6d 6f 72 79 | 20 20 76 61 6c 75 65 73 | memory| values|
|000060a0| 2c 20 20 74 77 6f 20 68 | 65 78 61 64 65 63 69 6d |, two h|exadecim|
|000060b0| 61 6c 20 63 68 61 72 61 | 63 74 65 72 73 20 70 65 |al chara|cters pe|
|000060c0| 72 20 62 79 74 65 2e 20 | 20 46 69 6c 65 73 20 20 |r byte. | Files |
|000060d0| 61 72 65 0d 0a 6c 6f 61 | 64 65 64 20 20 73 74 61 |are..loa|ded sta|
|000060e0| 72 74 69 6e 67 20 61 74 | 20 43 53 3a 30 31 30 30 |rting at| CS:0100|
|000060f0| 20 6f 72 20 61 74 20 74 | 68 65 20 61 64 64 72 65 | or at t|he addre|
|00006100| 73 73 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 |ss speci|fied in |
|00006110| 74 68 65 20 20 63 6f 6d | 6d 61 6e 64 2e 20 20 20 |the com|mand. |
|00006120| 20 46 6f 72 0d 0a 2e 43 | 4f 4d 2e 20 20 2e 48 45 | For...C|OM. .HE|
|00006130| 58 20 61 6e 64 20 2e 45 | 58 45 20 66 69 6c 65 73 |X and .E|XE files|
|00006140| 2c 20 20 74 68 65 20 70 | 72 6f 67 72 61 6d 20 77 |, the p|rogram w|
|00006150| 69 6c 6c 20 62 65 20 6c | 6f 61 64 65 64 2c 20 74 |ill be l|oaded, t|
|00006160| 68 65 20 72 65 67 69 73 | 74 65 72 73 20 73 65 74 |he regis|ters set|
|00006170| 2c 20 61 6e 64 0d 0a 43 | 53 3a 49 50 20 20 73 65 |, and..C|S:IP se|
|00006180| 74 20 20 74 6f 20 74 68 | 65 20 66 69 72 73 74 20 |t to th|e first |
|00006190| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 69 6e 20 74 |instruct|ion in t|
|000061a0| 68 65 20 20 70 72 6f 67 | 72 61 6d 2e 20 20 20 46 |he prog|ram. F|
|000061b0| 6f 72 20 20 6f 74 68 65 | 72 20 20 66 69 6c 65 73 |or othe|r files|
|000061c0| 2c 20 20 74 68 65 0d 0a | 72 65 67 69 73 74 65 72 |, the..|register|
|000061d0| 73 20 61 72 65 20 75 6e | 64 65 74 65 72 6d 69 6e |s are un|determin|
|000061e0| 65 64 2c 20 62 75 74 20 | 62 61 73 69 63 61 6c 6c |ed, but |basicall|
|000061f0| 79 2c 20 74 68 65 20 73 | 65 67 6d 65 6e 74 20 72 |y, the s|egment r|
|00006200| 65 67 69 73 74 65 72 73 | 20 61 72 65 20 73 65 74 |egisters| are set|
|00006210| 20 74 6f 20 74 68 65 0d | 0a 73 65 67 6d 65 6e 74 | to the.|.segment|
|00006220| 20 6f 66 20 74 68 65 20 | 50 53 50 20 28 31 30 30 | of the |PSP (100|
|00006230| 68 20 62 79 74 65 73 20 | 62 65 66 6f 72 65 20 74 |h bytes |before t|
|00006240| 68 65 20 63 6f 64 65 20 | 69 73 20 61 63 74 75 61 |he code |is actua|
|00006250| 6c 6c 79 20 6c 6f 61 64 | 65 64 29 2c 20 20 61 6e |lly load|ed), an|
|00006260| 64 20 42 58 20 61 6e 64 | 0d 0a 43 58 20 61 72 65 |d BX and|..CX are|
|00006270| 20 73 65 74 20 74 6f 20 | 74 68 65 20 66 69 6c 65 | set to |the file|
|00006280| 20 6c 65 6e 67 74 68 2e | 20 20 4f 74 68 65 72 20 | length.| Other |
|00006290| 72 65 67 69 73 74 65 72 | 73 20 61 72 65 20 75 6e |register|s are un|
|000062a0| 64 65 74 65 72 6d 69 6e | 65 64 0d 0a 0d 0a 20 20 |determin|ed.... |
|000062b0| 20 20 20 2d 6e 20 63 6c | 6f 63 6b 2e 63 6f 6d 0d | -n cl|ock.com.|
|000062c0| 0a 20 20 20 20 20 2d 6c | 0d 0a 0d 0a 54 68 69 73 |. -l|....This|
|000062d0| 20 20 73 65 71 75 65 6e | 63 65 20 20 77 69 6c 6c | sequen|ce will|
|000062e0| 20 6c 6f 61 64 20 63 6c | 6f 63 6b 2e 63 6f 6d 20 | load cl|ock.com |
|000062f0| 69 6e 74 6f 20 6d 65 6d | 6f 72 79 2c 20 20 73 65 |into mem|ory, se|
|00006300| 74 20 49 50 20 74 6f 20 | 74 68 65 20 65 6e 74 72 |t IP to |the entr|
|00006310| 79 20 70 6f 69 6e 74 20 | 20 6f 66 0d 0a 30 31 30 |y point | of..010|
|00006320| 30 2c 20 20 61 6e 64 20 | 43 58 20 77 69 6c 6c 20 |0, and |CX will |
|00006330| 63 6f 6e 74 61 69 6e 20 | 30 34 34 36 2c 20 74 68 |contain |0446, th|
|00006340| 65 20 68 65 78 61 64 65 | 63 69 6d 61 6c 20 73 69 |e hexade|cimal si|
|00006350| 7a 65 20 6f 66 20 74 68 | 65 20 66 69 6c 65 2e 20 |ze of th|e file. |
|00006360| 20 54 68 65 20 70 72 6f | 67 72 61 6d 0d 0a 69 73 | The pro|gram..is|
|00006370| 20 6e 6f 77 20 72 65 61 | 64 79 20 74 6f 20 72 75 | now rea|dy to ru|
|00006380| 6e 2e 0d 0a 0d 0a 20 20 | 20 20 20 54 68 65 20 73 |n..... | The s|
|00006390| 65 63 6f 6e 64 20 66 6f | 72 6d 20 6f 66 20 74 68 |econd fo|rm of th|
|000063a0| 65 20 4c 6f 61 64 20 63 | 6f 6d 6d 61 6e 64 20 64 |e Load c|ommand d|
|000063b0| 6f 65 73 20 6e 6f 74 20 | 75 73 65 20 74 68 65 20 |oes not |use the |
|000063c0| 4e 61 6d 65 20 63 6f 6d | 6d 61 6e 64 2e 20 20 20 |Name com|mand. |
|000063d0| 49 74 20 69 73 0d 0a 75 | 73 65 64 20 20 74 6f 20 |It is..u|sed to |
|000063e0| 6c 6f 61 64 20 61 62 73 | 6f 6c 75 74 65 20 73 65 |load abs|olute se|
|000063f0| 63 74 6f 72 73 20 66 72 | 6f 6d 20 74 68 65 20 64 |ctors fr|om the d|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.