ZeroPain and *Hon -> *Pointer -> HidePointer module
Martin Avison (27) 1494 posts |
I have been investigating many ZeroPain logs which all have the same location but many different Wimp tasks and Last App. One example is…
My investigation so far seems to indicate: 1. It it caused by the *Pointer or *Pointer 1 commands. 2. The logic flow may be something like… but this does not make sense to me!
3. Note that *Help Pointer gives… 4. These ZP logs only appeared on my Iyonix, not on my RPi. 5. I cannot find the source to HidePointer on the Zap website. Anyone know where to find the HidePointer source, or make any sense of this? |
Rick Murray (539) 13851 posts |
Eh? <tries it…> Damn. Never knew that!
I wonder if there was supposed to be an option for a secondary pointer (like a hand icon) that might have been used this way back in the days of Arthur, but it is now mostly historical? Just a guess… Bingo. Just downloaded the Arthur 0.30 archive from 4corn and browsing the gibberish in Notepad (!), I can see this:
I can look in more detail later but it looks like a nasty thunderstorm is incoming so I’ll probably yank the plugs soon. Better safe than smouldering rubble…
The logical place…there’s a reverse engineered (from module binary) source on the Zap CVS → http://cvs.tartarus.org/CVS/zap/sources/extensions/HidePointer/s/module%2Cfff?revision=1.1&view=markup |
Steve Pampling (1551) 8172 posts |
Might be worth getting an isolation transformer to power your kit so you can carry on with techno stuff and avoid the feeling that you’re in an isolated farmhouse in the French countryside. :) Seriously though, the isolation option caters for the instances where a power line zap comes in without thunderclouds visible.
Handy, for when you want to know the innards. Like now. |
Rick Murray (539) 13851 posts |
Already spoke to EDF, years ago. With three phase delivered at 230V(380V) via half a mile (or so) of bare overhead line, the only viable option is a full on-line UPS. EDF can supply me with one that is arranged so the incoming-mains-end can sacrifice itself without effecting the other end – heavy duty suppression and spark gaps. Needs to be professionally installed (if the earthing is naff, then it plain won’t work, so this must be fitted and checked). Price? Eye watering. That said, if the spark is happy travelling miles to earth, there probably isn’t a whole lot the earth end can do when we’re talking about domestic voltages, except try to fail sort-of gracefully. Actually, the hardware that was trashed last time was the ADSL router. Lightning either directly hit the phone line, or induced a huge current in it (by hitting a mains line running alongside, perhaps?). The results? Dead Livebox with bits rattling around inside. Bulging PSU brick (which tripped out the power). Everything connected to the Livebox, also toast. http://www.heyrick.co.uk/blog/index.php?diary=20120905 I don’t really believe that any isolation transformer nor UPS would be able to protect a phone jack. I’ve seen suppression sockets with ways to plug in phone equipment (and sometimes RJ45s too). These might work if there is a nearby hit that causes a transient – but a direct hit? Doubtful they’d be any good at all. Since I’ve been here (2002), I can recall three direct hits. One to the power line that caused a tungsten bulb to explode. One to the power line that made a bright blue flash in the meter (but I had already pushed the trip switch so it didn’t go any further, although the meter smelled like the back end of a laser printer for days afterwards!), and the one linked above that hit the phone line. [a fourth one, in ‘98, hit the TV aerial (since removed) that arced across the roof and destroyed dozens of old nails – the roof was going to be reroofed in a few weeks but it was surreal to see a bunch of slates just fall off; that was however not one of my better moments, having wanted to get a ladder to get into the old loft to put some buckets around – so there I am walking through a thunderstorm with a large three-section metal ladder….yeah, I’ll be flying a kite next, right?] So…
Perhaps better to just accept that this is an isolated farmhouse in the country, and make sure that equipment has batteries. |
Rick Murray (539) 13851 posts |
Okay, I looked. The emulators themselves were a barrel of laughs. Host system: an EeePC 901 with XP SP3.
Just to be a masochist, I have !A310Em running Arthur 0.30 under RISC OS 3.70 under RedSquirrel. Having a look at the ROM in Zap, it looks like this was a case of “here’s a great idea” that was never implemented… → Command interpreter code is called. There is no other command, so this looks to see if there is a parameter. If not then it jumps to the Along the way – here’s a screenshot of Arthur 0.30 (ugly): http://www.heyrick.co.uk/random/pics/arthur030.png (9K PNG) For people with wide screens, here’s a composite: http://www.heyrick.co.uk/random/pics/arthur030and120.png (18K PNG) Interesting to look at the palette – Arthur 0.30 has four shades of blue; Arthur 1.20 removes cyan to instead have a sort of flesh/tan colour. Neither version has a true black – it’s a very dark blue. Okay. That’ll do pig. |
Jeffrey Lee (213) 6048 posts |
Along the way – here’s a screenshot of Arthur 0.30 (ugly): http://www.heyrick.co.uk/random/pics/arthur030.png (9K PNG) Having never seen pictures of early AmigaOS before (AFAIK), today I realised that the colour scheme is very similar to Arthur: http://www.theregister.co.uk/2015/07/24/amiga_turns_30/ So is this just a coincidence, or were Acorn inspired by AmigaOS, or were they both inspired by something else? (DOS? Windows 1.0? – although I think the Amiga predates Windows by a little bit) |
Jeffrey Lee (213) 6048 posts |
Also:
The only problem I ran into with Arthur under ArcEm is that Arthur refused to enter the desktop because the system sprite pool had been configured to 0KB. If you configure it to a larger size first then it seems to work (configuring from within Arthur didn’t seem to work – but using !Configure in 3.10 did the trick). I also set the emulator to 1MB of RAM, just in case (not sure how much Arthur will reliably work with). Of course there are some issues with ArcEm that need resolving (probably one or two null pointer dereferences, and I need to teach it about the new screen modes), so perhaps they were the cause of your issues. (And ArcEm does show the use of dark blue for black in Arthur 0.30, which is what I was really interested in – so presumably that’s a bug in Arthur rather than a bug in any emulator) |
Rick Murray (539) 13851 posts |
Ah, the original Workbench. Actually, that’s mostly blue and white. Try this. Also from 1985. I rather suspect that there was a phase that people went through in the mid ‘80s when everybody was like "Oh my God, we can have MULTIPLE COLOURS on screen at the SAME TIME! Let’s use them ALL! EPIC!1 AWESOME!2 RAD!3" Then, a couple of years later, everybody realised how utterly dreadful this was, especially when people still connected computers to domestic TVs using RF cable; and so the world settled down to conventional shades of grey. Were Acorn inspired by Amiga/Windows? Possibly. Or maybe they developed in a similar way of shoving all sorts of horrid colours onto the screen simply because they could? What better way to show off a 16 colour palette than to use ’em all! ;-) 1 Too recent. 2 Too clichéd. 3 Totally eighties. |
Rick Murray (539) 13851 posts |
Ah, yes. I forgot that. I did a Right – ArcEm v1.50 with Arthur 0.30 and a 128K sprite area leads to this: http://www.heyrick.co.uk/random/pics/arcem_arthur_fail.png (11K PNG) There is also a missing part of display redraws, which may or may not be related to the above problem: http://www.heyrick.co.uk/random/pics/arcem_display_fail.png (13K PNG) Relax: THESE PROBLEMS ARE SPECIFIC TO ARTHUR 0.30 – I’ve just tried Arthur 1.20 and it appears to work okay. BTW, if anybody wants to join in the fun, the Arthur 1.20 image on 4corn has an extra byte at the end of the file. ArcEm rejects the ROM (sensibly!) so you’ll need to strip it off before using the ROM. This can be done easily with any RISC OS text editor, or within the Windows world using something like Hexplorer (text editors will probably eat the file, assuming they don’t freak out and interpret it as Chinese). |
Jeffrey Lee (213) 6048 posts |
Is that actually with the emulator configured for 1MB of RAM? One of the limitations of ArcEm is that it makes assumptions about how the OS will configure MEMC (the row/column address lines move round in odd manners depending on the RAM size). If the OS misdetects how much RAM there is and sets up MEMC “incorrectly” then ArcEm’s video and sound output will be corrupt. I guess I could make it detect that and at least pop up a warning message of some kind. |
Rick Murray (539) 13851 posts |
Arthur reports 1024K (but it might not understand anything greater?); I can’t try as running ArcEm from the command line using any options (I tried Edit1: Also tried setting Edit2: Arthur 1.20 reports 4096K so this may be what is happening. |
Jeffrey Lee (213) 6048 posts |
Hmm, so I see. I guess the command line parsing is busted for the Windows version. I guess I’ll add that to the todo list! (And yes, default memory setting is 4M) |