Chapter 9 Flashcards
What is for jump
We can jump anywhere in physical memory
What is bubble sort
Target any 2 elements of array, compare them and sort. Then pick another number,compare them and if require then swap them and so on, until whole array get sorted.
How to define an array in assembly
dw, 60, 55, 12, 16
What is keyword for swap
swap
What is first executable instruction
offset 0100
What is JMP
It is the unconditional jump that executes regardless of the state of all flags.
What is relative addressing
It does not tell the exact address rather it tells how much forward or backward to go from the current position
What are types of jumps
The three types of jump, near, short, and far
What is Near Jump
When the relative address stored with the instruction is in 16 bits, the jump is called near jump
What is short jump
If the offset is stored in a single byte, the jump is called a short jump.
Is it true unconditional jumps can be short, far and near and conditional jumps can only be short.
Yes
What is Far jump
Far jump is not position relative but is absolute. Both segment and offset must be given to a far jump. The other 2 jumps were used to jump within a segment. Sometimes we may need to go from one code segment to another, and near and short jumps cannot take us there. Then we use far jump. Far jump is intra segment.