Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

assembly language in Dosbox PART 11 CREATE CODE AND CALCULATE THE AMOUNT OF TIME IT WILL TAKE TO RUN Use the enter command in debug

assembly language in Dosbox

image text in transcribed

PART 11 CREATE CODE AND CALCULATE THE AMOUNT OF TIME IT WILL TAKE TO RUN Use the enter command in debug to enter the following bytes 01, 02, 03, 04, 05, 06, 07, 08, 09 At offset 1000 of the default data segment Using the MOV, ADD and JMP instructions create a short program that adds (sums) the 10 numbers and saves the summed result into offset 100A of the same segment (note that the running total result can be saved in the loop). Since this uses an unconditional jump the program would overwrite the result memory if you step through the loop more than 10(decimal) times. Calculate the total time (number of clock cycles based on the 8086 processor), the program will take to run using the instruction timing data sheets Write out your program and give the number of clock cycles for each instruction then the sum the total time for 10 loops Use these instructions with any of the available memory modes (note depending on how you code it you can have a wide range of timing results) Mov Add Inc Jmp 100 PART 11 CREATE CODE AND CALCULATE THE AMOUNT OF TIME IT WILL TAKE TO RUN Use the enter command in debug to enter the following bytes 01, 02, 03, 04, 05, 06, 07, 08, 09 At offset 1000 of the default data segment Using the MOV, ADD and JMP instructions create a short program that adds (sums) the 10 numbers and saves the summed result into offset 100A of the same segment (note that the running total result can be saved in the loop). Since this uses an unconditional jump the program would overwrite the result memory if you step through the loop more than 10(decimal) times. Calculate the total time (number of clock cycles based on the 8086 processor), the program will take to run using the instruction timing data sheets Write out your program and give the number of clock cycles for each instruction then the sum the total time for 10 loops Use these instructions with any of the available memory modes (note depending on how you code it you can have a wide range of timing results) Mov Add Inc Jmp 100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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