HForm BASIC code
Simon Inns (2484) 108 posts |
I was taking a look at the source code to HForm (it’s giving me some headaches trying to correctly format large SDcards). It’s BASIC, but the source code has clearly been obfuscated. Is this a left-over from days of yore, or is someone maintaining the code and ‘compressing it’ before release? Just wanted to check before I reverse engineer the code. |
David Pitt (102) 743 posts |
Uncrunched BASIC can be found in CVS at |
Simon Inns (2484) 108 posts |
Thanks David; I clearly must get around to taking a copy of the CVS and exploring it. |
Chris Dewhurst (1709) 167 posts |
It would be nice if said someone could be make it a little more user friendly, Titchy text on white background is hard to see and the first prompt would have most users thinking “there are two options beginning with S so which one do I press S for and which one is M” or am I alone in thinking that? thanks! |
Chris Evans (457) 1614 posts |
Chris: There is a bounty covering this: From: https://www.riscosopen.org/bounty/polls/10 Filing system improvements (step 2) |
Steve Revill (20) 1361 posts |
The simplest solution is to download the source tarball for the DiscDev build. You will also need UnTarBZ2 to decompress the archive on RISC OS. This is by no means all of the stuff in CVS (not even close) but it’s a good selection of things and it’s the source code not the CVS repository so you can just look at BASIC files in an editor as normal. |
Rick Murray (539) 13840 posts |
That is Colin’s improved version, isn’t it? |
Steve Revill (20) 1361 posts |
You tell me. :) |
Chris Hall (132) 3554 posts |
Yes. ROOL does do QA surely? |
Steve Pampling (1551) 8170 posts |
Two pass: On completion of pass 2 item is added to products on sale. |
Steve Revill (20) 1361 posts |
There’s a big difference between a) giving something a test run after it’s submitted to ROOL, one of the many, many things hitting us every day, and popping it up on our site and b) remembering every little detail about everything we’ve published vs every other bit of software that’s out there when someone says “is your thing X the same as this other thing Y I found somewhere?”. If I spent the amount of time required to investigate every question, then not only would I not have time for a day job or a family, I wouldn’t have time to sleep and I’d need a few clones of myself. This is why I tend to leave most questions to the community, if I feel the community is capable of handling them itself. :) |
Steve Pampling (1551) 8170 posts |
There was a reason I said what I said. :) |
Michael Emerton (483) 136 posts |
“A desktop front end using the standard Toolbox may be used” I would suggest Basalt for this! :@) |
Steve Drain (222) 1620 posts |
You might suggest that, but it should not preclude other options. ;-) I revisted the HForm code. IMHO is is horrible, in whichever form, and will take quite bit of effort to make it into a desktop application. I also think it has to done by someone who knows just what is being done to format the discs. |
Dave Higton (1515) 3526 posts |
I wonder if HForm runs as a non-desktop application as a simple way to ensure exclusive access to the drive in question. I’d like to see a GUI too, but how would one ensure exclusive access? |
Simon Inns (2484) 108 posts |
Since it’s RISC OS, I’m guessing you can pop an hourglass and just stop polling whilst doing the exclusive access part. That way nothing else can interfere? |
Rick Murray (539) 13840 posts |
I think1 that is what the Simtec formatter did. A nice GUI program, but single-tasked the mission critical part. 1 Eighteen year old memory, may be wrong. |