base:variable_speedcode_runlength
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
base:variable_speedcode_runlength [2016-04-16 12:00] – bitbreaker | base:variable_speedcode_runlength [2022-01-14 12:45] (current) – bitbreaker | ||
---|---|---|---|
Line 26: | Line 26: | ||
</ | </ | ||
- | So given the above example, we might want to enter at sta $0400 and leave after sta $0408, to do so we can modify the code and transform the upcoming sta to an rts command. After exiting the speedcode we then modify the rts back to a sta. Pretty | + | So given the above example, we might want to enter at sta $0400 and leave after sta $0408, to do so we can modify the code and transform the upcoming sta to an rts command. After exiting the speedcode we then modify the rts back to a sta. Pretty |
- | If we speedocde | + | |
+ | We need speedcode | ||
All you need is setting up a IRQ/NMI handler once beforehand as the exit point of your routine, setup the timer with 2 writes to e.g. $dd04/$dd05 and start a single shot timer run by setting $dd0e to $09. | All you need is setting up a IRQ/NMI handler once beforehand as the exit point of your routine, setup the timer with 2 writes to e.g. $dd04/$dd05 and start a single shot timer run by setting $dd0e to $09. | ||
Line 94: | Line 95: | ||
Regarding the cli instruction: | Regarding the cli instruction: | ||
- |
base/variable_speedcode_runlength.txt · Last modified: 2022-01-14 12:45 by bitbreaker