CS 301 Fall 2001 – Chapter 3
-
Upload
hayley-hill -
Category
Documents
-
view
25 -
download
4
description
Transcript of CS 301 Fall 2001 – Chapter 3
![Page 1: CS 301 Fall 2001 – Chapter 3](https://reader036.fdocuments.in/reader036/viewer/2022082505/56812d34550346895d923415/html5/thumbnails/1.jpg)
04/19/23 1
CS 301 Fall 2001 – Chapter 3
Slides by Prof. Hartman, following “IBM PC Assembly Language Programming” by Peter Abel
![Page 2: CS 301 Fall 2001 – Chapter 3](https://reader036.fdocuments.in/reader036/viewer/2022082505/56812d34550346895d923415/html5/thumbnails/2.jpg)
04/19/23 2
Using DEBUG
Tutorial on the web. Appendix C in the book. DEBUG is not case sensitive. All numbers are hexadecimal. Spaces are used to separate parameters. Segments and offsets are specified as
segment::offset.
![Page 3: CS 301 Fall 2001 – Chapter 3](https://reader036.fdocuments.in/reader036/viewer/2022082505/56812d34550346895d923415/html5/thumbnails/3.jpg)
04/19/23 3
DEBUG Commands
A Assemble instructions C Compare two areas of memory D Display contents of memory E Enter data into memory F Fill memory G Run the executable in memory. (Go) H Perform hexadecimal arithmetic I Input and display one byte from a port. L Load a file or disk sectors into memory. M Move (or copy) memory
![Page 4: CS 301 Fall 2001 – Chapter 3](https://reader036.fdocuments.in/reader036/viewer/2022082505/56812d34550346895d923415/html5/thumbnails/4.jpg)
04/19/23 4
DEBUG Commands 2
N Name a program O Output a byte to a port P Proceed (execute CALL, LOOP, INT or REP) Q Quit R Display the contents of one or more registers S Search memory T Trace the execution of one instruction U Unassemble (disassemble) machine code. W Write a (named, .COM) file to disk ? Display help screen
![Page 5: CS 301 Fall 2001 – Chapter 3](https://reader036.fdocuments.in/reader036/viewer/2022082505/56812d34550346895d923415/html5/thumbnails/5.jpg)
04/19/23 5
DEBUG Examples
Work through examples in the text: pages 36—48.