Page 1 of 2

Nspire Compatibility

Posted: Sat 21 Nov, 2009 2:05 am
by bwang
It seems that BBC Basic is almost compatible with the TI-Nspire in 84+ mode. So far the only issues I've found are that VDU 5 and several PLOT commands crash the Nspire. Is it possible to fix this?

Re: Nspire Compatibility

Posted: Sat 21 Nov, 2009 2:18 am
by benryves
Do you know which instructions/features are not emulated? I don't have an Nspire to test, myself. :-(

There are four uses of sl1, which I believe is an unsupported instruction. Is it generally best to have a special Nspire version, or to use the same on all machines with a few wasted clock cycles in the 83+/84+ versions?

If the BBC BASIC interpreter itself uses unsupported features, there's nothing I can do about that.

Re: Nspire Compatibility

Posted: Sat 21 Nov, 2009 6:34 am
by bwang
It seems that most graphics commands and anything involving TIME$ don't work.
It would probably be best to have an Nspire version to keep things fast. How hard would it be to get rid of those four unsupported instructions?

Re: Nspire Compatibility

Posted: Sat 21 Nov, 2009 2:16 pm
by darkstone knight
sll is the same as scf\ rl

just 4 wasted clock cycles and a byte..

Re: Nspire Compatibility

Posted: Sun 22 Nov, 2009 8:31 pm
by benryves
I have spent a long, hard weekend slaving over the BBC BASIC source code trying to get it to work on the Nspire.
Or, to put it another way, I added .define sl1 scf \ rl to the first source file.

How does this perform? (See attached file).

Re: Nspire Compatibility

Posted: Mon 23 Nov, 2009 12:50 pm
by tr1p1ea
Oh snap! Damn NSpire for not including undocumented instructions!

Re: Nspire Compatibility

Posted: Mon 23 Nov, 2009 4:12 pm
by benryves
Well, I can only assume that's the problem. I don't have an Nspire to test against, which is why I'm hoping for some help in this. :(

Re: Nspire Compatibility

Posted: Tue 24 Nov, 2009 1:01 am
by bwang
It no longer seems to crash (at least everything that didn't work before works now).

Re: Nspire Compatibility

Posted: Tue 24 Nov, 2009 2:07 am
by benryves
Glad to hear it - let me know if you spot any other oddities! :) Thank you very much!

Re: Nspire Compatibility

Posted: Tue 24 Nov, 2009 8:55 pm
by Galandros
Nspire compatibility, great. Good update. :)

Re: Nspire Compatibility

Posted: Wed 02 Dec, 2009 8:08 pm
by toml_12953
Galandros wrote:Nspire compatibility, great. Good update. :)
How much free memory does BBC BASIC have on the Nspire? The same as on the 83?

Tom L

Re: Nspire Compatibility

Posted: Sat 05 Dec, 2009 3:59 am
by bwang
The same, since it is running on an 84+ emulator.

Re: Nspire Compatibility

Posted: Sat 05 Dec, 2009 11:01 pm
by bwang
VDU 5 still crashes.

Re: Nspire Compatibility

Posted: Sat 05 Dec, 2009 11:27 pm
by benryves
How does it crash? Shortly/immediately after running the VDU 5 command, or some time after running another command in VDU 5 mode?

Does

Code: Select all

VDU 5:REPEAT:UNTIL.
crash when running, or only when you press On to break?

Re: Nspire Compatibility

Posted: Sun 06 Dec, 2009 1:09 am
by bwang
VDU 5 crashes immediately upon running, as does VDU 5:REPEAT:UNTIL