Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 of 5 Experiment 1 Lab. Report Name: ID: I. Which directive should we use to initialize the program? 2. What is the directive we

image text in transcribed
image text in transcribed
5 of 5 Experiment 1 Lab. Report Name: ID: I. Which directive should we use to initialize the program? 2. What is the directive we use to creale a stack segment in the peogram 3. Write the follow ing program and trace it, then full blanks: MODEL SMALL DATA a DW 1513h b DW 10 CODE ASSUME CS @CODEDS a DATA START: MOV AX,@DATA MOV DS,AX MOV AX. 1212 LEA SLa MOV AL ISI XCHG AX,b AX AX EXIT END START END Algorithm: REG first word .ES- second word Example: m dw 1234h. 5678h after executing the instruction: LES AX m The value of AX is 1234h, and ES is 5678h. czsOPA unchanged EX: write an assembly program using the knowledge you have acquired throw this lab w Suppose G is a two bytes variable of value 5566h Write a program that trans fer 16 to AL, 1F56h to BX, and FIE4h to CX, then Exchange the contents of AX with CX, and store the address of variable G in BX Solution: Experiment 1 Lab. Report Name: .. ID. 5 of 5 Experiment 1 Lab. Report Name: ID: I. Which directive should we use to initialize the program? 2. What is the directive we use to creale a stack segment in the peogram 3. Write the follow ing program and trace it, then full blanks: MODEL SMALL DATA a DW 1513h b DW 10 CODE ASSUME CS @CODEDS a DATA START: MOV AX,@DATA MOV DS,AX MOV AX. 1212 LEA SLa MOV AL ISI XCHG AX,b AX AX EXIT END START END Algorithm: REG first word .ES- second word Example: m dw 1234h. 5678h after executing the instruction: LES AX m The value of AX is 1234h, and ES is 5678h. czsOPA unchanged EX: write an assembly program using the knowledge you have acquired throw this lab w Suppose G is a two bytes variable of value 5566h Write a program that trans fer 16 to AL, 1F56h to BX, and FIE4h to CX, then Exchange the contents of AX with CX, and store the address of variable G in BX Solution: Experiment 1 Lab. Report Name: .. ID

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_2

Step: 3

blur-text-image_step3

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

8.2 Explain the purpose of onboarding programs.

Answered: 1 week ago