* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: FXSH : FiXos SHell  (Read 7175 times)

0 Members and 1 Guest are viewing this topic.

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
FXSH : FiXos SHell
« on: March 03, 2015, 10:41:55 am »
Hello everyone. I'm finally on something and that is quite good. (-_(//));

I'm on with FiXos development as we finally have something like a more-or-less working libc around there for FiXos and thus started to program something that would work a shell on a terminal.

Here's the code : FXSH

Here's the technical specs at this moment :
- it can read up to 16 elements of 128 bytes (even though the VT buffer can read up to 128/256 bytes at this moment)
- it support quoting and double quoting
- built-in support : ls and cd are somewhat done. They lack some features, like cd .. but they gladly work)
- environment var management. It even pushed the libc to support them!

And here what's planned :
- no programming is currently planned but variables should be. At least to tweak things like PATH. It should be simple to parse, heh.
- As a needed feature, I'll add case switching in the VT in the kernel (TI-like, probably). At this moment, one can only write caps and I had to cheat to add a working ls as LS.
- PATH management. As for now, one could execute a program if it could reach the file, but without caps...
- neat source file structure that could be even improved.

- better argument storage. I don't know at all how I will store the arguments but I'd like to make a version without argument size or command line limits.
- Should the shell work on other *nix I'd be very happy . It works quite correctly on Cygwin!bash.


« Last Edit: March 06, 2015, 10:06:47 pm by Eiyeron »


  • Calculators owned: A lot.

Offline Snektron

  • Lvl 69 Russian Snake
  • CodeWalrus Staff
  • Super User
  • Topic Management
  • Join Date: Dec 2014
  • Location: Netherlands
  • Posts: 3165
  • Post Rating Ratio: +32/-0
  • SSSssssss.....
    • RobinDeWalvis
    • Kzyrox
    • RobinDeWalvis
    • quantuminfinity
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #1 on: March 03, 2015, 12:17:50 pm »
Looks awesome :D
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #2 on: March 03, 2015, 04:04:42 pm »
Oh thanks for the cross-post. :D Hopefully this gets this project more known in the community. :) I am glad it is still progressing. Of course I am not much into the technical stuff of it because I have no clue what that stuff does, but a custom OS would definitively be nice on this calculator series. Do you think dual-booting would be possible for people who still want to use the Casio OS for school? That said, I don't think getting a second calculator is a serious problem because you can easily get a FX-9750Gii model for $50 in North America and they are sometimes on sale. I myself plan to get one at Target if they still have any in stock because they are 25% off right now.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #3 on: March 03, 2015, 05:56:36 pm »
Which cross-post? This is the original post! :p

At the moment, you can only run the kernel by hotswapping the OS with the bootloader. OS overriding is not supported at all and Kris doesn't has this in mind, so yeah, don't worry about keeping Casio's OS safe.  Make care of buying a SH3 so, we don't have any SH4 in hands and thus can't program for them at all. (I would try to port the kernel for them if I had one).

Looks awesome :D

Thanks!
  • Calculators owned: A lot.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #4 on: March 03, 2015, 05:57:23 pm »
Oh I thought this was a cross-post from Planète-Casio, since that's where FiXoS official thread is located. ???


Also are the SH4 FX-9750Gii calcs the white ones?

http://cdn.toptenreviews.com/rev/scrn/large/50058-fx-9750gii1.jpg
« Last Edit: March 03, 2015, 05:59:15 pm by DJ Omnimaga »
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #5 on: March 03, 2015, 05:58:33 pm »
Yeah, but that project is not FiXos! :p FiXos is not really my project, I wouldn't post it in my project section.
  • Calculators owned: A lot.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #6 on: March 03, 2015, 06:01:44 pm »
Oh right, my bad, I mixed the project up with FiXoS. And I thought you were co-author of FiXoS anyway. :P



Also are the SH4 FX-9750Gii calcs the white ones?

http://cdn.toptenreviews.com/rev/scrn/large/50058-fx-9750gii1.jpg

That's what Target has, and all Canadian stores opened their doors in 2013 and 2014, so I doubt they carried stock from several years ago, but we never know.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #7 on: March 03, 2015, 06:07:43 pm »
I don't think so, they seems to be the equivalent to my Graph35+. Do you know which OS they're bundled with? If it's 2.02 or higher, you'll end up probably with a SH4. On Sh4 there is to "USB Power Graphic 2" under the screen but that's not for every calcs.

EDIT : If you know their prices and the price of a shipping to France, I could be interrested into getting a SH4 if that's not too expensive.
« Last Edit: March 03, 2015, 06:09:30 pm by Eiyeron »
  • Calculators owned: A lot.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #8 on: March 03, 2015, 06:13:54 pm »
I don't know, because they're factory-sealed and brand new, so I won't know until I opened the calculator package, and I can't get a refund if it's the wrong calc because all Target stores in Canada are closing so they no longer accept any refund. Also the USB Power Graphics 2 thing is only in France I think, because I have never seen a FX-9750Gii with it, let alone a FX-9860GII.
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #9 on: March 03, 2015, 06:16:57 pm »
So, heh, you have three outcomes:
- DOn't buy it
- Sh3 : YOu'll be able to fiddle with FXSH as soon as you got to how to tranfer files, the kernel, setitng file, bootloader and the shell
- SH4 : You'll have to wait until we get a decent architecture thing going on. Sorry.
  • Calculators owned: A lot.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #10 on: March 03, 2015, 06:21:02 pm »
Actually if I end up with a SH4 then it could be at my advantage, right? Because my current FX-9860G is a SH3, so by getting a SH4 9750Gii I would then have both processors. Unless your program is 9750Gii-only (which would be strange since we can flash those calcs to run 9860G OSes)?
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #11 on: March 03, 2015, 06:27:27 pm »
Hey, but you have a fx9860! DO you have a recent OS? Can you launch addins? Have you tested FiXos yet? And no, Kris has a similar calc and I compile only for SH3, not a specific model.

EDIT : work is done on my side to make the keyboard (the calculator's keys) support switching cases. I just opted for a simple toggler : F6. I'm able now to LS various places in the FS now!



EDIT 2 : Ti-like Shift(2nd)/Alpha system implemented. I need to ask the boss on how to share the keyboard state to other devices/structures. Maybe an ioctl...
« Last Edit: March 03, 2015, 08:11:00 pm by Eiyeron »
  • Calculators owned: A lot.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #12 on: March 04, 2015, 07:10:16 pm »
I would prefer not using FiXoS on my 9860G yet since it's incomplete and I spent $90 on that calc. Plus I have an history of having connectivity issues with FA-124 so I am worried about being unable to get my old OS back. I got OS 2.00 atm btw. I need to upgrade :P. The extra calc I got now was bought mostly as guinea pig and stuff. I guess I'll see, though. If the new calc seems faster then I might instead use the other for guinea pig purposes.


That is the calc in question, by the way, which I got for $37.50 before taxes



  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline Duke "Tape" Eiyeron

  • Urist McEiyolobster
  • Super User
  • Join Date: Nov 2014
  • Location: (V)(-_(//));(V)
  • Posts: 1636
  • Post Rating Ratio: +11/-2
  • Fanciest Walrus of the oceans.
    • @@Eiyeron
    • Eiyeron
    • /u/Eiyeron
    • Eiyeron
    • Rétro-Actif : Rétro/Prog/Blog
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #13 on: March 04, 2015, 08:51:05 pm »
FiXos is globally inoffensive (pun INTENDED), as no write on flash is done. (There is nano chance to override a bad part of the RAM backup and Casio OS would take it as normal backup to load and crash the system but with all the fiddling I did nothing happened yet)
  • Calculators owned: A lot.

Online xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18727
  • Post Rating Ratio: +95/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: FXSH : FiXos SHell
« Reply #14 on: March 06, 2015, 05:41:42 am »
Ah ok, but how do you send the Casio OS back if you want to get rid of FiXos? And what if FA-124 stops detecting the calculator?
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games