Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Electrical & Electronics Expert

The objective of this lab experiment is to introduce you to assembly language programming for solving mathematical problems. You will use DEBUG to conduct this lab. Consider the following: The sun is 93,000,000 miles from the Earth. The speed of light is 186,000 miles per second. How long does it take a ray of light to reach the Earth? The correct answer is 8 minutes, 20 seconds. For this lab assignment, complete the following: 1. Open a command window (or DosBox), start DEBUG, and enter these commands: a mov dx,1 mov ax,6b48 mov bx,00ba div bx mov bl,3c div bl r t 6 q 2. Remember that a screenshot showing your DEBUG results should be included in your lab report. 3. What is the final value in the AX register? Does it represent some combination of 8 and 20? Hint: Remember that DEBUG only works with hexadecimal numbers. 4. Explain how the calculations were performed in SUN.SCR. For example, were the numbers 93,000,000 and 186,000 represented anywhere? If not, why not? 5. Open a command window (or DosBox), start DEBUG, and enter the following commands. What is the final value in AL? Explain why this is correct. a 200 db 5 db 8 db 4 db 7 db 6 a 100 mov si,200 mov al,[si] mov ah,0 mov bh,0 movbl,[si+1] add ax,bx movbl,[si+2] add ax,bx movbl,[si+3] add ax,bx movbl,[si+4] add ax,bx mov bl,5 div bl r t 0e q 6. Open a command window (or DosBox), start DEBUG, and enter the following commands. a mov al,20 cmp al,10 cmp al,20 r t 3 q 7. Discuss the relationship between the instructions and the results indicated by the flags. Hint: See Example 4.7 beginning on page 102 in Chapter 4 of your assigned textbook. 8. Repeat step 4 using these commands: a mov al,90 cmp al,80 cmp al,a0 r t 3 q 9. Download the program COMPARES.ASM. Assemble, link, and run. 10. Choose four additional types of conditional jump instructions (see page 124 of your assigned textbook), and add the appropriate procedures to test the new jump instructions. Your final program will show the results of eight comparisons. 11. Submit the final ASM file.

Electrical & Electronics, Engineering

  • Category:- Electrical & Electronics
  • Reference No.:- M91235080

Have any Question?


Related Questions in Electrical & Electronics

Summative assessmentin 2017 sej101 assessment will consist

Summative Assessment In 2017 SEJ101 assessment will consist of nine tasks that will develop a portfolio of your assessed work. Throughout the trimester you will have the opportunity for feedback on all nine tasks before ...

A four-pole star-connected squirrel-cage induction motor

A four-pole, star-connected, squirrel-cage induction motor operates from a variable voltage 50 Hz three-phase supply. The following results were obtained as the supply voltage was gradually reduced with the motor running ...

Question -i a star-connected three-phase synchronous

Question - (i) A star-connected, three-phase synchronous induction motor takes a current of 10 amps from a 415 volt supply at unity power factor when supplying a steady load. If the synchronous reactance is 5 ohms/phase ...

Research report1 read 3 to 4 journal articles about digital

Research report 1. Read 3 to 4 journal articles about digital control or industrial control, eg. one particular application, implementation aspect such as selection of sampling time, hardware etc. No text book example is ...

Discuss the role of load factor on the cost of electrical

Discuss the role of load factor on the cost of electrical energy.

Question 1 - for the transistor in the circuit shown in

Question 1 - For the transistor in the circuit shown in Figure, assume β = 120. Design the circuit such that I CQ = 0.15 mA and R TH = 200kΩ. What is the value of V CEQ ? Question 2 - (a) For the circuit shown in figure, ...

Nanotechnology engineering program assignment - passive

Nanotechnology Engineering Program Assignment - Passive Filters Q1) Determine what type of filter is in circuit shown. Calculate the cutoff frequency f c . Q2) Determine what type of filter is in circuit shown. Calculate ...

Questions -problem 1 - solve for i0 in fig using mesh

Questions - Problem 1 - Solve for i 0 in Fig. using mesh analysis. Problem 2 - Use mesh analysis to find current i 0 in the circuit. Problem 3 - Use mesh analysis to find v 0 in the circuit. Let v s1 = 120 cos(100t+ 90 o ...

Electrical engineering questions -q1 two ideal voltage

Electrical Engineering Questions - Q1. Two ideal voltage sources designated as machines 1 and 2 are connected, as shown in the figure below. Given E 1 = 65∠0 o V, E 2 = 65∠30 o V, Z = 3Ω. Determine if Machine 1 is genera ...

Problem 1 a two-phase servomotor has rated voltage applied

Problem 1: A two-phase servomotor has rated voltage applied to its excitation winding. The torque speed characteristic of the motor with Vc = 220 V, 60 Hz applied to its control phase winding is shown in Fig.1. The momen ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As