Recent content by xorg

  1. X

    GP32 Map File Storage

    heh, you don't need to confuse him on concepts between 'binary' and 'text' format files. They're the same thing. Printable characters aren't magic. A 'letter' as you will, is a character which is 8 bits. 2^8=256. So here you can have 256 values but "0"-"9", "a"-"z", and all other symbols don't...
  2. X

    GP2X Need Gp2x Joystick Help Not Using Sdl Or Other Sdk

    There's two ways to do it... read 4 bytes from /dev/GPIO (the last 2 bytes have the state information, you can play around with it and figure out the mask), or you can read them from the memory registers at 0x1186>>1, 0x1184>>1, and 0x1198>>1 ... when you read it from /dev/GPIO the bits are set...
  3. X

    Your Input Required

    I disagree. As programs get tighter or larger, especially in something as volatile as an emulator, you should not guarantee certain roms work on successive versions. Things can break. You have these people out there who test virtually the whole ROM set and put their findings on the wiki. That...
  4. X

    Sd Card Low Level Format

    dd if=/dev/zero of=/dev/hdX bs=1048576 count=64M where hdX is the device for your sdcard and count is the size of your sdcard in bytes
  5. X

    Sleep Mode Here?

    Something tells me that a program designed to reduce power consumption and simply put the gp2x into a 'sleep mode' shouldn't be 766KB, that's the first red flag right there. Even if it's not malicious, it's down right ridiculous! You can write a 20 lined program to turn the LCD off and poll the...
  6. X

    Replacement For Itoa

    yeah, pretty much sprintf is your best bet. But I'd use snprintf instead.
  7. X

    Dvd Burner

    Make sure you're using a PPC build of Unbutu. Also, you can try Yellowdog. Oh.. and also, hold down the "C" key when booting Unbutu PPC.
  8. X

    Weird Linux Problem

    you're not unmounting it before you issue the next mount.
  9. X

    Double Buffering

    I figured it was something with the compiler, but I have not seen anyone complain about it. I assumed those values in my posted code to make it as less cluttered as possible, i know getting smem_start from the fb is more reliable in regards to dependability in the future. I tried filling the 5...
  10. X

    Double Buffering

    gcc 2.95.3
  11. X

    Double Buffering

    What's wrong with this? I don't see a white screen. I filled the whole area with white, but I'm being pointed to a totally different area of memory. #include <stdint.h> #include <sys/mman.h> #include <fcntl.h> #include <unistd.h> int main(int argc, char** argv) { uint16_t volatile* regs...
Back
Top