Filetype for BASIC64/VFP
Steve Drain (222) 1620 posts |
That sounds quite neat. My method using Basalt and the Toolbox may, or may not, take more effort, but it took less than 30 minutes to put !Basic64 together. ;-) |
Steve Drain (222) 1620 posts |
Something like my Float/SmartVFP module, perhaps. ;-) |
David Feugey (2125) 2709 posts |
Of course, if enough developer time was here, I’ll never propose such things :) The idea here is more to say: takes the current FPEmulator and see where you can use VFP instructions. The same way BasicVFP was probably created… So even if the work is not completed (only a few FPE instructions optimised), everyone will begin to see the difference. IMHO, partial & soon is always better than complete & never. |
Colin (478) 2433 posts |
Instead of another filetype which would require that any editors which load basic programs be modified why not change the loadtype and runtype to
Then if you want to use BASIC64 with a double click you just add _64 to the filename. |
Steve Drain (222) 1620 posts |
That is a very good idea and I tried to do it, but got my ‘%’ in a twist. ;-( It still has the problem of the possible content of a file being identical for both BASIC V and BASIC VI. For what it’s worth, I have updated !Basic64 to run in a TaskWindow if Shift is held, or force BASICVFP if Control is held. |
Colin (478) 2433 posts |
I should have said that the lines were cut and pasted from an obey file so you need to run them from an obey file. |
Steve Pampling (1551) 8170 posts |
Hmm, adding three characters at the end of the name to denote the filetype… Hey, we could make the system hide the last three characters denoting filetype too. |
GavinWraith (26) 1563 posts |
You can get !TaskW, and so stick , from here . |
Rick Murray (539) 13840 posts |
Just out of interest – is there any sort of “test suite” to verify the FP behaviour on the various incarnations of BASIC? |
Jeffrey Lee (213) 6048 posts |
I wrote a few test programs while working on BASICVFP – you can find them in CVS. They should all run under all three variants of BASIC, and some may even run on 6502 versions of BASIC if you’re lucky. None of them are a comprehensive FP test suite, but some of them are designed to focus on a few specific problem areas. https://www.riscosopen.org/viewer/view/castle/RiscOS/Sources/Programmer/BASIC/Tests/
|
nemo (145) 2546 posts |
Dudes,
Allocated some time ago. Does work. New version to be released soon (now works correctly outside the desktop). TskBasic is actually the most useful form of stand-alone BASIC program, as it checks its environment:
Especially useful for library commands and textual tools.
There’s no shortage of filetypes. Programmers should not have to be starting every program with “It’s the wrong version, Gromit” switcheroo code. If you’re using an incompatible feature, lets declare it super-early with a language construct that
9/10 for that. I’d have used &8200 but YMMV. |
nemo (145) 2546 posts |
Aside: Martin said
There’s little constraining filetype names but convention – the ancient Service Call is so totally obsolete it could be excised without anyone noticing (and if anyone did, one quick *Set and it’s fixed). Many apps will truncate the filetype when displayed in an info window, but that’s only a presentation problem, and usually fixable with a template tweak. Obviously Filer would need some adjustment. The fact is you can already However…The better fix is usually to introduce an alternative. One of my experimental Filers uses
etc. And I commend it to the house. |
nemo (145) 2546 posts |
I had forgotten, but back in the days of inter-networked Beebs and Arcs you would see quite a few different BASIC “filetypes”: F0E BasicIV BBC Master 128 Basic F12 BasicNt BBC Micro Basic (NFS) F19 BasicII BBC Micro Basic (ANFS) (Actually, I think F0E was supposed to be “Econet utility”, but I never saw one of those in the wild, and what use would it be for an Arc anyway? The various BASICs were much more useful). No prizes for working out why they had those filetypes. Oh, I found the icons too: |