Search results

  1. R

    GP32 __heapstats In Ads?

    Anyone have any experience of using __heapstats with the ADS compiler? Whilst using Mirko's SDK gives the wonders of malloc() and free(), there seems to be no easy way under ADS to see how much free space there is in the heap. It's annoying that I have to write a bleeding dprint function to...
  2. R

    GP32 An Idea I Came Up With Today

    Have to say I'm with the "Why bother?" squad on this one. Further more I doubt any decent gp32 developer would want to bother. Why on earth would you want to play against another user on the internet with your gp32 via your pc, when you could play the same game on those same PCs with a much...
  3. R

    GP32 Mr.mirkos Sdk Replacement

    Can someone test something for me with Mirko's sdk? Unfortunately I can't as I don't use GCC. Time the following: 1) Create any file 2) Write out 16 bytes worth of any data 3) Write out a further 24 bytes worth of any data 4) Close file On my build of the smc library under ADS, that takes...
  4. R

    GP32 Mr.mirkos Sdk Replacement

    Now I'm pretty sure a big part of the problem is the startup code for ADS. From reading all the documentation I can find, it appears we are missing something important. We don't have functions to copy nonroot (RO and RW) execution regions from load to execution addresses, so basically static...
  5. R

    GP32 Mr.mirkos Sdk Replacement

    I'm having problems, possibly related to the ADS startup code, with global variables not being initialised in the SMC library. The first call of sm_LPTInitDefaultValue() in smInit() finds (s_lBlock[i] != NULL) and (s_pBlock[i] != NULL) either or both being true, yet both should equal NULL if...
  6. R

    GP32 Mr.mirkos Sdk Replacement

    FA: Mirko int GpRectFill16(GPDRAWTAG * gptag,GPDRAWSURFACE * ptgpds,int dx,int dy,int width,int height,int color) { unsigned short *ptr; int x, y; for (x = 0; x < width; x++) { ptr = (unsigned short *)ptgpds->ptbuffer + ((dx + x) * ptgpds->buf_h) + (ptgpds->buf_h - 1 - dy); for (y =...
  7. R

    GP32 Colors Colors Colors

    I would just use 16bit if you need the colours. The only thing that should impact performance in this mode is colour swapping routines (where obviously with 8bit you can just change the colour table), and memory usage is clearly going to be twice as much for storing images in memory and on the...
  8. R

    GP32 Mr.mirkos Sdk Replacement

    Using a combination of an ASM function, and lots of commenting out this and that, I finally traced it down to the calling of GpKeyGetEx() in the official SDK (oh another bug in that thing?) which must have been corrupting registers not being saved. Replaced it with yours, everything works now...
  9. R

    GP32 Mr.mirkos Sdk Replacement

    Using this code under ADS 1.2, I just can't get any interrupts working properly. :/ rCLKCON |= 0x800; (*(volatile unsigned char *)0x15700044) = 0x81; ARMDisableInterrupt(); swi_install_irq(8, mp3HandleInterrupt); ARMEnableInterrupt(); The function I'm trying to call is declared as...
  10. R

    GP32 Mr.mirkos Sdk Replacement

    Extract the file from the bz2 compressed archive (use winrar), then rename it .tar and you should be able to extract the rest from that. Great work Mirko! Just looking at the IRQ source you used for the timer (courtesy of that nice chap Mr Spiv). Any maths to go with rTICINT, can't easily see...
  11. R

    GP32 Mr.mirkos Sdk Replacement

    Alas far too obscure and dirty for me to understand. :) I need simple cut and paste examples that work in C. (Just testing the 32 band graphic equaliser in my mp3 player atm btw for anyone interested, getting close to a beta release.)
  12. R

    GP32 Mr.mirkos Sdk Replacement

    Mirko, any chance of some C sample code for IRQ/DMA routines, for example something that would be useful for being called regularly to update the display. check the audio buffer isn't running out, read controller inputs? :) The equivalent of the GpTimer functions into your SDK would be a great...
  13. R

    New Gp32 Mp3 Player

    I've knocked up a quick GpMad MP3 development page, and will hopefully release a very very early beta in the next fortnight. Atm I'm just sorting out a playback bug (relating to the current play time displayed) and seperating out the audio buffer code. Once that's done it should have some good...
  14. R

    GP32 Mr.mirkos Sdk Replacement

    Mirko, I was wondering if you knew whether your SMC functions are faster than the official SDK? One of the problems I have with reading from the SMC is the speed is so slow, and the functions are blocking so I can't go do something else with the cpu whilst waiting. Is it possible to have a...
  15. R

    New Gp32 Mp3 Player

    Funnily enough it already does that. :) But I want to allow the buttons to be configurable via a config file, so if you don't use certain features and don't want anything bound to the joystick then you could remove them so it didn't accidentally scan around whilst in your pocket. Going to try...
  16. R

    New Gp32 Mp3 Player

    Working on an MP3 player alternative myself (alas no OGG output, if you can find a good library for it I might add it later) which already does things the official one doesn't (for example actually plays all mp3s I've got properly regardless of bitrate, and does seeking back/forward which is...
  17. R

    Authentication Problem?

    Thanks Craig, heh. The first url is useless, but the IRC channel is definitely the place to go. Very nice helpful people on it who have sorted me out.
  18. R

    Authentication Problem?

    Just got mine today as well and have exactly the same problem. :/
Back
Top