Search results

  1. M

    GP2X Software S-buffering

    Hi, I implemented a s-buffer on the GP32 a few years ago, mostly to get some experience from it and to find out where the bottlenecks are. My conclusion was pretty much that it's really good for polys covering large areas, but when it comes to many small polys the span insertion takes too...
  2. M

    GP2X Blitter Destination With Non %4 Offset?

    Yeah, the same applies for source aswell. And it seems like you first and with ~3 both on the source and the target address. And then apply the fraction. I'm not 100% sure thats the way it should be done, the doc says that: So i think you should keep your adresses unaligned, but set the...
  3. M

    GP2X Blitter - The Code

    User mode? i doubt it, who runs his code in usermore anyway? :D
  4. M

    GP2X Blitter - The Code

    This is what i'm using to clear and invalidate the caches. It first drains the writebuffer, and then it cleans the DCache before invalidating both the ICache and the DCache. It would ofcourse be better to write a snippet of code that could clean only the relevant parts of the DCache. But i use...
  5. M

    GP2X Fixed Vs. Float

    I have done some testing of my own with (long long) calculations with GCC. In some simple cases GCC optimizes the code really really well. I don't know much about GCC internals but of what i have understood GCC can emit small optimized procedures for simple (long long) operations. So small...
  6. M

    Jtag - Thumb State

    Halting the CPU while it's in THUMB mode should not be a problem, the JTAG software should immediately switch it back to ARM mode during the debug session and switch back when done. Unfortunately it's not a completely trivial matter to control an ARM core through JTAG, but the ARM920t Users...
  7. M

    GP2X Debugging The 940t

    Well, writing a GDB stub for the 940 wouldn't be that hard i suppose. Only a matter of setting up some kind of communication, if you want to debug it from the 920 or via UART or smth. Getting that damn TAP controller working would be more fun ofcourse. :D
  8. M

    GP2X Best Ide For Gp2x

    I used MS Visual Studio for ages, until a friend slipped me a copy of SlickEdit. Now i'm hooked, SlickEdit is like MSVS with Visual Assist added, but better. :D SlickEdit costs around $250, so it's almost free anyway. Check out
  9. M

    GP32 Devs Only: What You Working On?

    I'm damn bored at work, so i figured i'd read the forums a little. I got loads of projects as usual. 1) Working on a debugger, currently ~working with the gp32 and gp2x via JTAG. 2) Virtualization of a certain ARM7 based console on the gp2x. 3) Porting my 3D and physics engine to the gp2x. And...
  10. M

    Question On Arm Processor..

    Nope. The gp2x is built around the mmsp2 chip. Which contains an arm920t and an arm940t, along with a bunch of other stuff for video decoding etc.
  11. M

    Gp2x On Windows (or Linux) ?, Is This Possible?

    While an emulator could be useful, there are other ways to execute code on the gp2x, JTAG for example. Simple and fairly quick for smaller applications. There are some cheap wiggler-ish jtag cables out there for around $20, and alot of free software. Another good thing, you won't be bothered...
  12. M

    GP32 Dynamic Linking Libraries Support.

    Or play around with GCC and -fPIC..
  13. M

    GP32 Simple Threading

    Nope, the code is far from clean enough to be released..:D --- mithris
  14. M

    GP32 Simple Threading

    CP15 = CoProcessor 15. Using the address of a function works fine, very simple if the function doesn't take any parameters. Thats pretty much how i did it in my threading lib. If the function does take parameters, you would have to find out how the calling convention works. And, btw, iirc...
  15. M

    GP32 Usb Coms

    Vimacs: tough indeed, Linux you can get to act as a device.. getting a windows machine to act as a USB device sounds trickier indeed. But the USB comm stuff in the GP32 BIOS is pretty simple to use, if one doesn't want to use the GP SDK one can just snag some of the structs from the headers and...
  16. M

    GP32 3d Routines/engines To Use

    Wouldn't that just be a extremely slow version of the painters algorithm? It's not expensive to interpolate Z over the polygon, the expensive part is to read/test/write. --- mithris
  17. M

    GP32 Cel-shading In Gp32

    Hi, when i added cel-shading to my gp32 engine, i did it the ogl way, with a zbuffer and rendering the backfaces black, but also offseting Z for the backface rendering, what will cause the backface polys to intersect with the frontfacing ones and create nice looking outlines. --- mithris
  18. M

    GP32 Swi #5/gpappexecute

    asm volatile(" mov r0, %0 \n" " mov r1, %1 \n" " swi #0x05 \n"::"r"(pPtr1), "r" (pPtr2): "r0", "r1");
  19. M

    GP32 Assembler Instructions

    The way to do it in C. #define rPBDAT (*(volatile unsigned *)0x1560000c) if ( 0 == ( rPBDAT & (1 << 14 ) ) ) { // Do whatever. } in assembler, you would do smth like asm volatile(" mov r0, =0x1560000c \n" " ldr r1, [r0] \n" " tst r1, #(1 << 14) \n" " beq ButtonNotPressed \n" " @ Do...
  20. M

    GP32 Assembler Instructions

    ksmiler: Not working directly on it, been working on the 3D engine lately, so in the end it will benefit the rally thingie.. --- mithris