Jump to content



Photo
* * * * * 1 votes

Lua On Fx-9860


  • Please log in to reply
44 replies to this topic

#1 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 12 May 2010 - 02:08 PM

Hello,

I'm a french programmer on Algebra FX 2.00.

I'm programming a lua interpretor on Algebra FX 2.00, and it works very fine:

-it is faster than MLC
-each fonction that MLC has, lua has.
-we use floatting point and can calc sqrt, pow, exp,... (we use float)
-it can be as fast than C
-lua is very easy to learn

Some people on the Fx-9860's community would like this interpretor to be programming for Fx-9860.
But it needs a good level in programming, and no Fx-9860's french programmer hve time to do it.

Would someone like to programm this interpretor on Fx-9860 ? (So Fx-9860 and algebra would have a common interpretor and Fx-9860's programms would work on algebra)

I could help the one who would programm it and give my source code.

In lua for Algebra fx2, we can use greys, or whiteandblack, many things.....
  • Viliami likes this

#2 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 15 July 2010 - 11:21 AM

UP!

Now, the Lua on AFX s fast finished. It is 2 time faster than MLC. (and is better than MLC)

A French version is here: http://www.planet-ca...casio.php?cat=3

When I would finished it, I would translate the documentation in english.

I'm making with an other programmer a mario in Lua, and it is fast like the one I maked in C.

Does Nobody want to make it on Fx-9860 ?

#3 Martin

Martin

    Casio Freak

  • Members
  • PipPipPipPip
  • 121 posts
  • Gender:Male
  • Location:Praha
  • Interests:asm on cfx9850

  • Calculators:
    fx82l
    fx7700GB
    cfx9850G
    TI92
    fx9860G SD
    Rheinmetall KEL IIc
    H. W. Ebmeyer - Tarema
    fx cg20

Posted 19 July 2010 - 02:46 PM

Does Nobody want to make it on Fx-9860 ?

How big is the platform dependent part of the code ?

#4 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 19 July 2010 - 06:54 PM

You can download the sources of lua 5.1.4 in the Lua official website.

Some file are changed (the precompiler, the opcodes)

In french (I will soon traduct in english), I explain which files need to be taken from my sources.

And You have to rewrite the functions for the calculator: read a key, draw a sprite, ....

#5 Martin

Martin

    Casio Freak

  • Members
  • PipPipPipPip
  • 121 posts
  • Gender:Male
  • Location:Praha
  • Interests:asm on cfx9850

  • Calculators:
    fx82l
    fx7700GB
    cfx9850G
    TI92
    fx9860G SD
    Rheinmetall KEL IIc
    H. W. Ebmeyer - Tarema
    fx cg20

Posted 21 July 2010 - 10:20 AM

I looked over your sources (for AFX) and I got lost completely here. There are many sources files in luag100\Auxdévellopeurs\*\DM\include\, not only the headers. It seems some of them are not relevant for this project. Another sources seem to be a part of compiler (I mean files copyrighted by Digital Mars or Borland.)
I miss some structure of the sources - some directory with shared sources (of LUA) then header file(s) with platform independent interface for platform dependent routines. Then extra directory for each supported platform ( sources with implementation of platform specific functions ).
Then it would be easy to take one platform as a template and implement 9860 support.

#6 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 22 July 2010 - 08:57 AM

Int the source, I added directories for Algebra fx2's programmers, with my digital mars compiler directorie, and the command line I used to compile lua, because some sources of Algebra fx2's programms have source, but we can't compile them.
Thus I include exactly my directory for someone who would like to compile Lua on Algebra fx2

For the fx-9860's programmer, these directories have no interrest.
I made for the fx-9860's programmer this directory "\Auxdévellopeurs\interpreteur-g85\" which contain the files that this programmer need for his project (but I missed 3 other files which don't need to be modified, but need to be taken)

The official Lua source is platform independent, the fx-9860's programmer should start from it and take some of the files I modified (I added opcodes to speed up Lua)

I can't nowadays traduct in english the directory "\Auxdévellopeurs\interpreteur-g85" but In few days I will do it

#7 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 28 July 2010 - 11:13 AM

Here you can find (in english) everything you need to programm the Lua on fx-9860: http://www.planet-ca...860-20826-3.zip

Next I will traduct the global documentation to programm in Lua for Algebra fx 2 (and thus fx-9860)

#8 kucalc

kucalc

    Casio Maniac

  • Admin
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly<br /><br />Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 28 July 2010 - 07:26 PM

Cool, so it seems you just need someone who could port the code to the fx-9860G? I could give it a try sometime.

#9 Daniel Fernando Hernandez

Daniel Fernando Hernandez

    Newbie

  • Members
  • Pip
  • 1 posts

  • Calculators:
    Casio fx-9860G

Posted 23 August 2010 - 10:12 PM

Hello, i'm fom Argentina.
I'm a new member.
I have a fx-9860g and I make scripts for it. I've noticed that the applications have the extension .G1A:
How can I create a file with this extension? I'm interested on applications programming because I want to create a CAS with Diferentiation, Integration and Limits Calculation. I'm sure that it's too difficult, but I want to know the basics topics to do it.

Thank you

Danny

#10 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 30 August 2010 - 07:54 AM

To show you a bit of the speed that Lua (on Algebra FX2) can have, I made this (bad quality) Video.




The comment is in French and English.

#11 Guest_Guest_sterling_*_*

Guest_Guest_sterling_*_*
  • Guests

Posted 30 August 2010 - 10:31 AM

Just looked into your LUA source yesterday evening.
From what I can read (I can speak French as well), it will be a pretty straightforward porting to 9860-series calculator.

I'm currently occupied with my own FormsFX SDK development. I'll give it a try later this week as soon as my first beta release of FormsFX SDK is finished.

#12 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 31 August 2010 - 08:08 AM

To code Lua on fx-9860, fx-9860 SDK need other function

Maybe a programmer could do these functions:

Scrolling in grey mode (you'll need learn asm for fx-9860)

Print grey sprites bytes per bytes instead of bit per bit (it is faster to draw a bytes per bytes sprites)

#13 Guest_cc_*

Guest_cc_*
  • Guests

Posted 12 April 2011 - 06:39 PM

is anyone going to start this project for the fx-9860?

#14 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 15 April 2011 - 01:39 PM

is anyone currently working on this project? if so, how close to done is it? I soooo want this add-in!!! ;)

Edited by mfischer, 15 April 2011 - 03:14 PM.


#15 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 29 May 2011 - 11:30 AM

The program is being programmed. I've begin to write it with an other french programmer.

The result will be entirely compatible with the one on algebra fx2.

If you want to help, you can help writing some functions like the scrolling functions in grey mode.

#16 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 30 May 2011 - 11:51 PM

I cant program too well in c. if anyone wants to make a Python interpretor or compiler for the 9860, I would be able to make some pretty cool progs for you.

I can do lua (kind of, i used it for web design), and i can probably get better at it if it is made for something portable(like a calc). thank you for starting this, veb!

BTW: do you have an estimated BETA release date?

Edited by mfischer, 31 May 2011 - 03:17 AM.


#17 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 31 May 2011 - 04:35 PM

Hum...

First I must make the two lua core the same ( the two calc don't have the same architecture). That's done, but I want to test a new core patch before saying this part is finished.

When the two core will be finalized ( it could be in a week or a month) , we'll begin to code the librairy for fx9860 (and exept for the scrollings functions, I think this part will not be difficult)

So the first beta release should be in one or two months. Be patient!

We'll have also to make an english documentation, because the one who had to traduce it didn't do it.

#18 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 31 May 2011 - 04:56 PM

I'll try to be patient! When I worked with lua in web applications, I really liked it, so I can't wait to get it on a calc. I was actually expecting you to say something like 6 months, so this is a nice surprise.

#19 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 02 June 2011 - 02:33 PM

I dont have an afx, so i am not sure what features lua for afx has, but if it does not have a Send and Recieve function (for the COMM port) could you put it into the fx one and in a new version of the afx one? I think it would be very useful.

#20 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 08 June 2011 - 05:21 PM

That's possible, but explain me how you want theses functions to be?

#21 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 09 June 2011 - 01:04 AM

It would be nice if the send and recieve functions could send variables and numbers and/or text.

#22 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 28 June 2011 - 09:02 PM

Have you gotten far enough to give us a percentage done?

#23 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 29 June 2011 - 09:48 AM

We are currently stopped by a bug in revolution fx's gray mode.

Most monochrome functions have been coded and most non-graphics functions are done.
We can execute a lua file from the SD card or the storage memory.

The execution speed has been normalised to been globaly like on AFX, but this part will require some work more.

The core isn't totally finished, but it is functional.

#24 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 29 June 2011 - 01:47 PM

Cool!

I hope my bombarding you with ideas isn't annoying, but I thought that it would be nice if you could somehow let us access the internal clock on the calculator (for timing things)--if you're were not already going to do that anyway, of course. ;)

#25 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 30 June 2011 - 03:56 PM

That won't be possible to make timers because Algebra fx and fx 9860 don't have the same time count.
But it could be possible to give the hour, the seconds, ...

#26 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 30 June 2011 - 04:37 PM

Yes, that would be cool.
You know, something like gettime.

Also, will it support sprites?

And what exactly are scrolling grayscales?

I know I must sound like a total newb...

#27 louloux

louloux

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Gender:Male

  • Calculators:
    Graph 85 SD
    Graph 35+
    fx-92

Posted 06 July 2011 - 08:22 AM

Hello.

Veb, me and Eiyeron are programming the Lua.

As veb as said, we are trying to find the bugs with the gray, that comes maybe from SDK's emulator.

You can find the official topics ( in french ) here.

We actually use the gray motor, that you can find here.

If you want to contact me: louloux.



bye, louloux

PS: I don't go so often on this english site

Edited by louloux, 06 July 2011 - 09:02 AM.


#28 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 06 July 2011 - 12:28 PM

I didn't know people used planete-casio anymore! I'll have to check that out with my trusty google translate. :lol:

#29 louloux

louloux

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Gender:Male

  • Calculators:
    Graph 85 SD
    Graph 35+
    fx-92

Posted 07 July 2011 - 06:26 PM

Planet casio is the best ( and maybe the only ) french CASIO forum. But I think it is better than all other CASIO websites !
However the international version is not so good...
But if you speak a bit french, you can go immediately !

bye...
louloux

#30 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 10 July 2011 - 05:16 PM

Well... the only problem is, I don't speak French, so I usually use the intl version. There must be like 3 posts there. LOL. However, like i said google translate helps, its just more work.

#31 Guest_Rokeadvedoche_*

Guest_Rokeadvedoche_*
  • Guests

Posted 14 July 2011 - 11:31 PM

aloha .

#32 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 16 July 2011 - 01:10 AM

You from hawaii?

#33 Eiyeron

Eiyeron

    Newbie

  • Members
  • Pip
  • 10 posts
  • Gender:Male

  • Calculators:
    Graph 35+Usb modded to G75
    Graph 25+
    Graph 100+

Posted 18 July 2011 - 12:01 PM

Hi everyone!
I'm Eiyeron. I'm from too Planète-Casio! :P
I support the LuAFX/LuaFX project since his begins. I'm the fisrt Lua for calc programmer, and I do my best to help the Lua developpment. Here is a video (like outdated!) of the first original LuAFX Game: 4-power [Here]
The project is in beta. But to get synchonous speed on fx-9860/AFX, i must benchmarking.
But, we can now launch many games!

More explanations:
The LuaFX project (for fx-9860) will be the same lua port as LuAFX (AFX). That means LuaFX will support sprites, 5-grayscale mode as his dark blue twin.
I've tried to port MonochomeLib (a VERY good graphic library for PierrotLL) to support the Lua's gray system, but i dunno if tha works... :/

Possessing a G35+ modded to a G75, i've found many bugs, like gray timers, that must be different, contrast bug (darkiest possible :/), and unsupport of the SD menu... So i'm making some function who detects the calculator model.
So...
I must work! Do you want to help makin' benchmarks?

See ya!
Eiyeron
(pardon my english)

#34 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 20 July 2011 - 01:54 PM

WOW! Didn't know that so much work went into this. (I am also getting this to the top before the scammers get to it. LOL

#35 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 24 August 2011 - 03:23 PM

Is this project almost finished?(beta release)

Also, you mentioned "5-scale gray mode". would this include transperency?

#36 veb

veb

    Casio Fan

  • Members
  • PipPip
  • 43 posts

Posted 26 August 2011 - 06:17 PM

Yes, It does support transparency. (and 5 colors are : white, light gray, middle gray, dark gray, black)

Only the Algebra fx has a true dark gray, the others have instead a succession of middle gray and black pixels.

I have some issues with the gray, because the sdk seems to bug. Sometimes it works, and sometimes not (and for a week it doesn't work now)


You'll be able to use images and sprites in gray mode.

If someone wants to help, what I currently need is a function that return a pointer on the begining of a file in ram (where you can begin to write). I know it is possible, because a program on this website, a password reader, can acceed and change the password of such a file.
That will allow to port the latest librairy to fx-9860, the one that allow to read and write from files in ram (to store data, save, ... very fast)

#37 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 26 August 2011 - 06:52 PM

cfxm made password reader, if you PM him he could probably tell you how.

#38 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 30 August 2011 - 03:01 PM

If you guys aren't going to be totally bored with lua, I have an idea. Make lua for prizm but make color commands for the prizm that when the same program is viewed on a black and white screen, is changed to grayscale. (that's just a suggestion to make the prizm compatable with the fx and afx. I can totally understand if you decide not to do that.)

#39 louloux

louloux

    Casio Fan

  • Members
  • PipPip
  • 32 posts
  • Gender:Male

  • Calculators:
    Graph 85 SD
    Graph 35+
    fx-92

Posted 02 September 2011 - 06:23 PM

Erm... good idea, but I think I won't participate to this project ^^. If I won a prizm ( thanks to CASIO 2011 challenge ), I'll begin programming C with color. :rolleyes: But you can do it :greengrin:

Edited by louloux, 02 September 2011 - 06:24 PM.


#40 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 03 September 2011 - 01:26 AM

I dont have a prizm either, I just heard that its easy to convert a fx addin to prizm and vice versa.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users