Search results

  1. M

    GP2X A Simple Test App Needed

    Ok, its hard coded for FW 2.0 at the mo, its better but I still loose it after about 2500 frames. asm volatile( "mov r0,%0 \n" "ldr r1,=0x1182 \n" "check_again: \n" "ldrh r2,[r0,r1] \n" "" "mov r3,#0xff \n" "wait: \n" "subs r3,r3,#1 \n" "bne wait \n"...
  2. M

    GP2X A Simple Test App Needed

    No I missed that one, its such a releaf to know i've not gone mad, or worse had duff hardware. I owe you a drink. ;)
  3. M

    GP2X A Simple Test App Needed

    Sorry to revisit this but i've still got this odd bug. So I wondered if anyone has an app thats using the 940 to do the vsync? In a nut shell, in my code if the 940 waits for a vsync and the usb cable is connected the usb stops working, requires a reboot. If I disconnect the usb, run my app...
  4. M

    GP2X 3d Engine Demonstration Challenge

    Thats something i've thought about for a few years on many platforms. The main thing is the divide thats needed, I don't know too much about textured rendering, the code I have I 'nicked' ;) of the net although I understand the idea behind it. If gouraud or other shading methods can be done with...
  5. M

    Deving With Vs 2005 C++

    I used the docs in the Wiki 2005 tut and the sdk linked on that page, works a treat. The Express edition is not the same as the full version, but everything you need is there. If your going to compile for windows too then your also need the Windows SDK. All the info is on the MS site where you...
  6. M

    GP2X Problems With Inline Asm.

    Yup, once I got round my syntax error in the asm block i got lots of errors etc.... Anyway after I did a bit of reading of my books and built a routine I looked at the demo code and its almost identical, except I build a 32bit clear value from my 8 bit clear index. I'm running with a pallatised...
  7. M

    GP2X Problems With Inline Asm.

    Fixed it, in the param list I had an "a" instead of "r" for the dest address. Odd thing is that im sure I read in the gcc docs that "r" was for an address, or maybe I missunderstood. Once I fixed all the errors with the code showed up. It works now, although for some reason not clearing the...
  8. M

    GP2X Problems With Inline Asm.

    Nice catch on the typo, still no joy though. I've also changed the params to local vars and still I get that odd error. Bit more googling may find the answer. Thanks.
  9. M

    GP2X Problems With Inline Asm.

    I'm trying to write a bit of inline asm for clearing the screen. Its not the best code because i'm more intrested at the mo in learning how to do it. :) Anyway, i've getting the error on the current code at the first line, any ideas? asm ( [Says error is on this line.] "mov r3,#76800...
  10. M

    GP2X 3d Engine Demonstration Challenge

    Have you thought about tiling the screen memory and texture memory? I have thought about it a bit, but yet to try it out. Some of the arm instructions look like they will help in generating the addresses, the shift option on the last param is real cool. But I don't know enough about the chip...
  11. M

    GP2X Advanced Optimization Via Profiling With Gcc4

    Yes true, I guess it depends on what the optimiser does with that data. Would have thought that some of the timings would have been different and so caused some errors. Would be intresting to see if it was better if sampled on the gp2x. Just out of intrest, is Gcc4 something you setup your self...
  12. M

    GP2X Advanced Optimization Via Profiling With Gcc4

    Was this boost on the gp2x exec? I'm a bit suprsied that optimiations based on data from x86 build could help an arm build. Do you think that it would make much difference if the data was sampled on the gp2x?
  13. M

    GP2X 3d Engine Demonstration Challenge

    Nice, and the exec is so small, something I need to deal with in mine. I got mine running the the 940 over the weekend but the 3d is bust. I was going to do the T&L on the 940 as well but decided that it may simplify/load balance things better if the T&L is on the 920 and the 940 is just a...
  14. M

    GP2X Ok To Update Wiki Entry For .net2005 Rules File?

    I was going to add my addition to the 2005 rules file for building 940 bin file. I've tweeked it since that last time I posted it to the demo thread. I had a few problems getting the bin conversion to happen after the link. I did cheat and use the pipe operator but this was not 100% reliable...
  15. M

    GP2X Whats The 940 Used For By The Os?

    This is really very odd! The app runs fine and exits ok over and over again from the menu. But as soon as you run it the USB stops working!!! And this only happens if the following lines are used.... //No VSync while(regs16[0x1182>>1]&(1<<4)); //VSync while((regs16[0x1182>>1]&(1<<4)) ==...
  16. M

    GP2X Whats The 940 Used For By The Os?

    Yer, i'm setting the screen mode ok. The only difference is that in this case i'm reading them not writing to them. I've just had a good look at the docs to see if the cache was setup ok, did not want it to be some permission issue. But the code is fine so i'm going to start plucking at straws...
  17. M

    GP2X Whats The 940 Used For By The Os?

    Ha, found the code thats killing my USB connection, but I have not idea why!!!! :huh: If I call this on the 940 bang! If I don't all is fine. The odd thing is that the 940 carrys on running I just loose all connection with the gp2x and need to reboot. I've tried the code inline and it still...
  18. M

    GP2X Whats The 940 Used For By The Os?

    Ok, this is a bit of an odd one. If I leave the 940 running when I exit the app I then can't when I re run the code upload new code and run that. But if I stop the 940 on exit all is well, no idea why this is, but if your using the 940 don't be lazy like me and ctrl+c that app instead of...
  19. M

    GP2X Whats The 940 Used For By The Os?

    Very little at the mo, 32meg -> 33meg and a bit of the last 16megs for the frame buffer. I'm using it to connect to with putty and to transfer my exec's when built. I'm doing some experimentation at the mo and getting some odd results. I think i've done something naughty. ;)
  20. M

    GP2X Whats The 940 Used For By The Os?

    Need to get the source and have a look, ugh.
Back
Top