mirror of
https://github.com/Michaelangel007/apple2_russian_peasant_multiplication.git
synced 2024-11-02 02:04:41 +00:00
Added Readme
This commit is contained in:
parent
c5d18236f9
commit
2698571c76
25
README.MD
Normal file
25
README.MD
Normal file
@ -0,0 +1,25 @@
|
||||
# Russian Peasant Multiplication
|
||||
|
||||
From Assembly to Basic to Javascript. Here is an implementation of Russian Peasant Multiplication implemented in various languages:
|
||||
|
||||
* 6502 Assembly Language (Both ca65 and merlin32 sources)
|
||||
* Applesoft BASIC
|
||||
* JavaScript (Procedural version)
|
||||
* JavaScript (OOP version)
|
||||
|
||||
An .dsk image has been provided as an convenience.
|
||||
|
||||
To see how much faster the Assembly version is then the BASIC version:
|
||||
|
||||
```
|
||||
RUN RPM.BAS
|
||||
BRUN RPM.BIN
|
||||
```
|
||||
|
||||
And enter in `123456789` * `987654321` respectively for A and B ...
|
||||
|
||||
| Version | Time |
|
||||
|:----------|:-----|
|
||||
| Applesoft | 33 s |
|
||||
| Assembly | ~1 s |
|
||||
|
Loading…
Reference in New Issue
Block a user