Test2review-3750

Test2review-3750 - average percentage score for a student...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 3750 - Test 2 review session Questions from Spring 2001 Test 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Interrupt I/O Write an 8086 instruction sequence to output a sequence of 60 words from word array BROWN to I/O device DEV0. Assume: data port of DEV0 is a word port at address 9090H. Use interrupt I/O. The interrupt service routine is to output one word for each interrupt, up to 60 interrupts. Note that the 8086 may receive more than 60 interrupts, but it is to only output 60 words.
Background image of page 2
Program-Controlled I/O Write an 8086 instruction sequence to output a sequence of 60 words from word array BROWN to I/O device DEV0. Assume: data port of DEV0 is a word port at address 9090H, status port of DEV0 is a byte port at address 9092H, and the ready bit is bit 0 of the status port. Use program-controlled I/O.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Procedures Write a complete 8086 procedure to do the following. FAR procedure AVGSCORE is to compute the
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: average percentage score for a student over a set of tests using the expression below: (sum of earned scores)*100 / (sum of possible scores). Calling sequence from calling program is given below. MOV BX, OFFSET EARN MOV SI, OFFSET POSS MOV CX, NUM MOV DI, OFFSET RESULT CALL FAR PTR AVGSCORE The procedure receives the addresses or values of the parameters in registers as indicated below. Your procedure is not to use any of the variable names of these parameters, though you may create variables for use within the procedure only if you need. The calling sequence from the calling program is given below. Assume that EARN and POSS are word arrays, NUM is a word variable giving the number of scores to include, and RESULT is a word variable that is to receive the result....
View Full Document

This note was uploaded on 01/25/2012 for the course EE 3750 taught by Professor Desouza during the Fall '08 term at LSU.

Page1 / 5

Test2review-3750 - average percentage score for a student...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online