Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - z80man

Pages: 1 ... 10 11 [12] 13 14 ... 62
166
Walnut / Walnut Shell
« on: July 03, 2011, 02:32:53 pm »
Walnut Shell
For the Casio Prizm
Introducing the start of the Walnut shell for the Casio Prizm, fx-cg10/20. Walnut is primarily a shell designed to run executable programs written in assembly, C, C++, and any other compatible compiled language. The goal is to make life easier for both the developer and the user.

For the developer:
No longer will you have to deal with the complicated g3a app format which not only limits your application's run time but also imposes heavy security and an over sized header. Instead you now have the gxp format which is far more flexible and smaller. The layout of the header is based off the packet design by Qwerty.55 which allows for changes to be easily made in the future along with allowing the developer to include only what is relevant to their program. The gxp format includes many optional fields that affect the way the program is ran such as physical/virtual execution and flash/ram execution. You can even set the program's origin and the designated cpu, memory, and peripheral clock before running too. With Walnut being heavily based off of popular computer OS's such as Windows, Linux, and Macintosh, commands in the shell are based off a terminal/command line. This terminal is normally invisible for the users sake but allows for many options on data being passed to a program. To allow the efficient development of programs a Walnut SDK is currently being built. It will be paired with the gcc compiler/assembler and will include a program to convert binary files to the gxp format. Later on this will become a gui based program that will easily manage everything from compilation to distribution. To make programs more efficient Walnut will heavily manage the virtual memory for the program. What this will mean is that because of the virtual layout, programs' executable data will lie on a continuous space while the data has its own space which will make the operand and instruction cache faster. Lastly Walnut provides a large number of built in routines that will cover everything from flash to usb and from sound to data compression. There is even a simple syntax for including and calling external libraries which will have the extension of gll.

For the user:
Although Walnut is primarily designed for running programs it also excels at opening many files too. An example is that whenever a picture file is selected, it is automatically sent to the default picture viewer/editor. Or by right clicking you will get a list of programs registered to open that file. If you're used to any major computer platform you will already know how to navigate Walnut and will find that many operations are the same. Selecting files and folders can be done from a simplistic terminal or from a customizable gui. Loading new programs couldn't be easier due to Casio's built in FAT and usb support. Walnut makes use of the FAT format allowing programs and files to be easily stored in folders. Because the Prizm is a calculator and is limited on memory, compression is very important. Over time Walnut will support a variety of mainstream compression techniques to allow the user to keep all their favorite programs at once. Lastly Walnut will help manage organization by storing the proper files in their proper folders. An example would be that a new bmp image would be automatically sent to the pictures folder.

167
Miscellaneous / Re: alberthrocks -> gone for 3 weeks!
« on: June 30, 2011, 12:46:05 am »
* z80man hides his devious plans to destroy the great firewall of China
Oh yeah I love the Chinese government. Communism rules. Hail Mao. Umm
* z80man runs away

Actually I do hope to travel to China in 2013 as long as the government lets me in :P

168
I don't know yet what I'd pick, but whatever it is it would have to play from one of my calcs. Maybe if I make a Prizm music player someday then that will be feasible.

169
Miscellaneous / Re: Marathon
« on: June 29, 2011, 06:52:59 pm »
Just to mention as a long distance runner myself an 8:00 pace marathon will be brutal to accomplish in the little time you have to train. That is about a 3:30 time for the entire marathon. For example my best three mile race time is 17:49 which is about a 5:56 mile pace. Normally I would add somewhere between 1-2 minutes to that mile pace to find the pace for a marathon. With the 1-2 minutes varying based off the experience of the runner. It is hard to judge the projected mile pace of a marathon runner based off their fastest mile time due to the huge difference in pace but normally that is about a 2-3 minute difference. For me my best mile time is 4:59 so adding about 2 minutes gets a 7 minute pace for me or a 3 hour marathon. For most marathon runners you will want to get at least 50 miles of running a week until the last 2 weeks when you should start to scale down. Also when you peak in mileage you should have done a 12-13 mile non-stop run a few times.

When it comes to equipment the most important thing you need are your running shoes. I recommend going to a dedicated running store and let the staff help you find the perfect shoe. There is no ultimate running that works for everyone and you need to find what is right for you based of your step experience, and foot shape. Also everyone needs a reliable watch to keep track of their pace. During a marathon the miles are marked so with a little quick math in your head you can find your pace. Otherwise for clothing you will want nylon shorts and shirts as cotton ones get hot and can leave a rash on longer runs. Equipment wise that is about it and don't bother with all that fancy gear that yo really don't need such as $50 dollar socks that are made from space shuttle material. Lastly stay away from orthotics as they don't do anything good.

For food make sure you eat healthy. Stay away from junk food and soda, but make sure you get plenty of calories as you will need them. I'm usually on a 3000-4000 Calorie diet to get the energy needed for long distance running. I also tend to stay away from energy bars and stuff as they first off taste bad and are no better than glorified candy bars. And for most people don't eat a meal within 2-3 hours of a run or otherwise you will get terrible cramps. Another good thing to include with food is plenty of water to drink. Runners should drink about 2 gallons a day which at first sounds hard, but as long as you have a glass about once an hour you will reach that. Also limit your consumption of sugary drinks like gatorade as they are not good in large quantities. I do recommend drinking gatorade after a long run though because of it's sodium content will make you thirstier and it easier to drink more water. The same thing applies with salty foods. Another drink I also have after hard or long runs is chocolate milk. I'm not sure why, but helps rebuild muscle.

Good luck with the race and make sure you get plenty of rest the night before. Make sure you warm-up and stretch before every run and cool-down and stretch afterwards. Lastly make sure you post your time after the race.  :thumbsup:

170
Casio Calculators / Re: Secret debug menu
« on: June 17, 2011, 03:02:56 pm »
Dumping the flash drive only extracts the upper 16 mb of the flash chip. If the FAT table was reformatted it could be possible though to use the extra 4 mb that the OS doesn't use, but that could cause incompatibility issues in the future. I think the best bet is to either wait for Casio to make an SD card version of the Prizm or we make a usb flash drive application.

171
Casio Calculators / Re: More PRIZM bugs?
« on: June 17, 2011, 02:59:16 pm »
Is that when the screen says NOR flash erase or is this something else.

172
Other / Re: Windows 8
« on: June 15, 2011, 02:26:32 pm »
I'm still a little concerned about this. I happen to have a quite powerful desktop computer that I use for gaming. Unless Windows 8 proves to show greater performance then Windows 7 I won't upgrade. I find this unlikely as Windows 7 was the first Microsoft OS ever to have greater performance than its predecessor. But there is the possibility with this OS being optimized for lower power PC's that performance might be increased. I really don't care for all the fancy UI features that Vista brought in and were luckily dropped when 7 came out. It appears that Windows 8 will also hopefully lower the UI appearance in order to allow lower end PC's run the OS. My last concern I have with Windows 8 is that there appears to be no big technical advantage. Windows Vista allowed Directx 10.0 which only the most recent games use and Windows 7 allowed Directx 11.0 which even fewer games use. I don't see any Directx 12.0 yet nor any other major advances in the OS.

173
Casio Calculators / Re: Prizm Useful Routines -- post here!
« on: June 15, 2011, 02:11:05 pm »
No, it switches the register set that's currently swapped in. The Processor has two register sets in Privileged mode: Regular and banked (which map to r8-r15). The GCC doesn't use the banked registers, so they're free to the ASM programmer to mess with. I doubt the OS uses them much either with the probable exception of error handling.

Needless to say, I love abusing the banked registers  :P
That could be useful for the ex based instructions on my 83+ emulator. I currently store the z80 registers in the r8-r15 range so I would just have to preserve the non-shadowed registers.

174
Casio Calculators / Re: Prizm Useful Routines -- post here!
« on: June 15, 2011, 02:02:05 am »
So the first routine switches the mode from privileged to user it appears. I do have one question, how would you get back to privileged mode then if the instructions to access the SR are disabled?

175
Casio Calculators / Re: Prizm Useful Routines -- post here!
« on: June 15, 2011, 01:48:51 am »
Just as a note you might want to keep your routines C compliant in their register usage that way other C coders can embed them in their programs. Such as on the first make sure you push r8 and r9 on the stack beforehand and on the second routine remember that args are passed in r4-r7 then stack and return data is in r0 and r1. There are a few exceptions when it comes to structs but for the most part it is pretty general. Leaving the routines the way they are now will force C coders to modify them which they may not be experienced enough to do.

176
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 03:26:33 pm »
Don't give your source file and your executable the same name. so do something like

Code: [Select]
prgmHALLO
.HELLO
Disp ("Hello")
Pause 1000
And it sounds like you're compiling to an app. Make sure under options you selected no shell or the shell of your choice.

177
General Calculator Help / Re: Sound in BASIC-programs
« on: June 14, 2011, 03:05:01 pm »
Go to the Axe app. Press compile. Select AXESND. Quit the app. Now when you're on the homescreen enter asm(HELLO

178
Casio Calculators / Re: Compiling stuff for Prizm
« on: June 13, 2011, 02:50:36 pm »
A mini-Prizm-SDK (version 1.08).

New with version 1.08:
Insight: direct access of the serial I/O-pins (measured a 17 kHz symmetric and sharp edged square wave with my scope, though higher frequencies are possible).
BTW: I went through a world of hurt, hunting this down!
Nice what is the address for direct line access. I had tried port Q earlier, but wasn't getting any feedback. I will though be testing the SIOF later because that can play .wav files.

179
Site Feedback and Questions / Re: How can I get a custom title?
« on: June 12, 2011, 04:51:33 pm »
Just added mine. It captures my transformation to the dark light side.

180
Casio Calculators / Re: Compiling stuff for Prizm
« on: June 11, 2011, 06:41:35 pm »
Cool to hear :D

That reminds me, has anyone tried 3D polygons on the Prizm yet? A demo would be nice. :)
I could try in C, but it would take a little while for the code to get running, but if BASIC is good enough I would be more than happy to make a demo of its "speed"

Pages: 1 ... 10 11 [12] 13 14 ... 62