https://github.com/plus-postech/clemency-asm
Assembler for cLEMENCy architecture
https://github.com/plus-postech/clemency-asm
Last synced: 3 months ago
JSON representation
Assembler for cLEMENCy architecture
- Host: GitHub
- URL: https://github.com/plus-postech/clemency-asm
- Owner: PLUS-POSTECH
- Created: 2017-08-04T02:06:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-04T02:06:45.000Z (almost 8 years ago)
- Last Synced: 2025-01-25T22:21:27.822Z (5 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clemency_asm
[cLEMENCy architecture](https://blog.legitbs.net/2017/07/the-clemency-architecture.html) is a custom architecture created by legitBS for DEFCON 25. This repository contains an assembler for cLEMENCy architecture, which was developed during the contest period.
## Usage
### As a standalone binary
```bash
$ python clemency_asm.py sample/test.casm output.bin
```### As a library
```python
from clemency_asm import asm
asm('AD r00, r00, r01')
```## Macro Instruction
### MA!: Move All
```
MA! rA, IMM
==
ML rA, IMM & 0b1111111111
MH rA, IMM >> 10
```