SMN321 / SAMsalabim

AVR assembler implementation of the Square-And-Multiply (SAM) algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SAMsalabim

AVR assembler implementation of the Square-And-Multiply (SAM) algorithm.
Currently only the calculation of ab mod 256 is supported because everything needs to fit in 8-bit registers, no consideraton of overflows. This might change some time though.

Usage

Just put the (8-bit) arguments in the SAM_BASE and SAM_EXP registers, call sam and simsalabim: SAM_RES contains the result.

About

AVR assembler implementation of the Square-And-Multiply (SAM) algorithm

License:GNU General Public License v3.0


Languages

Language:Assembly 100.0%