Computer Science Homework Solutions

How many ports can the Intel 8088 microprocessor address in it's two I/O addressing modes?

In Intel 8088, two instruction formats are used to specify the I/O port address. How many ports can the 8088 address in each I/O addressing mode?

Indirect Port Addressing (ref 2)

Zilog Z8000 microprocessor family direct port addressing capability 16 bit port address is part of the instruction indirect port addressing capability referencing one of the 16-bit general purpose registers, which contains the port address. How many ports can the Z8000 address in each I/O addressing mode? 1? 2^16? ...continues

Compute the time taken by an 8-MHz processor to get the status and service the I/O device.

Timer alerts processor for a status scan of I/O device every 20 ms. I/O device interface has two 8-bit ports: status and data output. Compute the time it takes to get the status and service the device, with an 8-MHz processor clock rate. All instructions take 12 clock cycles. State your assumptions, if any.

Compute the processor savings in given situation, when using interrupt driven I/O instead of polled I/O.

In an 8-hour interval, an operator controls systems with 60 commands on the average, entered through a keyboard. a. Processor scans keyboard every 100 ms. Give check counts in an 8 hours period. b. If processor uses interrupt-driven I/O, how much does the processor save in fraction of its visits to the keyboard?

(ref7) Binary Sign Magniture

a. Convert +512 into sign/magnitude. b. Convert -29 into sign/magnitude. c. Convert +512 into two’s complement. d. Convert -29 into two’s complement.

(ref8) Two's Complement to Decimal Conversion

Convert these two’s complement values into decimal: 110 1011; 010 1101

Compute the given expressions using two's complement arithmetic.

Evaluate the following using 8-bit two's complement arithmetic. a. 6 + 13 b. -6 + 13 c. 6 - 13 d. -6 - 13

(ref10) Two’s Complement Arithmetic

Calculate in two’s complement: a. 11 1000 -11 0011 b. b.1100 1100-10 1110 c. c.1111 0000 1111 – 1100 1111 0011 d. d. 1100 0011-1110 1000

Convert IEEE 32-bit floating point format values into decimal.

Convert the following IEEE 32-bit floating-point format values into decimal. a. 1 1000 0011 110 0000 0000 0000 0000 0000 b. 0 0111 1110 101 0000 0000 0000 0000 0000 c. 0 1000 0000 000 0000 0000 0000 0000 0000

Packed Decimal Numbers

Please note this refer to PACKED decimal numbers. For each of the following packed decimal numbers, show the decimal value: a. 0111 0011 0000 1001 b. 0101 1000 0010 c. 0100 1010 0110

Browse