0 Members and 2 Guests are viewing this topic.
Not bad! You need to see if you can find a way to reduce of some of the background noise though.
$ bcbc 1.06.95Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.This is free software with ABSOLUTELY NO WARRANTY.For details type `warranty'. 8192*2/35461
There's also a little issue with the screen not shutting off when I turn off the calculator, but that should be easily fixable.
The initial timer value you set to 600017 might be off by one, because:Code: [Select]$ bcbc 1.06.95Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.This is free software with ABSOLUTELY NO WARRANTY.For details type `warranty'. 8192*2/35461
QuoteThere's also a little issue with the screen not shutting off when I turn off the calculator, but that should be easily fixable.The screen status bit is 60001D:4 on HW1 (on HW2, it's a bit for the contrast...), 70001D:1 on HW2.
Very nice progress!Really makes me want to install this on my 92+ Also, is the top that is running a direct port, or did you modify/make your own?
It's possible that I set the value off by one, but I don't think it's likely. I set the timer value to the maximum, 255, so the interrupt should fire every other time the timer increments, ie, 16384/2 = 8192. It does so in TiEmu.
how hard would it be to port to another architecture?
QuoteIt's possible that I set the value off by one, but I don't think it's likely. I set the timer value to the maximum, 255, so the interrupt should fire every other time the timer increments, ie, 16384/2 = 8192. It does so in TiEmu.OK. The value you wrote in your previous post was so perfectly 2/3 of the intended value that it might just have been due to the problem I mentioned
On HW2 calculators, another source of timers with a wrong rate is an uncommon state of bits 2 and 1 in port 70001F.
How hard would it be to make Punix run on other hardware, say an old 68k mac?Is it too dependent on the hardware of a 92+, or is it in theory possible?Now, continuing on this .. how hard would it be to port to another architecture?
I think this was the problem. I set those bits to 11 in the startup code, but somehow they must've gotten set to 00 somewhere else, which slows down OSC2 to about 2/3 of the normal rate, which is exactly the symptom I was experiencing. Now I set them back to 11 in my poweroff routine, and the clocks are very accurate.