Answer to Question #277486 in Assembler for Mughees

Question #277486

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

1
Expert's answer
2021-12-08T16:29:30-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.


Raspberry

.data

.balign 4

arr03:             .skip                40

arr01:             .word              -77, -11, 2, -13, 4, 5, 6, 7, 8, 9

arr02:             .word               10, 11, 12, 13, 14, 15, -16, 17, -18, 19

format_str:      .asciz             "%d"

exit_str:          .ascii               "Terminating program.\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