Nspire Compatibility

Porting Richard Russell's BBC BASIC (Z80) to the TI-83+ and TI-84+ series calculators.

Moderator: benryves

bwang
New Member
Posts: 25
Joined: Tue 11 Nov, 2008 7:36 pm

Nspire Compatibility

Post 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?
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Nspire Compatibility

Post 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.
bwang
New Member
Posts: 25
Joined: Tue 11 Nov, 2008 7:36 pm

Re: Nspire Compatibility

Post 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?
darkstone knight
New Member
Posts: 67
Joined: Sun 09 Nov, 2008 1:56 pm

Re: Nspire Compatibility

Post by darkstone knight »

sll is the same as scf\ rl

just 4 wasted clock cycles and a byte..
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Nspire Compatibility

Post 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).
Attachments
bbcbasic-z80-ti83p.2009.11.22.r765.zip
BBC BASIC revision 765
(40.9 KiB) Downloaded 875 times
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Re: Nspire Compatibility

Post by tr1p1ea »

Oh snap! Damn NSpire for not including undocumented instructions!
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Nspire Compatibility

Post 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. :(
bwang
New Member
Posts: 25
Joined: Tue 11 Nov, 2008 7:36 pm

Re: Nspire Compatibility

Post by bwang »

It no longer seems to crash (at least everything that didn't work before works now).
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Nspire Compatibility

Post by benryves »

Glad to hear it - let me know if you spot any other oddities! :) Thank you very much!
Galandros
Regular Member
Posts: 88
Joined: Sun 14 Sep, 2008 10:00 am

Re: Nspire Compatibility

Post by Galandros »

Nspire compatibility, great. Good update. :)
toml_12953
New Member
Posts: 8
Joined: Fri 24 Jul, 2009 4:19 am

Re: Nspire Compatibility

Post 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
bwang
New Member
Posts: 25
Joined: Tue 11 Nov, 2008 7:36 pm

Re: Nspire Compatibility

Post by bwang »

The same, since it is running on an 84+ emulator.
bwang
New Member
Posts: 25
Joined: Tue 11 Nov, 2008 7:36 pm

Re: Nspire Compatibility

Post by bwang »

VDU 5 still crashes.
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: Nspire Compatibility

Post 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?
bwang
New Member
Posts: 25
Joined: Tue 11 Nov, 2008 7:36 pm

Re: Nspire Compatibility

Post by bwang »

VDU 5 crashes immediately upon running, as does VDU 5:REPEAT:UNTIL
Post Reply