Table of Contents

asm Keyword 3

Addition

Definition

Addition may not seem significant - but it's a huge part of the simulator. Understanding how it would be implemented will help greatly. If increment and decrement can be called (they need command line arguments though, so not sure how that would work) then it would be a matter of incrementing the first register whilst decrementing the other one to zero. If that is not possible, however, then it will be a case of manually adding the bits together (using a loop) with an if counter for the carry. It will be very similar to the increment logic. There is also the possibility of using XOR logic to add - but there will have to be an if to take care of the carrying over.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

asm Keyword 3 Phase 2

Identification of chosen keyword.

Definition

Definition (in your own words) of the chosen keyword.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$