Created
December 25, 2011 17:39
-
-
Save sinannar/1519536 to your computer and use it in GitHub Desktop.
billab-hw-part1-10point
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD RF,10 ;cleaning screen | |
LOAD RF,10 | |
LOAD RF,10 | |
LOAD RF,10 | |
LOAD R1,8 ;loading integers registers | |
LOAD R2,3 | |
LOAD R3,2 | |
LOAD R4,11111111b ;tools we use when get two's compliment | |
LOAD R5,00000001b | |
LOAD R6,48 ;tool we use when printing numb on screen | |
XOR R2,R2,R4 ;two's complimenting second numb | |
ADDI R2,R2,R5 | |
XOR R3,R3,R4 ;two's complimenting third numb | |
ADDI R3,R3,R5 | |
ADDI R2,R2,R3 ;adding two integer | |
ADDI R1,R1,R2 ;adding two integer | |
ADDI RF,R1,R6 ;printing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment