Confirm Input

CONFIRM NUMBER STORED AT INPUT1 AND INPUT2

a) To make sure the decimal number received from the keyboard and saved at INPUT1 is indeed the number you input, we take the equivalent hexadecimal stored at INPUT, convert it back to a decimal number and flash the corresponding ASCII characters on the monitor screen.

The address INPUT1, where the first input is stored in the data segement, is then loaded as an extended address into the register SI, and then a called is made to the DECOUT16 sub-procedure, which converts the hexadecimal number at INPUT1 into a decimal number and then flashes the corresponding ASCII characters on the monitor screen. 

b) The second input stored at INPUT2 is treated in the same way.

This way we know for sure that the decimal inputted at the keyboard and stored in the data segment is indeed the one we have stored in the data segment.

 The coding is shown below:

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]