CALCNOP: MAIN PROGRAM WITH I/O

 

CALCNOP.ASM

This is the main program template. In its first version, calls to the ADD16, SUB16, MUL16, and DIV16 have not yet been made.  The parts of the program are explained below:

a) You are also shown how ASCII character messages can be displayed on the monitor screen. Click the “DISPLAY MESSAGES” button on the right.

b) You are shown how a decimal input from 0 to 65535 is entered at the keyboard and stored at INPUT1 in the Data Segement. Click the “Decimal Input” button on the right.

c) The hexadecimal number corresponding to the decimal number inputted is then converted back to decimal and its corresponding ASCII characters are flashed back on the monitor. Click the “Confirm Input” button on the right.

d) The next section sets up the code to select the operations from the list “+, -, *, /, or all.”  Click the “Menu Selection” button on the right.

e) Finally, one can see the complete run time and demo of the CALCNOP program, which sets up the full template for the multimodular program CALC16. Click the “Run Demo” button on the right.

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]