![]() Data is always being moved in and out of registers. In C++ you have the ability to declare a static variable but it is not necessary to do to have the variables to be in your code. In HLA, all the variables used had declared as a static variable. I noticed that all the codes had different headings before each code was started. HLA and C++ resembled the most compared to each other as the most of the code in HLA is compatible ,in HLA but the code just has to be tweaked a little bit then C++. Some of the observations that I have notice were that in Assembly that to establish a source and destination, HLA the command is written as mov(source, dest). We had to use “g++ lab42.cpp -o lab 42” command to convert from C++ to HLA. Once the program computers the value and displays the result, it should return to the original menu until the user chooses to exit. we can use if, while, for, or related commands. We cloud use any functions to perform the all the operations. For this lab were told to use C or C++ to write the code and then later it to assembly, in order to do that we had use the following commandS programName.c. Once the user selects an operation, the program will ask the user for the values and perform the operation. The operations supported are Addition, Multiplication and Exponent. The calculator will display a menu asking the user what operation to perform. Bit calculator similar to the one created in Lab 1, 2 and 3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |