Hello... I am in dire help here. I am having troubles figuring out how to code my calculator. The problems are inputing a number into the calculator and outputting the TOTAL SUM. If anyone can figure this out, I will greatly apreciate it.
Try using the DOS service interrupts for input and output.
For example, for buffered input:
Code:
ax=0ah,ds:dx=seg:offset of buffer.
int 21h
For output:
Code:
ah=09,ds:dx=seg:offset of output string.
int 21h
The thing to worry about here is the conversion between the characters input to the numbers used in the registers. Conversion to BCD might be easier for output.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.