Question: instead of referencing the data variable called spaces in the display PROC, how can i put the push OFFSET space into the main procedure then

instead of referencing the data variable called spaces in the display PROC, how can i put the push OFFSET space into the main procedure then reference it like mov edx, [ebp +4]? This display procedure is used to show an array of random numbers. It works when I use the below but I need to write it different.
a rough idea of what I have now
.data
spaces byte " ",0
display PROC
mov eax,[esi] ;get number from array
call WriteDec
mov edx, OFFSET spaces ; add space after
call WriteString
displayList ENDP

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!