-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4422f6
commit 33bcb89
Showing
4 changed files
with
2,097 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
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 |
---|---|---|
@@ -1,2 +1,66 @@ | ||
# RPN-Calculator | ||
An RPN calculator coded in ARM7TDMI Assembly. | ||
|
||
[](https://github.com/Horizon-NTH/RPN-Calculator/releases) | ||
[](https://en.wikipedia.org/wiki/Assembly_language) | ||
[](LICENSE) | ||
|
||
 | ||
|
||
## Introduction | ||
|
||
An **RPN calculator** programmed in [ARM7TDMI](https://en.wikipedia.org/wiki/ARM7#ARM7TDMI) Assembly. It supports numerous operators and also incorporates | ||
[floating-point arithmetic](https://en.wikipedia.org/wiki/Floating-point_arithmetic), utilizing the [IEEE 754](https://en.wikipedia.org/wiki/IEEE_754) standard. | ||
|
||
## Installation Instructions | ||
|
||
> You can also simply install the release version [here](https://github.com/Horizon-NTH/RPN-Calculator/releases). | ||
### Get Source Code | ||
|
||
You first need to clone the repository. Make sure to use [git](https://git-scm.com). | ||
|
||
```bash | ||
git clone https://github.com/Horizon-NTH/RPN-Calculator.git | ||
``` | ||
|
||
### Get the simulator | ||
|
||
Although this program has been written in ARM7TDMI language, it incorporates specific features tailored to operate | ||
within this [simulator](https://github.com/mgard/epater). Therefore, please install the simulator by following the | ||
instructions provided on its GitHub page and refer to its documentation to explore all the specifications. | ||
|
||
>⚠️ To make the code work on the simulator, you need to modify the address of the data section in the [`assembler.py`](https://github.com/mgard/epater/blob/master/assembler.py) | ||
> file and set it to a minimum of `0x1500`. | ||
> You need to modify the value of `DATA` on line 12 as shown in the following code snippet. | ||
```python | ||
memory_configs = { | ||
"simulation": {"INTVEC": 0x00, "CODE": 0x80, "DATA": 0x1500}, | ||
"test": {"INTVEC": 0x100000, "CODE": 0x100080, "DATA": 0x101000} | ||
} | ||
``` | ||
|
||
>Additionally, to run the program entirely, you will need to either press the execution button multiple times or | ||
> increase the value of `runmaxit` in the [`settings.py`](https://github.com/mgard/epater/blob/master/settings.py) file, at line 10. | ||
```python | ||
_settings = {"PCbehavior": "+8", | ||
"allowuserswitchmode": True, | ||
"runmaxit": 10000, | ||
"maxhistorylength": 1000, | ||
"fillValue": 0xFF, | ||
"maxtotalmem": 0x10000, | ||
} | ||
``` | ||
|
||
## Documentation | ||
|
||
To see how to use the calculator or how does it work, please refer to the [wiki](https://github.com/Horizon-NTH/RPN-Calculator/wiki). | ||
|
||
## Dependencies | ||
|
||
- **[epater](https://github.com/mgard/epater)** is the simulator used to run the code. | ||
|
||
## License | ||
|
||
This project is licensed under the [MIT license](LICENSE). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.