HW4-3750

HW4-3750 - 1 EE 3750 Homework 4 due Wed April 5 2006 For...

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

View Full Document Right Arrow Icon
1 OVER EE 3750 — Homework 4 due Wed., April 5, 2006 For all problems: state any assumptions made; include comments as needed to make assembly instruction sequences clear. 1. Write an 8086 instruction sequence to use program-controlled I/O to input bytes and store all those received in the string between ‘{‘ (7BH) and ‘}’ (7DH) into a buffer in memory. Let INDEV denote the input device. The status port for INDEV is a byte port at address 34C8H; bit 7 is the ready bit. The data port for INDEV is a byte port at address 34C9H. Let RED denote the byte array (buffer) in memory. (That is, if the sequence of bytes input is: 23, 56, 7B, 36, 3E, 5F, 10, 7D, 39, then store 36, 3E, 5F, 10 into the buffer.) 2. Write an 8086 instruction sequence to control a copy machine that charges 10¢ per copy and accepts only dimes. Use program-controlled I/O. There are two input ports: COIN and COPYB. There are two output ports: NUMLEFT and MCOPY. A 1 in bit 3 of port COIN indicates that a dime has been inserted; a 1 in bit 3 of port
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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 / 2

HW4-3750 - 1 EE 3750 Homework 4 due Wed April 5 2006 For...

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

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