1 / 13

CSCI11D-I Prelim lab #1 Assembly Language by using Debug Program

CSCI11D-I Prelim lab #1 Assembly Language by using Debug Program. DENSY JOHN V. 1. Typical Uses of General-Purpose Registers. x86 Registers. Open Dos Window. Start> All Programs> Accessories> Command Prompt. Dos prompt. 4. Load Debug. Debug <enter>. Debug prompt. 5.

amadis
Télécharger la présentation

CSCI11D-I Prelim lab #1 Assembly Language by using Debug Program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSCI11D-I Prelim lab #1Assembly Language by usingDebug Program DENSY JOHN V 1

  2. Typical Uses of General-Purpose Registers

  3. x86 Registers

  4. Open Dos Window Start> All Programs> Accessories> Command Prompt Dos prompt 4

  5. Load Debug • Debug <enter> Debug prompt 5

  6. Quit from Debug • Q <enter> Dos prompt 6

  7. View Content of Registers • R <enter> 7

  8. Modify content of the registers • R AX <enter> • After the (: ) input the new value then <enter> The old value The new value 8

  9. The registers value represented in hexadecimal system (4 digits) DEBUG will pad it with zeros Error because of the 5th digit 9

  10. Write Assembly program A <starting Address> Mov <destination> , <source> add <destination> , <source> Interrupt command (3) to keep IP register point to the last address in your program (0108) Go command to execute the program 10

  11. Trace the previous program Address of the Next step T=<starting address> no. of instruction 11

  12. int 20 12

  13. Execute only part of the program G= <starting address> <break point> 13

More Related