This preview shows page 1. Sign up to view the full content.
Unformatted text preview: a) (18) 10 + (13) 10 b) (18) 10- (13) 10 c) -(18) 10- (13) 10 6.Using the assembly language explained in class, write a program that computes the following expression: z & (a + b) * (c d). The computer will read in the input values (a, b, c, and d) from the keyboard, and all the input values and the final result (z) have to be printed out on the printer. In addition, every time an input value is read in, it must be displayed on the screen. Remember that the instruction set does not have an instruction to execute multiplication. Use the instructions IN <value>, to input a value from the keyboard into the accumulator, SCREEN <A> to display the content of the accumulator on the screen, and PRINT<A> to send the content of the accumulator to the printer.(25 points)...
View Full Document
This note was uploaded on 06/13/2011 for the course CGS 3269 taught by Professor Staff during the Spring '08 term at University of Central Florida.
- Spring '08
- Computer Architecture