Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
VRAM safe LZ77 compressor   Message List  
Reply | Forward Message #14754 of 15019 |
Re: [gbadev] VRAM safe LZ77 compressor

Hello Ronald,

Thursday, April 29, 2004, 3:41:38 AM, you wrote:

RCA> Although there are some LZ77 compression sources
RCA> available, does anyone knows what kind of
RCA> modifications (or code) does these compressors need to
RCA> be decompressed directly to VRAM? (like the VRAM safe
RCA> option in the GBA Crusher) .
RCA> I know its related tot the fact that the compressed
RCA> data should not reference to the previous byte in the
RCA> uncompressed data because it may not have been written
RCA> yet by 16-bit, VRAM sized BIOS function.


I just made functions to read/write bytes from/to VRAM

static int ReadVRAM(unsigned char *pData)
{
unsigned char *pRead = (unsigned char*)(((int)pData)&0xfffffffe);
unsigned short tmp = *(unsigned short*)pRead;
if (pRead == pData)
{
return (tmp&0xff);
}

return (tmp>>8);
}


static void WriteVRAM(unsigned char *pDest, int byte)
{
//Get aligned address
unsigned short *pVram = (short*)((int)(pDest)&0xfffffffe);
unsigned short tmp = *pVram;
if ((unsigned char*)pVram==pDest)
{
*pVram = ((tmp&0xff00)+byte);
}
else
{
*pVram = (tmp&0xff)+(byte<<8);
}

}

--
Best regards,
Aleksey mailto:vivid@...





Thu Apr 29, 2004 4:29 pm

vivid_bwteam
Offline Offline
Send Email Send Email

Forward
Message #14754 of 15019 |
Expand Messages Author Sort by Date

Although there are some LZ77 compression sources available, does anyone knows what kind of modifications (or code) does these compressors need to be...
Ronald Chenu Abente
ronald_chenu
Offline Send Email
Apr 29, 2004
12:21 pm

Hello Ronald, Thursday, April 29, 2004, 3:41:38 AM, you wrote: RCA> Although there are some LZ77 compression sources RCA> available, does anyone knows what...
Aleksey Malov
vivid_bwteam
Offline Send Email
Apr 29, 2004
10:13 pm

... Thanks Aleksey!, but I was asking for help with the compressor program (coded for the PC) not with the decompression call to BIOS (in the gba). Sorry if I...
ronald_chenu
Offline Send Email
May 2, 2004
10:24 pm

Hello ronald_chenu, Saturday, May 1, 2004, 10:48:41 PM, you wrote: r> Thanks Aleksey!, but I was asking for help with the compressor program r> (coded for the...
Aleksey N. Malov
vivid_bwteam
Offline Send Email
May 3, 2004
2:49 pm

Im looking if have any 3D render for GBA? something like OpenGL or D3D... Any links? I know that Yeti3D has port to GBA, but dont know how it was made... ...
Danny Angelo Carminat...
danny_cabelo
Offline Send Email
Apr 29, 2004
10:13 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help