Lawl... even though I can't really play this, I'm laughing off my butt just by the thought of it! Great job
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
PRG_getStart
lea.l ($600017),a0
bset #3,-2(a0)
\ne_loop
tst.b (a0)
bne.s \ne_loop
\eq_loop
move.b (a0),d2
beq.s \eq_loop
Quote from: Lionel Debroux on April 07, 2016, 06:20:14 AM
I tend to use 0xCE instead of 0xCC on my 89 HW2 calculator, which yields 1024/51 Hz instead of 1024/53 Hz AUTO_INT_5 rate - an order of magnitude closer to 20 Hz. On my calculator running AMS 2.05, after changing the initial value in port 600017 and enabling AUTO_INT_3 until the next power off (port 600015, bit 2), the default APD time, as measured by AUTO_INT_3 ticks stored in the OS's internal variables, is ~299s, instead of ~310-311s.
You need to obtain the initial timer value through a waiting loop, then save and restore that. See PRG_getStart in intr.h, https://debrouxl.github.io/gcc4ti/intr.html#PRG_getStart .
Quote from: Lionel Debroux on April 07, 2016, 06:20:14 AM
- Bug report:
move.b #$cc,($600017) ;restore timer speed
Quote from: Lionel Debroux on April 07, 2016, 06:20:14 AM
- Bug report: setting the SR to 0x0400
Quote from: Lionel Debroux on April 07, 2016, 06:20:14 AM
- Bug report: the AUTO_INT_5 handler starts by clobbering d0 and a6.
Quote from: Lionel Debroux on April 07, 2016, 06:20:14 AM
- Minor optimization in the init code
move.w (a1)+,d0 ;skip ctrl word
Page created in 0.099 seconds with 30 queries.