Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takenobu-hs/cpu-assembly-examples
CPU assembly examples
https://github.com/takenobu-hs/cpu-assembly-examples
arm assembly cpu risc-v x86
Last synced: 3 months ago
JSON representation
CPU assembly examples
- Host: GitHub
- URL: https://github.com/takenobu-hs/cpu-assembly-examples
- Owner: takenobu-hs
- License: bsd-3-clause
- Created: 2021-04-29T12:08:54.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T06:55:01.000Z (9 months ago)
- Last Synced: 2024-11-07T20:46:45.963Z (3 months ago)
- Topics: arm, assembly, cpu, risc-v, x86
- Language: Assembly
- Homepage:
- Size: 175 KB
- Stars: 73
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CPU assembly examples
=====================* This is a repo about tiny assembly examples for various CPUs (x86, Arm, and RISC-V).
* There are examples such as system-calls, library-calls, load/store, if/for/call, barriers, atomics, and threads.
* This repo focuses on CPU hardwares, not assembly notation or ABI conventions.## Contents
* [x86(x86_64)/linux](x86/linux)
* [Arm(Armv8 aarch64)/linux](arm/linux)
* [RISC-V(RV64G)/linux](riscv/linux)## An example
100.main/simple_main.S:
```asm
.global mainmain:
ret
```## Assemble and excecute
```
$ cd
$ make -f ../Makefile # assemble
$ ./ # execute
```