Question: TITLE Module 3 Exercise ; The following class exercise is for module 2 ; Topics: Assembly Fundamentals and Library Calls ; 1. Use the comment

TITLE Module 3 Exercise

; The following class exercise is for module 2 ; Topics: Assembly Fundamentals and Library Calls

; 1. Use the comment directive instead of ; for ; the first 4 lines of comments

; 2. Name the directives that you see in the code:

INCLUDE Irvine32.inc

; 3. define a constant for the number of seconds in an hour ; by using an integer expression constant

.data ; 4. define a prompt: enter your name

; 5. define memory space to store someone's name (20 characters for name)

hi BYTE "Hi, ",0 ; Hi string to print out

; 6. define a byte and initialize with binary 100

; 7. define a word and initialize with hexadecimal A0

; 8. define a doubleword and initialize with -10

; 9. define an array of 5 doublewords and initialize with the values 1,2,3 ; and leaving the last 2 elements uninitialized

.code main PROC

; 10. write code to print the prompt

; 11. write code to read in the user's name

; 12. write code to print "Hi, " where user's name is what you read in

; 13. write code to store the immediate value -1 in eax

; 14. write code to print the word defined in step 7

; 15. write code to print the doubleword defined in step 8

; 16. use the debugger's memory window and identify what your data ; definitions look like in mememory

; 17. show what the array of 5 doublewords look like. ; Why does it look like that?

exit main ENDP

END main

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!