-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from lorderikir/v0.8.0-release
v0.8.0 release
- Loading branch information
Showing
5 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/ Addition Calculator | ||
/ by the MARIE.js Team | ||
/ Copyright (C) 2016. Licensed under the MIT License | ||
|
||
Input | ||
Store X | ||
Input | ||
Store Y | ||
|
||
Add X | ||
Output | ||
Halt | ||
|
||
X, DEC 0 | ||
Y, DEC 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/ Multiplication Calculator | ||
/ by the MARIE.js Team | ||
/ Copyright (C) 2016. Licensed under the MIT License | ||
|
||
/ Prompt user to type in integers | ||
INPUT | ||
Store X | ||
INPUT | ||
Store Y | ||
|
||
/ Loop for performing iterative addition | ||
loop, Load num | ||
Add X | ||
Store num | ||
|
||
Load Y | ||
Subt one | ||
Store Y | ||
|
||
Skipcond 400 / have we completed the multiplication? | ||
Jump loop / no; repeat loop | ||
/ yes, so exit the loop | ||
|
||
/ Output result to user then halt program | ||
Load num | ||
Output | ||
Halt |
This file contains 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