Posted 12 September 2002 - 11:26 PM
could anyone make a C or ASM program to compile BASIC games into binary and run them (or something like that), possiblely saving the compiled file to a BASIC file, or some such thing... Anyway the point would be that they would run as fast an Add-in (at least I think so) so anyone could make cool games.
Anyway, I'd appreciate some feedback on this Im in the process of learning C++ but I just started so I dont know much yet.
Posted 13 September 2002 - 08:00 AM
im sure that this feat is possible in some regard, but i dont know of a programmer in the community that would be willing to do it. i know that there is a bit of a movement to do some sort of compiler or assembler for the calc, but that still seems rather distant.
- dscoshpe -
Posted 13 September 2002 - 08:19 PM
I mean programming in C is very convinient and almost as fast as ASM (especially when you have most routines made in plain ASM, as I have).
And in BASIC you simply cannot make such things as in C/ASM (example - you are forced to use floating point (very slow) and matrices).
The only good thing about BASIC is that many people knows it, but than again the shortcomeings of BASIC won't let you do anything complex.
The better and easier thing would be make some sort of simplified C compiler (simplier logic, no priority of operands (+,-,*,||,&& etc.).
Anyway BradN was thinking about doing something (as I remember an on-board ASM compiler).
How about it Brad?
Posted 16 September 2002 - 02:32 AM
That causes a couple problems... I'd have to deal with C source code (or DOS drive emulation, I don't know which would be easier), and we'd have to find a way to get NASM RXE'd in order to run. (it's about 200 KB, and that won't fit in ram).
Even if we can get that far, we might need to tweak it a bit to make it fit within the 58k for ram while it runs, or hack up a way to give it more ram at that point (re-locate the casio basic data temporarily perhaps).
QuickView says nasm16.exe needs 188K of ram to run, and that should include data and code, so there's a definite chance of it working.
Posted 16 September 2002 - 05:55 AM
or another chance would be to resize the RAM. i don't know how it is possible at an AFX but it should be possible to remove the old RAM and solder a new bigger RAM-chip in. on the 9850 it seems that you have to make some changes in the OS of the calculator but it could be also possible to do that on tha afx, too.
can somebody send me pictures of an opened afx? thx!
Posted 16 September 2002 - 07:10 AM
I think the big problem will be figuring out how to give input to and get output from NASM, or whatever assembler someone might want to use. Also, one would probably want a better editor... the casio basic editor is not well suited to the task.
There should be plenty of linkers to choose from if we get an assembler working, or we could just make a simple binary loader and skip linking altogether (depending on the complexity of the stuff being made... anything that needs a linker is probably not worth editing on the calc anyway).
Posted 16 September 2002 - 10:25 AM
I can send A86.zip to anyone interested (or you can search the web for it).
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users