Quote:
Originally Posted by jdkaye
Is this a homework assignment?
|
Well, it certainly looks like it, and if it walks like a duck and quacks like a duck...
In any case, for the OP, the answer is no. You haven't given enough information - Linux supports many architectures, and the assembly language for each architecture is different (and its not even clear that the question refers to an arch supported by Linux...real scientific calculators can use a number of architectures that are only really popular in embedded and to which Linux has not been currently ported, as well as all of the usual ARM, 'HC09 stuff), so you ought to be doing at least a bit more work in defining the problem. And, in any case, there are many variants in terms of where the input would come from (a scientific calculator keyboard, with all that implies in the way of scanning a matrix of buttons, an ASCII/Qwerty keyboard, a touchscreen....) and of output device (graphics screen via unknown device driver libraries. seven segment display, with multiplexing, etc).
So, right now I would be unable to answer this question, even if I really wanted to. And, if people suspect that the question is homework, they are more probably going to try to push you in the right direction, rather than answer the question directly. (And it probably builds on whatever other exercises that you have been doing in whichever programming class that you are taking, if this is a quacking duck.)