Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Showcase your strengths in a rsum

Answered: 1 week ago