https://github.com/mahdiydev/learn-asm
Assembly Language Learning with GNU Assembly
https://github.com/mahdiydev/learn-asm
Last synced: 11 months ago
JSON representation
Assembly Language Learning with GNU Assembly
- Host: GitHub
- URL: https://github.com/mahdiydev/learn-asm
- Owner: MahdiyDev
- Created: 2024-12-23T14:19:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-24T07:16:15.000Z (over 1 year ago)
- Last Synced: 2024-12-24T07:29:53.075Z (over 1 year ago)
- Language: Assembly
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Assembly Language Learning with GNU Assembly
## Examples
1. Simple assembly program. Exits with given value. [see](1_intro)
2. Find maximum value from array. Exits with maximum value. [see](2_find_max_value)
3. Function and Stack. Compute the value of a number raised to a power and exits with result. [see](3_functions_and_stack)
### Compile
If you are using mingw replace this with mingw lib path
```sh
MINGW_LIB="C:\Program Files\mingw\mingw64\x86_64-w64-mingw32\lib"
```
To compile:
```sh
./build.sh
```
### Execution
Run program:
```sh
./exit.exe
```
To see return code in shell (or git-bash)
```sh
echo $?
```
In cmd:
```sh
echo %errorlevel%
```