Sie sind auf Seite 1von 7

Login in

Login id :va for 5th A and vb for 5th B

Password is: va

Press control-alt-t to get terminal

vb

Assembler
asfile.sgofile.oalh>file.lst

-g

generate info for debugging (use gdb)

-o

genereate .o file (file.o in our case)

-alh generate list file

> redirect list to a file

Linker

ldfile.oofile.exe
-o generate output file (file.exe in our case)
Execute as ./file.exe at the $prompt

gdb

l list l start,end

break at label/line

run full speed

next instrn. (step-by-step)

P/x $reg name display register contents

X/10 $reg name

X/10 &variable

display memory location

Lab Record
Should include (4-6 Pages)

8086 architecture and features of 8086

BIU/EU

Segment registers

General purpose registers, pointers, index registers

Instruction queue

generating 20 bit address

Assembler directives of the program

Assembling steps

gdb commands
https://goo.gl/H51ubF

narasimha.kaulgud@nie.ac.in

0x80

Print String

Eax =04; ebx=01; ecx=addr_of_string; edx=length


of string

Terminate program

eax=01

0x80

Print String

Terminate program

Eax =04; ebx=01; ecx=addr_of_string; edx=length


of string

eax=01

Read string

Eax=03, ebx=01; ecx=add_of_string; edx=No. Of


chars to read

Das könnte Ihnen auch gefallen