Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help on this execise: 3. Which of the following are legal assembly language numbers for MASM5? If they are legal, tell whether they

I need help on this execise:

3. Which of the following are legal assembly language numbers for MASM5? If they are legal, tell whether they are binary, decimal, or hex numbers. a. 246 b. 246h c. 1001 d. 1,101 e. 2A3h f. FFFEh g. 0Ah h. Bh i. -1110b 4. If it is legal, give data definition directives to define each of the following. a. A word variable A initialized to 52. b. A word variable WORD1, uninitialized. c. A byte variable B, initialized to 25h. d. A byte variable C1, uninitialized. e. A word variable WORD2, initialized to 65536 f. A word array ARRAY1, initialized to the first 5 positive integers. g. a constant BELL equal to 07h. h. a constant MSG equal to 'THIS IS A MESSAGE$' 5. Suppose that the following data are loaded at offset 0000h. A DB 7 B DW 1ABCh C DB 'HELLO' D DD '1234' a. Give the offset address assigned to variables A, B, C, and D. b. Give the hex contents of the byte at offset 0002h. c. Give the hex contents of the byte at offset 0004h. d. Give the offset address of the character 'O' in 'HELLO'. e. Give the hex contents of the low word of the variable D.

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

Recommended Textbook for

How To Make A Database In Historical Studies

Authors: Tiago Luis Gil

1st Edition

3030782409, 978-3030782405

More Books

Students also viewed these Databases questions