How the multiple definition is implemented in assembly give example of it
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"
Comments
Leave a comment