Thursday, 31 January 2013
PROGRAM TO DISPLAY A MULTIPLE DIGIT NUMBER IN 8086 ASSEMBLY LANGUAGE
;AUTHOR: ANUEBUNWA VICTOR O.
;PROGRAM TO DISPLAY A MULTIPLE DIGIT NUMBER IN 8086 ASSEMBLY ;LANGUAGE
;ASSEMBLER: MASM611
.MODEL SMALL
.STACK
.DATA
MSG DB 'The multiple digit number is: ','$'
.CODE
START: MOV AX, @DATA
MOV DS, AX
MOV AH, 09H
LEA DX, MSG
INT 21H ;Calls MS DOS to display message
MOV AX, 1234 ;Number to be displayed
CALL display ;Calls procedure display to display number
MOV AH, 4CH
INT 21H
;Display procedure from previous post should appear here.
END START
;OUTPUT
;The multiple digit number is: 1234
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment