Answer to Question #277487 in Assembler for Mughees

Question #277487

How the multiple definition is implemented in assembly give example of it

1
Expert's answer
2021-12-08T16:29:28-0500

8086

Multiple Definitions

You can have multiple data definition statements in a program. For example:

prompt           DB “Enter n “,10, 0

choice             DB ‘y’                          ;ASCII code of y

value1            DW 12345 

volue2            DD 12345679

The assembler allocates contiguous memory for multiple variable definitions.

 

 

MIPS

Multiple Definitions

.data   

           inputNum:      .asciiz "Enter a number between 2 to 50: "

           oneDouble:     .double 1.0

           minusOneDouble:      .double -1.0

N:        .word              12345

M:       byte                0

array: .space 200

newline: .asciiz "\n"


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS