Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's a skeleton structure that should allow a crystal timer interrupt suitable for grayscale display. For controlling the interrupy delay, I'd recommend simply storing it in a variable and, whenever it's changed, call SetD() with that new value.
- I can't guarantee that this works, but I hope it does. It may require the latest version of Axe (1.2.1).
- Setup code:
- - make sure the calculator is not an 83+ first with Normal!
- ----------------------------------------
- <initial delay>:SetD() .recommended: ~180
- Asm(3E40D330)
- fnInt(Int,)
- Teardown code:
- ----------------------------------------
- Asm(AFD330)
- LnRegʳ
- Interrupt code:
- ----------------------------------------
- Lbl Int
- Asm(3E08D3033E02D331DB32D332)
- DispGraphʳʳ
- .perhaps more code
- Return
- Routine to set the interrupt delay:
- - input: 8-bit unsigned integer
- - bad stuff will happen if this is too low
- - recommended: enforce range to ~150-255
- ----------------------------------------
- Lbl SetD
- Asm(7DD332)
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement