CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 150 users online: 3 members, 136 guests and 11 bots.
Members: DavidGriswoldHH, MrDew25.
Bots: MSN/Bing (1), Spinn3r (2), Googlebot (8).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    Goto page 1, 2  Next
View previous topic :: View next topic  
Author Message
Purobaz


Advanced Newbie


Joined: 26 Nov 2011
Posts: 67
Location: France

Posted: 04 May 2012 07:02:56 am    Post subject: [Prizm] PRGM2color, improve Casio Basic programs

PRGM2color is an adaptation on Prizm, of this projet begun by Pierrotll.

PRGM2 starts a timer, and launches a Casio Basic program.
The timer checks the value of 'F' variable. If it's non-null, the timer calls the function corresponding to the 'F' value. It allows to use fast functions in a basic program.

Not to stop the timer can cause the calc freeze when you exit PRGM2. Keys [AC] or [MENU], or the function 15 stop the timer (so you can't use [MENU] in your own program).


Download here, the .zip contains PRGM2.g3a, its sources and two examples (DRAWING and SERIAL).

This is a beta, with maybe some bugs. I need help to improve graphic functions.
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 04 May 2012 08:47:57 am    Post subject:

Oh, fascinating. If and when I ever get around to writing a Doors CS port for the Prizm, I think I definitely need to include a hook for this sort of thing for Prizm BASIC programs. Of course, that also depends on me discovering how to run Prizm BASIC programs from C...
_________________


Back to top
helder7


Member


Joined: 23 Dec 2011
Posts: 136

Posted: 04 May 2012 12:40:45 pm    Post subject:

great!
@Kerm maybe you can do a small shell to rename, move, create files/folders?
_________________
SiO2 + CaCO3 ----------> CaSiO3 + CO2
Back to top
gbl08ma


Expert


Joined: 26 Nov 2011
Posts: 734
Location: Portugal

Posted: 04 May 2012 12:48:47 pm    Post subject:

Yes, such a shell, even if very simple, would be really appreciated. Something small, preferably done in a way people can easily mess with the source to extend it and add new functionality. Smile
_________________
Add-ins for the Casio Prizm (JPEG and PNG Viewer, Eigenmath port and more!) | tiny URL, email address and image shortener
Back to top
seana11


Super-Expert


Joined: 23 May 2011
Posts: 837
Location: Right behind you

Posted: 04 May 2012 09:21:30 pm    Post subject:

gbl08ma wrote:
Yes, such a shell, even if very simple, would be really appreciated. Something small, preferably done in a way people can easily mess with the source to extend it and add new functionality. :)


DCS sans mouse gogogo
Back to top
Purobaz


Advanced Newbie


Joined: 26 Nov 2011
Posts: 67
Location: France

Posted: 05 May 2012 10:44:13 am    Post subject:

helder7 wrote:
maybe you can do a small shell to rename, move, create files/folders?


I'll try to do this.

About a full shell on Prizm, I don't think it's possible, according to what has already been done on fx-9860G.
I think the fx-9860G program which is the nearest to a shell is Loader, created by SimLo. Loader copies a program-package from storage memory to main memory and then runs the program.
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 05 May 2012 10:47:01 am    Post subject:

Not possible? Why don't you think that a full shell is possible? Or should I say, what features of a shell do you not think are possible? C/ASM program loading? BASIC program execution? File management?
_________________


Back to top
Purobaz


Advanced Newbie


Joined: 26 Nov 2011
Posts: 67
Location: France

Posted: 05 May 2012 10:54:51 am    Post subject:

BASIC program execution from the storage memory, according to what I hear on DCS.

I'm going to find out about DCS.
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 05 May 2012 11:02:52 am    Post subject:

gbl08ma wrote:
Yes, such a shell, even if very simple, would be really appreciated. Something small, preferably done in a way people can easily mess with the source to extend it and add new functionality. Smile
If I had ever had to time to re-do the z80 (TI-83+/84+) Doors CS, one of the primary features I think I would have added is a lot of expandability and modularity. I share and understand your sentiment on that being an important part of shells.
_________________


Back to top
helder7


Member


Joined: 23 Dec 2011
Posts: 136

Posted: 05 May 2012 12:16:09 pm    Post subject:

Purobaz wrote:

I'll try to do this.

About a full shell on Prizm, I don't think it's possible, according to what has already been done on fx-9860G.
I think the fx-9860G program which is the nearest to a shell is Loader, created by SimLo. Loader copies a program-package from storage memory to main memory and then runs the program.

the best "shell" for fx9860 is edit 1.51 (open source), it also uses bfile syscalls, i dont know if is the same as prizm
_________________
SiO2 + CaCO3 ----------> CaSiO3 + CO2
Back to top
DJ_O


Former Omnimaga admin


Joined: 18 Mar 2005
Posts: 1843
Location: Quebec (Canada)

Posted: 05 May 2012 10:59:25 pm    Post subject:

That lib is promising. If you add more graphical capabilities, sprites, tilemapping and rectangles would be more than welcome. Also what would be cool is if it had the same thing most newer TI-84+ libs got: Allowing to copy a program file from the storage memory to the RAM as well as deleting programs from the RAM (such as that copied program). This would allow even larger BASIC games without having to split them in chapters.

Now if only I had the motivation to make this true D: :

_________________
Retired Omnimaga founder

Bandcamp|FB|Youtube|Twitter
Back to top
Purobaz


Advanced Newbie


Joined: 26 Nov 2011
Posts: 67
Location: France

Posted: 06 May 2012 04:31:32 am    Post subject:

Purobaz wrote:
helder7 wrote:
maybe you can do a small shell to rename, move, create files/folders?


I'll try to do this.


I did it yesterday, but the Bfile syscalls are very slow and a bit bugged.
The program runs only on the emulator and it is not safe.

So I'm going to stop this projet, and concentrate my efforts on PRGM2color.
I want to improve graphic functions and add a bitmap function.
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 06 May 2012 12:00:14 pm    Post subject:

DJ_O: Why not write it in Prizm C? Our current PrizmSDK and routines could handle that sort of tilemapping easily.
_________________


Back to top
DJ_O


Former Omnimaga admin


Joined: 18 Mar 2005
Posts: 1843
Location: Quebec (Canada)

Posted: 06 May 2012 02:15:11 pm    Post subject:

I personally do not have any intention to learn any new language within the next few years except maybe BASIC-based ones editable on-calc. I guess if someone decides to create this game remake, then he could do it in C, though.
_________________
Retired Omnimaga founder

Bandcamp|FB|Youtube|Twitter
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 07 May 2012 10:15:43 am    Post subject:

Fair enough. Anyway, I like the idea that we'll be building up a hybrid BASIC library of sorts for the Prizm, and I hope we can all suggest possible functions to be included. Hopefully it will end up being a bit less kludgy than the hybrid libraries we have for the TIs, not that the libraries aren't great.
_________________


Back to top
AHelper


R.I.P. TinyBlub 10/1/14


Joined: 30 Jan 2011
Posts: 2152
Location: WHAT

Posted: 07 May 2012 10:19:48 am    Post subject:

(Not quite on topic, but just wondering from the above post) Are we able to write files and execute them on the prizm? Such as a compiled language that makes addins on the Prizm.
_________________
ᴥ Doggy! Jenkins, it will build your life!

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
< KermM> Dearest TI-Connect: Please stop being such an inveterate piece of garbage. Love, Christopher.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 07 May 2012 10:23:39 am    Post subject:

AHelper wrote:
(Not quite on topic, but just wondering from the above post) Are we able to write files and execute them on the prizm? Such as a compiled language that makes addins on the Prizm.
We are able to write to the filesystem. We can load code and execute it in-place, but we don't yet have a true program loader that can load programs into a full virtual memory address space and start executing them.
_________________


Back to top
AHelper


R.I.P. TinyBlub 10/1/14


Joined: 30 Jan 2011
Posts: 2152
Location: WHAT

Posted: 07 May 2012 10:30:42 am    Post subject:

I meant make an on-calc compiler for the prizm. Instead of taking the source and compiling it to an addin on a PC, you would compile it to a .g3a on the prizm. I don't mean have a program to launch, just a program to make legitimate addins.
_________________
ᴥ Doggy! Jenkins, it will build your life!

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
< KermM> Dearest TI-Connect: Please stop being such an inveterate piece of garbage. Love, Christopher.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 59472

Posted: 07 May 2012 10:33:56 am    Post subject:

AHelper wrote:
I meant make an on-calc compiler for the prizm. Instead of taking the source and compiling it to an addin on a PC, you would compile it to a .g3a on the prizm. I don't mean have a program to launch, just a program to make legitimate addins.
That's a good question. As far as I know, there's no sort of execute (+x) flag on items in the Prizm's FAT filesystem, and we can certainly write wherever we want with the BFile calls, so yes, I'd say what you suggest is feasible with our current knowledge and tools.
_________________


Back to top
AHelper


R.I.P. TinyBlub 10/1/14


Joined: 30 Jan 2011
Posts: 2152
Location: WHAT

Posted: 07 May 2012 10:36:44 am    Post subject:

See, I was wondering if an Addin that compiles basic programs to an Addin (BBC Basic?) would be easier and more beneficial than an addin that watches basic code execute. I only say this as the Prizm's basic interpreter is slow.
_________________
ᴥ Doggy! Jenkins, it will build your life!

<BrandonW> "You don't even want to know what TI Connect does when it's just detecting your calculator...It ACTUALLY ERASES THE SWAP SECTOR on every communication attempt...EVERY SINGLE ATTEMPT...Yes, TI Connect will kill your calculator..What do I have to do to get your attention?!....Such a bloated protocol."
< KermM> Dearest TI-Connect: Please stop being such an inveterate piece of garbage. Love, Christopher.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

Go to Registration page
    Goto page 1, 2  Next
View previous topic :: View next topic  
Page 1 of 2 All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2014 Cemetech & Kerm Martian :: Page Execution Time: 0.045211 seconds.