I decided to write something on this since I just broke my ass to get this working. I am converting BGR555 4bpp SNES images to 8bpp RGB24 indexed for my QT Program. There are a number of things you need to simply "try"/"know" before getting the EFFING thing to WORK! So, since I've already done the ass-breaking. Let me show you..
STEP 1) Learn how to write a QT Image plugin.. http://doc.qt.nokia.com/qq/qq17-imageio.html
Simply edit the downloadable code so that the read/write functions reflect what you want to do...
Here are the finnicky things you need to know for 8-bit indexed QImages..
After creating a QImage img, you MUST img.setColorCount( int n), or your results will be CORRUPT. setColorCount sets the amount of colors to index with.
Note: you don't have to actually set any colors at this point...
You are now free to index pixels with setPixel(x,y,colorindex);
random ass note: if you want to get the pixel index, use img.pixelIndex(x,y);
random article, hopefully your frustration now = 0 :)
Showing posts with label snes. Show all posts
Showing posts with label snes. Show all posts
Tuesday, February 21, 2012
Monday, September 5, 2011
SNES Memory Mapping..Address Decoding
Super Mario World
Address Decoder 74LS139 Spec. (two independent decoders in chip)
__ __
1G |01\/16| +5V
1A |02 15| 2G
1B |03 14| 2A
1Y0 |04 13| 2B
1Y1 |05 12| 2Y0
1Y2 |06 11| 2Y1
1Y3 |07 10| 2Y2
GND |08 09| 2Y3
------
--------------------------------------
| INPUTS | OUTPUTS |
| ENABLE | SELECT | |
| G | A B | Y0 Y1 Y2 Y3 |
--------------------------------------
| H | X X | H H H H |
| L | L L | L H H H |
| L | H L | H L H H |
| L | L H | H H L H |
| L | H H | H H H L |
--------------------------------------
Datasheet - 74LS139
Thursday, September 1, 2011
USB->LPT and SNES Copiers....
God... I prototyped this -> http://www-user.tu-chemnitz.de/~heha/bastelecke/Rund%20um%20den%20PC/USB2LPT/ul-khs.htm .. didn't work, ended hacking the hell out of a win2000 install for compatibility.. still doesnt work... >_<
I'm doing this so I can get my SNES Copiers to work!!! They use old-ass parallel ports and my laptop does not have that shiz.
So.. I'm beginning to abandon this project.. Besides, the LPT->USB would have been MAD SLOW....
So now something dawned on me..... I saw this
I'm doing this so I can get my SNES Copiers to work!!! They use old-ass parallel ports and my laptop does not have that shiz.
So.. I'm beginning to abandon this project.. Besides, the LPT->USB would have been MAD SLOW....
So now something dawned on me..... I saw this
Look kind of familiar??? Someone made a TSOP adapter similar to my own, except this is perfect for dropping into a SNES DIP36 ROM.
Well, since I already ordered 3 PCBS of my adaptor, I am going to plan on using another 1 of them for this. And hopefully, I can even use my GB cart flasher to flash these chips!!
Future work
---------------------
1) Get a SNES Cart connector. Find an eagle Board layout that uses it..
2) Route GB Cart connector to SNES connector. Use a gameboy Cart and wire all pads -> SNES
Subscribe to:
Posts (Atom)

