This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: → (AX) Assume that all the parameters are word-sized. State any assumptions made in the calculations. MOV CX, BX MUL AX, 8 MUL BX, 4 DIV CX, 8 SUB AX, BX SUB AX, CX 3. Write an instruction sequence to configure the 8088 as follows: interrupts not accepted; save the original contents of flags SF, ZF, AF, PF, and CF at the address 0A000H and then clear CF. CLI MOV AX, 0H MOV DS, AX MOV BX, 0A000H LAHF MOV [BX], AH CLC 4. Given a number N in the range 0<N ≤ 5, write a program that computes its factorial and saves the result in the memory location FACT. (N! = 1*2*3*4…. .*N) 5. What operation is performed by the following instructions when they are executed in sequence? PUSH AX PUSH BX POP AX POP BX Push AX saves AX on the stack Push BX saves BX on the stack Pop AX retrieves AX from the stack Pop BX retrieves BX from the stack...
View Full Document
- Spring '08
- X86, Left-wing politics, Byte, 1 bit, Jeff Brutsche Engt