CALC32

FINAL HOMEWORK AND FINAL EXAM

Due Monday December 13, 2010

 

 

a) The program receives the two data words from the kedyboard as decimal numbers between 0 and 4294967296 (32-bit long double datawords and stores them at DATA1L and DATA2L in its data segment.

b) The program then asks the operator what is the arithmetic operation desired, that is “+,” “-”, “*”, “/,” or all of these operations.

c) This involves calling the DECIN16, DECOUT16, DECIN32, DECOUT32 AND decout64 sub-procedures form the CONV.LIB. Since these are called from the main program, they have to declared as external using the EXTRN command.  

c) The program then calls the subroutine or subprocedure called ADD32, SUB32, MUL32, DIV32, or all of them one after another.

d) The subprocedures are written to output their results to SUML, DIFFL, PROD1L, PROD1H, PROD2L and PROD2L, QUOTIENTL, QUOTIENTH, and REMAINL and REMAINH in the main program data segment.

e) Since these sub-procedures are called from the main program, it means they have to declared as external using the EXTRN command.

e) The results are then displayed on the monitor. 

f) The program then request for the next set of numbers or to quit.

Follow the next steps to see how all these steps are achieved.

 

WHAT TO SUBMIT FOR HOMEWORK

a) A copy of the working version of CALC32.ASM

b) A copy of the working versions of ADD32_P.ASM, SUB32_P.ASM, MUL32_P.ASM and DIV32_P.ASM

c) A runtime sequence of creating the ARI32.LIB

d) A runtime sequence of creating the CALC32.EXE program

e) An execution of CALC32.EXE showing five working examples with

i) using one input as 0, (ii) one input as 1, (iii) an exampe of invalid input, (iv) two medium size inputs, and (iv) two large inputs.

 Hardcopy of the homework with all the parts are due by Monday Decemebr 13, 2010.

 

BuiltWithNOF

[PHY353/553] [PHY353/553] [Goals] [Prof. Saj Alam] [Syllabus] [Grading Policy] [Books] [Schedule] [Lectures] [Chp 1: History of Computers] [Chp2: Binary Numbers] [Chp3: Conceptual Computer] [Software Model] [Addressing Modes] [Instruction Set] [Assembly Language] [First Program] [ADD16] [SUB16] [MUL16] [DIV16] [CALC16] [CALC32] [Manual] [Exams] [Grades]