Skip to content

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

License

Notifications You must be signed in to change notification settings

SMN321/SAMsalabim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published