Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q19. Given the following data definitions in memory, W DW 1234 ; W is a WORD variable initialized to 1234 A DB 23 ; A

Q19. Given the following data definitions in memory,

W DW 1234 ; W is a WORD variable initialized to 1234

A DB 23 ; A is Byte variable initialized to 23

B DB -12? ; B is Byte variable initialized to 23

Which of the following instructions are illegal, and why?

mov W, ax

mov 24, W

mov A, 74

mov A, ah 6

mov W, ah

mov A, B

mov [123], 56

Q20. Translate the following pseudo code assignment statement into PC assembly language. Assume that variables are signed words .

a) A = ( B + 1) % 7

b) A= (B - 1) / (C % 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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

b. Did you suppress any of your anger? Explain.

Answered: 1 week ago

Question

How would you describe your typical day at work?

Answered: 1 week ago

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago