1
0
mirror of https://github.com/tilleul/apple2.git synced 2024-10-02 00:57:36 +00:00

Update README.md

This commit is contained in:
tilleul 2022-06-29 21:17:11 +02:00 committed by GitHub
parent e0e998f16c
commit d0aaf6f92a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,9 @@ Here are several tricks you can use to optimize your Applesoft code for SPEED !
### Methodology
To prove that some code snippets are faster than others, I'm using [AppleWin](https://github.com/AppleWin/AppleWin)n an Apple II emulator that has a cycle counting/difference feature. What I do is set a breakpoint on the Applesoft "RUN" statement in $D912 and another on the "END" statement in $D870. So everything between "RUN" (as detected by Applesoft) and "END" in the program is considered for cycles count.
Not only am I going to show you that some code is faster than other, I'm going to prove it !
In order to do that, I'm using [AppleWin](https://github.com/AppleWin/AppleWin) an Apple II emulator that has a cycle counting/difference feature. What I do is set a breakpoint on the Applesoft "RUN" statement in $D912 and another on the "END" statement in $D870. So everything between "RUN" (as detected by Applesoft) and "END" in the program is considered for cycles count.
To make sure that code snippets compare, I initialize some variables with the same content, even if they're not used in the snippet, this is only to be fair for the snippet where it will be actually used. Doing so allows me to determine by difference the fastest snippet.