Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
24 May, 2013, 20:57:10 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Debugging stuff for Prizm -  (Read 988 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
MPoupe
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 22 May, 2013, 10:08:17
Date Registered: 04 January, 2011, 18:41:18
Posts: 161


Topic starter
Total Post Ratings: +28

View Profile WWW
« on: 11 July, 2011, 13:48:20 »
+2

Hello,
you already know, that it is very hard to debug an application for Casio cg 10/20 (Prizm).
We have 3 SDKs, but no debugger :-(
I would like to introduce you simple, but usable idea - workaround. One can write calculator's simulator - not the complete emulator, but just reimplementation of important syscalls to another platform, where debugger is available. I did a try and this is a result.
I created a tiny enviroment, with console window (for debug messages), display window and a keyboard window. This environment should simulate calculator's behavior. Now I have display (draw to VRAM and then call Bdisp_PutDisp_DD()), keyboard (only PRGM_GetKey() yet) and few another syscalls.

Please extract the attachment,try the puzzle.exe and puzzle.g3a (simple game) and tell me, what do you think about this. I can boast - I needed only 1 rebuild for Prizm platform, all bugs (except the last :-) )were debugged on this environment.

Few notes to the game - it is a simple puzzle, one has to move numbers to get them in the correct order. Numbers on correct position are green, red otherwise. Use arrows to move number box to the wished direction. The game will not quit after success, it is in very early stage.

Few notes to the simulator - to press key, click on it on the keyboard window. Computer keyboard is ignored (in this version). The display doesn't refresh when the display window is hidden and then restored. Right-click on it twice will workaround it. Image of the keyboard (tastatur.bmp) must be in the same folder as the simulator.
BTW: right click on the display switches zoom of the display between 1x and 2x

Sorry, but I did not attach the source code, it is really mess now. Needs some time yet ;-)


* puzzle.gif (32.39 KB, 392x632 - viewed 406 times.)
* puzzle.zip (40 KB - downloaded 62 times.)

* cgpuzzle.jpg (26.36 KB, 381x337 - viewed 384 times.)
« Last Edit: 13 July, 2011, 09:28:53 by MPoupe » Logged
MPoupe
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 22 May, 2013, 10:08:17
Date Registered: 04 January, 2011, 18:41:18
Posts: 161


Topic starter
Total Post Ratings: +28

View Profile WWW
« Reply #1 on: 14 July, 2011, 17:02:31 »
0

No comment at all... :-(
Logged
boot2490
LV7 Elite (Next: 700)
*******
Offline Offline

Gender: Male
Last Login: 28 April, 2013, 05:54:45
Date Registered: 27 February, 2011, 07:39:51
Location: Pittsburgh, PA
Posts: 605


Total Post Ratings: +18

View Profile WWW
« Reply #2 on: 29 September, 2011, 19:34:07 »
0

Comment at all!
That looks good.
Logged

I'm not worried about SOPA creating censorship, that will not stand for long. I'm worried that they'll succeed in stopping piracy!

Spoiler for Signature, updated march 23, 11:28 PM EST:















An useful tool!

PM me if you need some help. I am glad to be of assistance and part of the TI Communnity.
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 19:10:11
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50232


Total Post Ratings: +2615

View Profile WWW
« Reply #3 on: 08 October, 2011, 03:33:50 »
0

Hmm nice, I saw this before but didn't remember the thread. Smiley
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
seana11
LV1 Newcomer (Next: 20)
*
Offline Offline

Gender: Male
Last Login: 02 March, 2013, 16:16:44
Date Registered: 06 September, 2011, 00:47:22
Location: Well, the sign says: "You are here"...
Posts: 15


Total Post Ratings: +4

View Profile
« Reply #4 on: 23 July, 2012, 01:12:40 »
0

That's really cool; do you have a list of all syscalls that are implemented?  Will there be a linux port?
Logged
MPoupe
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 22 May, 2013, 10:08:17
Date Registered: 04 January, 2011, 18:41:18
Posts: 161


Topic starter
Total Post Ratings: +28

View Profile WWW
« Reply #5 on: 23 July, 2012, 15:38:26 »
0

That's really cool; do you have a list of all syscalls that are implemented?  Will there be a linux port?
Look in the header for the syscall list.
Currently I debug in Visual Studio, it is much comfortable than in gdb. I tried Eclipse, but it seems Eclipse is not compatible with me :-)
So currently I do not plan to port it to Linux, but is should be easy.
Logged
MPoupe
LV4 Regular (Next: 200)
****
Offline Offline

Last Login: 22 May, 2013, 10:08:17
Date Registered: 04 January, 2011, 18:41:18
Posts: 161


Topic starter
Total Post Ratings: +28

View Profile WWW
« Reply #6 on: 23 July, 2012, 18:42:11 »
0

Quick note:
I released the simulator sources with cgplayer (at http://martin.poupe.org/casio/cgplayer/index.html )
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.472 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.