[News] BBC BASIC Beta Testing - 2009/03/06 r720
Moderator: benryves
Re: [News] BBC BASIC Beta Testing - 2008/01/15
The bug does seem to be a timing issue (reloading, the commands didn't help). However, on my calculator, MINES, CLOCK, and CUBE all run correctly (as far as I can tell).
Finally, I'm not quite sure how to edit programs like on the regular OS (I can do it line by line)... I tried using the *EXEC with the program (according to the documentation, this is supposed to detokenize the program; it gives lots of syntax errors when I use it), but I'm not entirely sure what to do...
I'll download the new documentation when I get home (at school atm) to see how it is.
Finally, I'm not quite sure how to edit programs like on the regular OS (I can do it line by line)... I tried using the *EXEC with the program (according to the documentation, this is supposed to detokenize the program; it gives lots of syntax errors when I use it), but I'm not entirely sure what to do...
I'll download the new documentation when I get home (at school atm) to see how it is.
Re: Beta Testing - 2008/01/15
I've noticed that bug on my 84+SE too. Sometimes, it creates the files, but reports that the file could not be opened. Then, running LOAD "FILENAME", where FILENAME is the name of the file just created, gives no errors, but doesn't actually load anything.Kiruahxh wrote:Very nice app!! That's great!![]()
There is an annoying bug: the files I write sometimes disappear... They are still in memory, but BBC is unable to find them.
And I can't do: SAVE "TESTBBC" if the program don't already exist, whereas the first I did it, it worked.
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: [News] BBC BASIC Beta Testing - 2008/01/16
I've uploaded a new version with a handful of possible fixes in the host interface as well as updated samples. Hopefully the erratic key input and LCD corruption bugs have been fixed.
If you still have problems on the TI-84+, please try using the new *SPEED command to switch down to 6MHz:...and try again.
The line-based editor is usable, but I can see how you may find it a bit clunky. You can edit programs externally using the bundled PC program. It may be possible to write something that converts a file from a sensible format (eg DocumentDE), but this will take some doing as BBC BASIC does not expose any routines to tokenise a line of ASCII source.
![Sad :(](./images/smilies/grayscale_sad.gif)
Edit: If you had already downloaded it, please try downloading it again - I may (?!) have fixed it. Let me know how it goes for you.
If you still have problems on the TI-84+, please try using the new *SPEED command to switch down to 6MHz:
Code: Select all
*SPEED 6
You can't, unfortunately. The TI-OS editor stores programs in its own tokenised format and *EXEC loads ASCII text files. On top of that, the TI-OS editor does not allow you to enter particular symbols such as # (which is used on many file-related keywords).Finally, I'm not quite sure how to edit programs like on the regular OS (I can do it line by line)... I tried using the *EXEC with the program (according to the documentation, this is supposed to detokenize the program; it gives lots of syntax errors when I use it), but I'm not entirely sure what to do...
The line-based editor is usable, but I can see how you may find it a bit clunky. You can edit programs externally using the bundled PC program. It may be possible to write something that converts a file from a sensible format (eg DocumentDE), but this will take some doing as BBC BASIC does not expose any routines to tokenise a line of ASCII source.
This baffles me considerably. Sometimes it works, sometimes it doesn't; even more bizarrely, if you enter the full name of the file with an extension (eg, SAVE"TESTBBC.PRG") it always works. Stepping through the code in an emulator the name is converted to TI-OS format identically whether you include the extension or not. It only affects the TI-84+, I have never seen these problems on the TI-83+. I'm looking into it.bwang wrote:I've noticed that bug on my 84+SE too. Sometimes, it creates the files, but reports that the file could not be opened. Then, running LOAD "FILENAME", where FILENAME is the name of the file just created, gives no errors, but doesn't actually load anything.Kiruahxh wrote:Very nice app!! That's great!![]()
There is an annoying bug: the files I write sometimes disappear... They are still in memory, but BBC is unable to find them.
And I can't do: SAVE "TESTBBC" if the program don't already exist, whereas the first I did it, it worked.
![Sad :(](./images/smilies/grayscale_sad.gif)
Edit: If you had already downloaded it, please try downloading it again - I may (?!) have fixed it. Let me know how it goes for you.
Re: [News] BBC BASIC Beta Testing - 2008/01/16
VDU 14 crashes my 84+ SE. Running VDU 14 followed by a LIST command will sometimes cause a RAM clear. Other times, I can restart BBC Basic by holding ON.
Re: [News] BBC BASIC Beta Testing - 2008/01/16
I have had a lot of interest on where this project's going and am very happy to see it in a public beta! I mmediately put it on my TI-84+ SE and will also load it on my TI-Nspire to test compatibility.
Overall, I like it a lot. I made a few simple programs do things like convert temperature and draw a box. However, I have noticed a bug in it where loading programmes can be difficult. Unlike what you said on the post a few posts before, it sometimes says "File not found" when I try to load a file and type its extension.
Here's excactly what it looked like:
LOAD "MINES.PRG"
File not found
MINES.PRG was in the memory (Not the ROM). I noticed that this problem was corrected when I archived the programme, resetted the memory, then unarchived it.
I hope this informaton helps.
Also, on my TI website (http://www.lafacroft.com) my friend and I will make a section of the TI-83 Plus archive specifically for BBC Basic files. You can still send them to the site and they will be posted.
Overall, I like it a lot. I made a few simple programs do things like convert temperature and draw a box. However, I have noticed a bug in it where loading programmes can be difficult. Unlike what you said on the post a few posts before, it sometimes says "File not found" when I try to load a file and type its extension.
Here's excactly what it looked like:
LOAD "MINES.PRG"
File not found
MINES.PRG was in the memory (Not the ROM). I noticed that this problem was corrected when I archived the programme, resetted the memory, then unarchived it.
I hope this informaton helps.
Also, on my TI website (http://www.lafacroft.com) my friend and I will make a section of the TI-83 Plus archive specifically for BBC Basic files. You can still send them to the site and they will be posted.
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: [News] BBC BASIC Beta Testing - 2008/01/16
Well spotted. I'd accidentally removed a label, which was causing the wait-for-a-key loop to branch back to somewhere much earlier in the code. This unbalanced the stack, so if you left it for a while it would eventually overflow the stack and crash. The new download should have fixed that.bwang wrote:VDU 14 crashes my 84+ SE. Running VDU 14 followed by a LIST command will sometimes cause a RAM clear. Other times, I can restart BBC Basic by holding ON.
![Smile :)](./images/smilies/grayscale_smile.gif)
Does SIERPINS now work, and can you type e and d on the TI-84+?
Thank you! I cannot guarantee that it will work properly on the Nspire as there is at least one place where I have used the sl1 instruction (which is not implemented by the Nspire's emulator). Even if I cleaned up my code to remove usage of undocumented instructions, BBC BASIC itself (which I do not have the source code for) may use them.ahudson wrote:I have had a lot of interest on where this project's going and am very happy to see it in a public beta! I mmediately put it on my TI-84+ SE and will also load it on my TI-Nspire to test compatibility.
If you mean "helps to send Ben insane", then yes.Unlike what you said on the post a few posts before, it sometimes says "File not found" when I try to load a file and type its extension.
Here's excactly what it looked like:
LOAD "MINES.PRG"
File not found
MINES.PRG was in the memory (Not the ROM). I noticed that this problem was corrected when I archived the programme, resetted the memory, then unarchived it.
I hope this informaton helps.
![Crazy! :crazy:](./images/smilies/grayscale_crazy.gif)
Are you sure you're using the latest version? The "File not found" error was what I was getting on a TI-84+ emulator (and, yes, I found that sometimes .PRG didn't work either). I found that I could sometimes trigger the bug by deleting the files from the TI-84+ then resending them.
It looks like a TI-84+ specific bug, which is really weird, as in all my testing (which is on a TI-83+, either in PindurTI or on real hardware) I've never seen it, but it crops up time and time again on a TI-84+ in Wabbitemu. I tried wrapping _ChkFindSym with a block of code that disables interrupts and preserves registers which appeared to fix it (I can't trigger the bug any more in Wabbitemu). Which version of the TI-OS are you using?
Cheers, sounds good to me.Also, on my TI website (http://www.lafacroft.com) my friend and I will make a section of the TI-83 Plus archive specifically for BBC Basic files. You can still send them to the site and they will be posted.
![Very Happy :D](./images/smilies/grayscale_happy.gif)
Re: [News] BBC BASIC Beta Testing - 2008/01/17
I'm downloading the new version now; the d and e keys worked fine on my 84+SE the entire time (I don't think anything was ever wrong with them)...
Re: [News] BBC BASIC Beta Testing - 2008/01/17
Yeah but you know how your program works...
For example, I've tried a lot of commands that do not exist, and tried command with bad arguments...
I've not tried with the new version (I'm currently loading it), but I've seen that sometimes, when LOAD "MINES" gives an error "File not found", ch."MINES" works correctly.
The other bug I mentionned, was that I tried to open a file that didn't exist. It detected it, but it created the file too (and it was not able to load it). But in fact, since the bug appear, Ram seems corrupted, because it will not work again correctly before a Ram Clear.
I've seen how the SORT program is writen, and that's awesome! That Asm could be included that way in your program and still be drawable on the screen... (Is it interpreted or really compiled??)
For example, I've tried a lot of commands that do not exist, and tried command with bad arguments...
I've not tried with the new version (I'm currently loading it), but I've seen that sometimes, when LOAD "MINES" gives an error "File not found", ch."MINES" works correctly.
The other bug I mentionned, was that I tried to open a file that didn't exist. It detected it, but it created the file too (and it was not able to load it). But in fact, since the bug appear, Ram seems corrupted, because it will not work again correctly before a Ram Clear.
I've seen how the SORT program is writen, and that's awesome! That Asm could be included that way in your program and still be drawable on the screen... (Is it interpreted or really compiled??)
Re: [News] BBC BASIC Beta Testing - 2008/01/17
I ran the sierpins program and it did not work properly using the run command (I forgot to try with ch). However, after a RAM clear, it worked with ch."sierpins" (it still did not work with run).
84+SE
84+SE
Re: [News] BBC BASIC Beta Testing - 2008/01/17
I have now downloaded the new version and I am not having any issues so far with the failure to detect programmes in the memory.
One thing that would make it a lot easier would be to let it load programmes from the ROM. I do not know whether or not that s possible since I only have experience in TI-BASIC and TI-Nspire BASIC.
![Idea :idea:](./images/smilies/grayscale_idea.gif)
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: [News] BBC BASIC Beta Testing - 2008/01/17
OK, I'm really sorry about these TI-84+ issues but I'm finding it very difficult to replicate them. (I believe you when you say that there's a problem, I'm just baffled as to how they're happening, especially as the problems do not show up on the 83+).
For example, most BASIC dialects have UCASE$ and LCASE$ case-conversion functions. BBC BASIC doesn't, but by using the assembler wrapping up the assembly code into BASIC functions you can add fast implementations to BBC BASIC.
You cannot modify files in the archive (open for writing, deleting, updating and so on). One the one hand this is a safety feature (archived files cannot be tampered with) but there is a technical reason for this. When the calculator unlocks the flash memory it re-enables the TI-OS interrupt handler. This interrupt handler modifies the shadow registers. BBC BASIC uses these registers, and so the TI-OS interrupt handler causes a crash.
It is really compiled. Obviously you need to be careful with the assembler, but it's a powerful feature.Kiruahxh wrote:I've seen how the SORT program is writen, and that's awesome! That Asm could be included that way in your program and still be drawable on the screen... (Is it interpreted or really compiled??)
![Smile :)](./images/smilies/grayscale_smile.gif)
I don't know if that's a good thing or a bad thing.ahudson wrote:I have now downloaded the new version and I am not having any issues so far with the failure to detect programmes in the memory.
![Razz :P](./images/smilies/grayscale_grin.gif)
You can open files for reading transparently from the archive - or, rather, you should be able to. Try archiving one of the sample programs and you should be able to run it within BBC BASIC.One thing that would make it a lot easier would be to let it load programmes from the ROM. I do not know whether or not that s possible since I only have experience in TI-BASIC and TI-Nspire BASIC.
You cannot modify files in the archive (open for writing, deleting, updating and so on). One the one hand this is a safety feature (archived files cannot be tampered with) but there is a technical reason for this. When the calculator unlocks the flash memory it re-enables the TI-OS interrupt handler. This interrupt handler modifies the shadow registers. BBC BASIC uses these registers, and so the TI-OS interrupt handler causes a crash.
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: [News] BBC BASIC Beta Testing - 2008/01/18 r577
I've released a new version. There's not much to write home about, though;
http://www.benryves.com/bin/bbcbasic/download/latest.php will point to the latest version of BBC BASIC.
- Oddly enough, STRING$ was undocumented.
- *BUILDINFO can be used to output some build information.
http://www.benryves.com/bin/bbcbasic/download/latest.php will point to the latest version of BBC BASIC.
Re: [News] BBC BASIC Beta Testing - 2008/01/18 r577
I've got no longer problems to detect files, nor the problem of reduction of the screen size with SIERPINS. And now, half time, SIERPINS runs correctly, but half time it displays odd pixels on screen very fast (and, when you push On, you see triangle...)
The 'e' and 'f' are now accessible...
But, sometimes the MINES programs runs slowly. I thinks that's depending on system variables, but it did not happen with the first release.
I've seen too that the computer editor doesn't take files arguments (The right click, open with of Windows XP opens an empty window)
Does the editor I saw on the first releases still exist??
BUG:
The withdrawal of the USB link makes BBC crash. (r777 18/01)
________________________________
(Test with the 17/01 version, TI 84+)
The 'e' and 'f' are now accessible...
But, sometimes the MINES programs runs slowly. I thinks that's depending on system variables, but it did not happen with the first release.
I've seen too that the computer editor doesn't take files arguments (The right click, open with of Windows XP opens an empty window)
Does the editor I saw on the first releases still exist??
![Very Happy :D](./images/smilies/grayscale_happy.gif)
BUG:
The withdrawal of the USB link makes BBC crash. (r777 18/01)
________________________________
(Test with the 17/01 version, TI 84+)
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: [News] BBC BASIC Beta Testing - 2008/01/18 r577
Hurrah!Kiruahxh wrote:I've got no longer problems to detect files,
![Smile :)](./images/smilies/grayscale_smile.gif)
That sounds like the same bug as before; just a slightly less extreme manifestation. At least it's not accidentally putting the LCD in 6-bit mode (which was what the initial problem was), just writing to the wrong place on the LCD. Escape (On) forces a redraw of the screen (all 768 bytes of the buffer) which is why pressing On to force it to exit displays the triangle correctly. I'll try and fix that (third time lucky).And now, half time, SIERPINS runs correctly, but half time it displays odd pixels on screen very fast (and, when you push On, you see triangle...)
Interesting. Thanks for reporting that, I'll check my speed throttling code.But, sometimes the MINES programs runs slowly. I thinks that's depending on system variables, but it did not happen with the first release.
![Smile :)](./images/smilies/grayscale_smile.gif)
Good idea, I'll add that.I've seen too that the computer editor doesn't take files arguments (The right click, open with of Windows XP opens an empty window)
Which editor is that? The full-screen file editor on the calculator? If so, no, sorry. I could update it, but it would not be able to edit BBC BASIC files as they are tokenised (and it could only handle ASCII files).Does the editor I saw on the first releases still exist??![]()
Ah. I don't know anything about the USB hardware, sorry, so I can't tell you why it does that just yet but that is something I definitely need to try and fix. Could you please try running the following code on your calculator for me? (Just type it on the BBC BASIC command-line):BUG:
The withdrawal of the USB link makes BBC crash. (r777 18/01)
Code: Select all
PUT &5B,0
Code: Select all
PUT &5B,1
Re: [News] BBC BASIC Beta Testing - 2008/01/18 r577
Just editing the first post to indicate that it is indeed 2009, not 2008.
You know your hexadecimal output routine is broken when it displays the character 'G'.