Question: ---I just need the converted assembly program. revise the program in Question 5.6 for simplified segment directives ---Program from 5.6 page 60,132 TITLE A04ASM1 Segments

---I just need the converted assembly program.

revise the program in Question 5.6 for simplified segment directives

---Program from 5.6

page 60,132

TITLE A04ASM1 Segments for an EXE program

;----------------------------------------------------------------

STACK SEGMENT PARA STACK 'Stack'

STACK ENDS

;----------------------------------------------------------------

DATASEG SEGMENT PARA 'Data'

DATASEG ENDS

;-----------------------------------------------------------------

CODESEG SEGMENT PARA 'Code'

MAIN PROC FAR

ASSUME SS:STACK, DS:DATASEG, CS:CODESEG

MOV AX, DATASEG ;Set address of data segment in DS

MOV DS, AX

MOV AL, 40H ;Move the immediate value of hex 40 to the AL register

SHL AL, 1 ;shift AL contents one bit left

MOV BL, 1AH ; move immediate value hex 1A to BL

MUL BL ; multiply AL by BL

MOV AX, 4C00H ;End Processing

INT 21H

MAIN ENDP ; End of Procedure

CODESEG ENDS ; End Of Segment

END MAIN ;End of Program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!