summaryrefslogtreecommitdiff
path: root/src/stack.rs
Commit message (Collapse)AuthorAge
* Make Bedrock parametric over devicesBen Bridle2024-09-30
| | | | | | | | | | The core Bedrock struct is now parametric over individual Device structs, rather than over a single DeviceBus. This change was made so that devices can be implemented separately to one another. The implementation of the evaluate method has also been changed to make it potentially slightly more efficient, by replacing pop-then-push combinations with get operations.
* Implement micro optimisations for unary operatorsBen Bridle2024-09-07
| | | | | A 1% speed increase was observed when testing a tight decrementing loop with these optimisations.
* Improve efficiency of some instructionsBen Bridle2024-09-03
| | | | | | | | When a value is to be read and kept on the stack, instead of popping and immediately pushing it we now use a more efficient `get` stack method. The pop_u16 stack method has also been changed to a variation that assembles to fewer CPU instructions.
* First commitv1.0.0Ben Bridle2023-12-24