Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 569 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 569 Bytes

clemency_asm

cLEMENCy architecture 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

$ python clemency_asm.py sample/test.casm output.bin

As a library

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