Basic Differents On Fx-5800,afx 2,fx-9860G,fx-9750G
Posted 04 March 2013 - 12:11 PM
Is it possible to run a program you wrote for 5800 on 9860 or vice versa?
- MicroPro likes this
Posted 04 March 2013 - 03:24 PM
5800 BASIC code should work on everything. AFX BASIC has some functions that only work on AFXs. fx9860 and fx9750 BASIC code is completely compatible with each other, but there are some commands that won't work on AFXs or 5800s. If your OS on the fx9860/fx9750 is >2.0, then you have string support. This means that the programs that use strings will not work on calcs with an OS version <2.0.
Simple code will usually work on everything, some calcs have specific command that are not compatible with other calcs. FA-124 does a pretty good job of converting back and forth.
Posted 06 March 2013 - 10:00 AM
The 9860 and all its derivatives (including 9750G II) run a LOT faster than the previous calcs.
The AFX has an annoyance that could make your programs incompatible if you don't know how to circumvent it: You can't write the double-arrow (=>) in programs directly, all other calcs can. The workaround involves a link cable to transmit a program containing the symbol from either the computer or a calc the symbol can be typed on (use the hidden CFX compatibility receive mode in the Link Menu, by pressing F4, F5, F6 consecutively instead of F2 for receiving). Then the symbol can be copied around, and it even works perfectly. Or, if you are feeling adventurous, an on-calc hex editor can produce the symbol, too. You just have to get one on it, and that requires a link cable also.
The next difference is the color commands Orange, Green and Blue from the CFX. On the 9860, they change to different line drawing styles (dashed, dotted, ...), on the AFX they are printed in the editor like on the CFX and simply ignored during execution.
On the CFX they change the drawing color. There are a few strange things happening when you draw two or all three colors at the same spot. The calculator remembers which colors are turned on, but only one is shown: Orange overrides Blue and Green, Blue overrides Green. There is a second orange color which is overridden by all normal colors, but you can get that one only with the graphs from the Dyna menu under some circumstances or when hex-editing a calc picture on the computer.
The 9750G shows an even more strange behavior. The program editor shows all three color commands as "@", they work on different buffers like on the other CFX calcs, but because it lacks a color screen, all three are shown as blue.
The last difference between the language variants I know about is the LocusOn and LocusOff commands. These control a setting in the Dyna Menu only present on the CFX calcs with color screen. (This is part of the special circumstances required for the second orange color I wrote about.) For most programmers this setting isn't really useful anyway, so don't worry about it.
The AFX and 9860 seem to have some quirks with Goto and Lbl in long programs, they seem to have a max range, resulting in a "Go Error" when trying to jump further than this max range.
There is no command in the AFX Basic not present on the other calcs. The CAS is a separate thing not accessible from Basic with its own set of commands.
As flyingfish already wrote, the 9860 has quite some commands (which are actually useful) not available on the older calculators: Strings, more random number generation commands, ...
Oh, almost forgot: The CFX has 6 Files of 6 Lists each, the AFX has 6 Files of 20 Lists each, the 9860 has 6 Files of 26 Lists each and allows giving names to the lists.
I didn't even see a 5800 here, so I don't know anything about it. I just have the feeling that it can't even do any graphing stuff.
TL;DR: The calcs were made in this order: 5800 -> CFX and 9750 -> AFX -> 9860. Programs for older calcs should run well on newer calcs (except for timing on 9860 and colors on AFX and 9860), but the other way round is a lot more improbable. With a bit of luck (or careful programming) you can get a program from a newer calc to work on an older one, but there are cases where it will simply not work.
- MicroPro likes this
Posted 06 March 2013 - 02:26 PM
I never knew about a lot of that stuff.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users