Register

Enumeration of BASIC programs (C)

Learn how to program. Code snippets for creating sprites etc. Submit your own or use those of others.
Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Enumeration of BASIC programs (C)

Postby SimonLothar » Mon May 07, 2012 5:32 pm

Purobaz asked how to enumerate BASIC programs on the Prizm:

This is a syscall-implementation:

Code: Select all
/*
fx-9860/fx-CG
0x083A/0x155C: int MCS_GotoInternalItem( char dirtype, unsigned char*item, int direction );
0x083C/0x155E: int MCS_GotoHandleNeighbour( char direction );
0x083E/0x1560: int MCS_GetOpenItem( unsigned char*item );
*/
   // FINDFIRST
   if ( MCS_GotoInternalItem( 1, 0, 1 ) == 0 ){
      while( 1 ){
         // get the BASIC-program's name into work2
         MCSGetOpenItem( (unsigned char*)work2 );
         // FINDNEXT
         if ( MCS_GotoHandleNeighbour( 1 ) != 0 ) break;
      }
   };

The syscalls are documented here: http://www.casiopeia.net/forum/download ... l&df_id=72

It is as well possible to enumerate MAIN MEMORY-items using direct RAM access (possibly leading to OS-dependent code).
I'll be back!

Member
User avatar
Posts: 23
Joined: Fri Apr 20, 2012 6:13 am

Postby Eiyeron » Mon May 07, 2012 7:11 pm

Little by little, Basic get along to C/C++...
ImageImageImage
ImageImage

Member
User avatar
Posts: 33
Joined: Sat Apr 07, 2012 10:08 am
Location: France

Postby Purobaz » Mon May 07, 2012 8:55 pm

Thanks a lot !

Junior Member
Posts: 2
Joined: Fri Oct 26, 2012 11:37 am
Calculators: Casio fx-9860GII

Re: Enumeration of BASIC programs (C)

Postby SMD » Fri Oct 26, 2012 2:33 pm

Hi,

Lot of references made to casio-scene.com, howeer I think the site is down/not available.

Is there any reason/alternative ?
~“Obstacles are challenges for winners and excuses for losers”

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Re: Enumeration of BASIC programs (C)

Postby helder7 » Fri Oct 26, 2012 2:47 pm

This site is Casio Scene.
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Junior Member
User avatar
Posts: 17
Joined: Mon Apr 16, 2012 4:06 pm
Location: France
Calculators: Casio Afx 2.0, Casio fx-9860G SD, Casio fx-CG20

Re: Enumeration of BASIC programs (C)

Postby totoyo » Fri Oct 26, 2012 8:12 pm

Can you change url's with casio-scene in casiopeia ?

Senior Member
Posts: 369
Joined: Tue Jan 03, 2012 11:24 pm
Calculators: Casio Afx 1.0, Casio fx-9860GII SD, Casio Classpad 330, Casio fx-CG20, Casio Classpad fx-CP400

Re: Enumeration of BASIC programs (C)

Postby helder7 » Fri Oct 26, 2012 11:06 pm

totoyo wrote:Can you change url's with casio-scene in casiopeia ?

Change urls in posts? Yes i can but they will return a broken link (404) in this site, because i changed the cms.
SiO2 + CaCO3 ----------> CaSiO3 + CO2

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Enumeration of BASIC programs (C)

Postby SimonLothar » Fri Oct 26, 2012 11:44 pm

I will try to fix the broken links in my posts, if I can still localize the underlying target.
I'll be back!

Senior Member
User avatar
Posts: 605
Joined: Sat Sep 15, 2012 6:59 am
Location: Krautland ****
Calculators: Casio fx-7400GII, Casio fx-7400GII (SH4), Casio fx-9750GII, Casio fx-9750GII (SH4), Casio fx-9860G, Casio fx-9860G SD, Casio fx-9860G Slim, Casio fx-9860GII SD, Casio fx-9860GII SD Power Graphic 2, Casio Classpad 330 plus, Casio fx-CG20, Casio fx-CG50, Casio Classpad fx-CP400

Re: Enumeration of BASIC programs (C)

Postby SimonLothar » Sun Oct 28, 2012 9:47 am

I fixed the broken links in my posts.
If there should be still old links, please report.
I'll be back!

Return to Tutorials & Code Snippets

Who is online

Users browsing this forum: No registered users and 12 guests