Search results

  1. R

    GP32 Sprintf Problem

    Hi Drag, You didn't says what the conflicts are between stdio.h and fileio.h, but it could be because gp32.h provides declarations, typedefs etc if stdio.h isn't included- for example, gp32.h might say something like #ifndef FILE #define FILE something #endif which provides a default definition...
  2. R

    Bad Sectors

    Not actually a simple question! SMC has "sectors" (pages) of 512 bytes, but these are arranged as "clusters" (blocks) of 32 pages which makes 16k. If you have a bad page it will take out the whole block so you'll lose 16k. However, the SMC makers knew that there would be some bad blocks, and so...
  3. R

    GP32 Devkitarm Release 12

    pea: err, sorry about that! I saw the news post about spiv's MacOSX conversion of DevKitARM and thought everyone was talking about that :) I don't use windows, so I have no idea how it works...
  4. R

    GP32 Devkitarm Release 12

    pea: It's a MacOS toolchain, so best you don't install it on windows! gcc version 3.4.0 was the first to have the new floating-point library, and it's the standard, so 3.4.4 will definitely have it. For details, have a look at the gcc website
  5. R

    The Truth About The Pencil Trick

    Nice report, reaper79, thanks! I've always thought the pencil trick would be very hit-or-miss, and your research is pretty conclusive. One thing I have to disagree with: why do you (and so many other people) say that overclocking will shorten the CPU's life? I say that's bollocks! Now, there's...
  6. R

    GP32 Calculate Angle Beetween 2 Sprites

    For this job, trigonometry is far too much work :) Look up Bresenham's line drawing algorithm instead. It's simple and extremely fast (it's all integer-based) and will give you exactly what you need to get your enemy bullet going towards your hero :) Here's a link, although google has many more :D
  7. R

    GP32 Uclibc

    Aha! Well, uclibc has the fix, but it was only uclibc that had the problem in the first place :) I, and everyone else that I know, use newlib. I'm not sure what using uclibc over newlib will buy you, and I don't know how to hook uclibc up to gcc. So really, I'm bugger all use to you ;) Newlib...
  8. R

    GP32 Uclibc

    Hmmm, not sure what you're asking here... you want to build uclibc to run on what target? Compiling applications for Win32 with uclibc doesn't make any sense, so I presume you're talking about an embedded platform. In case you're interested, there's a guy at Samsung who found that ARM CPUs run...
  9. R

    GP32 Shifting Bits

    Woah, mr.mirko - that's really bad code! With arm-elf-gcc test.c -S -O3 -o test.S I get .file "test.c" .text .align 2 .global shift_it .type shift_it, %function shift_it: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 @ link register save eliminated. mov...
  10. R

    GP32 Wierd Screen Wrap Bug

    The S3C2400 data sheet says that palette registers must not be updated during ACTIVE phase of the LCD controller, but (like so many other things) it doesn't say why, or what will happen if you break the rule. It was very clever of Reesy to use HBlank instead of VBlank for updating the LCD...
  11. R

    Fps Counter For Next Gpdoom?

    As far as I remember, there already is an FPS counter in gpDoom. Hold down "Select" while you press "Start" to start the game, and see what happens. I know the code's in there, it's just a matter of whether it's enabled in v10 :)
  12. R

    128 / 256 / 512 Mb Ram Upgrades

    Not sure what chips you're referring to, although with MP3 players the memory size people talk about is always the Flash, as a consumer MP3 player really doesn't need a lot of RAM. But anyway, it doesn't matter - the limit here is the CPU. It can address 2 banks of RAM, each a maximum of 32MB...
  13. R

    Vhf Video Transmission

    OK, maybe I'm missing something here: you want to transmit the GP32 screen to a TV? So you can sit in front of your TV and play DrMD or such? If that's the case, I'm afraid you're out of luck. The display signals inside the GP32 are never in a suitable form for output to a television. It's been...
  14. R

    GP32 Gp32 Assembly Programming

    I've found that in my experience, there are very few times when assembler gave me an improvement. For example, in the sound engine in Doom, the mixing is done in assembler because I could make it very tight and fast, but the (much more complex) OPL2 emulation is done in C. In fGen32, the...
  15. R

    GP32 Indexing Into A 16-bit Array For Gamepark Sdk

    At a guess, shouldn't i be set to zero for each row of the sprite? That would mean just moving the "i=0;" to after the "for (y = yScreen...". Just interested, you're in America, why do you use "colour"? Not that I'm complaining, I'm sick of how all Americans mis-spell words like that :D
  16. R

    GP32 4kb Aligned Addresses

    You need to allocate 4k extra, and then move the start of the buffer to the next 4k boundary after its initial start. For example (using dynamic memory allocation, it's pretty much the same with static allocation): unsigned char *pRealBuffer; /* Use char because I get confused with pointer...
  17. R

    GP32 Size Of Gp32 Motherboard? (i Spark An Idea)

    The circuit board inside the GP32 is shaped to fit exactly inside the case. You won't be able to make it any smaller. How were you intending to make a new case, anyway?
  18. R

    Battery Voltage Confusion!

    You are right that the fully-charged voltages of the batteries are different. So well done :) The battery voltage isn't used as it is, though. It is fed to a switching, step-up regulator that produces 3.3V. This is used to power the LCD, RAM, etc, and also feeds two more regulators, one that...
  19. R

    Gp32 Gurus

    Well that's fine for you northern hemisphere beotches, but down here, Christmas is in summer and so of course we sing them then! We'd look damned stupid singing them in August just so that we could wear heavy coats while doing it! Now you've offended me, you insensitive clod! Warning to the...
  20. R

    What Res Are You Running Doom3 At?

    1024x768, medium detail, 2x antialiasing on my Athlon64 3200+, 1GB DDR400, Nvidia FX5900XT. But it's a little jumpy when there's lots of action, I might drop it to 800x600. Antialiasing makes a huge difference to sharp outlines of things which look jagged and can appear to "jitter". This can be...
Back
Top