CALCNOP.ASM

Comments describing the function of program

 

 

 

 

 

 

 

Include the MacroLib called STRING.MAC

Stack Segement where we reserve 64*5=320 bytes for the stack or scratch area, and stuff the whole area with word “STACK” for identification purposes.

Data Segment wher messages are stored and input data are stored.

 

 

 

 

 

 

Input Data are stored at INPUT1 and INPUT2. Space is reserved for the SUM, Difference, Product, Quotient and Remainder.

Code Segment where the actual program starts

The conversion progams will be called from the CONV.LIB and the sub-procedure calls are decalred as external.

Both “DOS-RET-SUP” and INIT-DATA-SEG” are required.

 

First data input is received and stored at INPU1

 

Second data input is received and stored at INPUT2

 

The received inputs are then flashed back to the monitor for the sake of confirmation.

 

Here the menu selection is started.

Depending on the operation selected, the program jumps to the corresponding operation. The calls to the operation is not yet included.

 

 

 

This where the ADD will be done.

This is where the SUB will be done

 

 

This is where the MUL will be done.

 

This is where the DIV will be done.

Request to continue or quit the program.

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]