Chapter 4 Flashcards
how to run file in debugger
afd ex01.com
how to run assembly file
nasm ex01.asm -o ex01.com -l ex01.lst
how to edit lst file
edit ex01.lst
how to capture any particular register
m1 ds:0100
(note: here ds is d register
0100: its value)
what is the size of db
1 byte (db = define byte)
What is the size of dw
2 byte (define word)
What is the size of dn
4 bit (dn = define nibble)
What is linear memory model
In linear memory model the whole memory appears like a single array of data.
What is segmented memory model
The segmented memory model allows multiple functional windows into the main memory, a code window, a data window etc.
What is Paragraph Boundaries
As the segment value is a 16bit number and four zero bits are appended to the right to make it a 20bit number, segments can only be defined a 16byte boundaries called paragraph boundaries.
What is Overlapping Segments
We can also observe that in the case of our program CS, DS, SS, and ES all had the same value in them. This is called overlapping segments so that we can see the same memory from any window. This is the structure of a COM file.
What is logical address
The segment, offset pair is called a logical address. Logical addressing is a mechanism to access the physical memory
What is physical address
the 20bit address is a physical address which is the real thing