csci11d-i prelim lab #1 assembly language by using debug program

Post on 06-Feb-2016

47 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

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 . Debug prompt. 5. - PowerPoint PPT Presentation

TRANSCRIPT

11

CSCI11D-I Prelim lab #1

Assembly Language by usingDebug Program

DENSY JOHN V

2

Typical Uses of General-Purpose Registers

3

x86 Registers

44

Open Dos Window

Start> All Programs> Accessories> Command Prompt

Dos prompt

55

Load Debug

• Debug <enter>

Debug prompt

66

Quit from Debug

• Q <enter>

Dos prompt

77

View Content of Registers

• R <enter>

88

Modify content of the registers

• R AX <enter>• After the (: ) input the new value then <enter>

The old value

The new value

99

The registers value represented in hexadecimal system (4 digits)

DEBUG will pad it with zeros

Error because of the 5th digit

1010

Write Assembly programA <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

1111

Trace the previous programAddress of the Next

step

T=<starting address> no. of instruction

1212

int 20

1313

Execute only part of the program

G= <starting address> <break point>

top related