[solved]-Write Program 8088 Assembly Language Obtains Integer Operator Another Integer Standard Out Q39061569
Write a program in 8088 assembly language that obtains aninteger, operator and another integer from standard output anddisplays the calculation using standard output. Use operators +, -,*, /.
Attached is the 8088 instruction set and a program that readsfrom standard input.
_PRINTF = 127 ! 1
_GETCHAR = 117 ! 2
_EXIT = 1 ! 3
asciinl = 10 ! 4
EOF = -1 ! 5
.SECT .TEXT ! 6
start: ! 7
MOV DI,STR ! 8
PUSH _GETCHAR ! 9
1: SYS ! 10
CMP AX,EOF ! 11
JE 9f ! 12
STOSB ! 13
CMPB AL,asciinl ! 14
JNE 1b ! 15
MOVB (DI),0 ! 16
PUSH STR ! 17
PUSH _PRINTF ! 18
SYS ! 19
ADD SP,4 ! 20
MOV DI,STR ! 21
JMP 1b ! 22
9: PUSH 0 ! 23
PUSH _EXIT ! 24
SYS ! 25
.SECT .DATA ! 26
.SECT .BSS ! 27
STR: .SPACE 80 ! 28

Mnemonic Description Operands Status flags ree, er, e# re #e ree,ere# re, er, e# ree, ere ree,ere * * * * * MOV(B) XCHG(B) LEA PUSH POP PUSHF POPF XLAT ADD(B) ADC(B) SUB(B) SBB(B) IMUL(B) MUL(B) IDIV(B) DIV(B) CBW CWD NEG(B) NOT(B) INC(B) DEC(B) AND(B) OR(B) XOR(B) SHR(B) SAR(B) SAL(B) (=SHL(B)) ROL(B) ROR(B) RCL(B) RCR(B) TEST(B) CMP(B) STD CLD * ‘ OOO Move word, byte Exchange word Load effective address Push onto stack Pop from stack Push flags Pop flags Translate AL Add word Add word with carry Subtract word Subtract word with borrow Multiply signed Multiply unsigned Divide signed Divide unsigned Sign extend byte-word Sign extend word-double Negate binary Logical complement Increment destination Decrement destination Logical and Logical or Logical exclusive or Logical shift right Arithmetic shift right shift left Rotate left Rotate right Rotate left with carry Rotate right with carry Test operands Compare operands Set direction flag (1) Clear direction flag (1) Set carry flag Clear carry flag Complement carry Jump back if decremented CX 20 Back if Z=1 and DEC(CX) 0 Back if Z=0 and DEC(CX)0 Repeat string instruction Move word string Load word string Store word string Scan word string Compare word string Jump according conditions Jump to label Jump to subroutine Return from subroutine System call trap erre, e# erre, e# erre, e# e 1, e CL e 1, e CL e 1, e CL e 1, e CL er 1, eCL e 1, e CL e 1, e CL ere # ere # STC CLC label label label string instruction CMC LOOP LOOPZ LOOPE LOOPNZ LOOPNE REP REPZ REPNZ MOVS(B) LODS(B) STOS(B) SCAS(B) CMPS(B) JCC JMP CALL RET SYS label e, label e, label Show transcribed image text Mnemonic Description Operands Status flags ree, er, e# re #e ree,ere# re, er, e# ree, ere ree,ere * * * * * MOV(B) XCHG(B) LEA PUSH POP PUSHF POPF XLAT ADD(B) ADC(B) SUB(B) SBB(B) IMUL(B) MUL(B) IDIV(B) DIV(B) CBW CWD NEG(B) NOT(B) INC(B) DEC(B) AND(B) OR(B) XOR(B) SHR(B) SAR(B) SAL(B) (=SHL(B)) ROL(B) ROR(B) RCL(B) RCR(B) TEST(B) CMP(B) STD CLD * ‘ OOO Move word, byte Exchange word Load effective address Push onto stack Pop from stack Push flags Pop flags Translate AL Add word Add word with carry Subtract word Subtract word with borrow Multiply signed Multiply unsigned Divide signed Divide unsigned Sign extend byte-word Sign extend word-double Negate binary Logical complement Increment destination Decrement destination Logical and Logical or Logical exclusive or Logical shift right Arithmetic shift right shift left Rotate left Rotate right Rotate left with carry Rotate right with carry Test operands Compare operands Set direction flag (1) Clear direction flag (1) Set carry flag Clear carry flag Complement carry Jump back if decremented CX 20 Back if Z=1 and DEC(CX) 0 Back if Z=0 and DEC(CX)0 Repeat string instruction Move word string Load word string Store word string Scan word string Compare word string Jump according conditions Jump to label Jump to subroutine Return from subroutine System call trap erre, e# erre, e# erre, e# e 1, e CL e 1, e CL e 1, e CL e 1, e CL er 1, eCL e 1, e CL e 1, e CL ere # ere # STC CLC label label label string instruction CMC LOOP LOOPZ LOOPE LOOPNZ LOOPNE REP REPZ REPNZ MOVS(B) LODS(B) STOS(B) SCAS(B) CMPS(B) JCC JMP CALL RET SYS label e, label e, label
Expert Answer
Answer to Write a program in 8088 assembly language that obtains an integer, operator and another integer from standard output and… . . .
OR

