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
Yet another LZ77 question (sorry)   Message List  
Reply | Forward Message #13722 of 15019 |
Re: Yet another LZ77 question (sorry)

I've just come across this bridge too. Have you discovered how to
cross it yet?

Thanks,
Dave

--- In gbadev@yahoogroups.com, "krozinsky" <krozinsky@a...> wrote:
> Hello,
>
> Using the code:
> void LZ77UnCompWRAM(u8* inBuffer, u16* outBuffer)
> {
>
> asm volatile("
> mov r0, %0
> mov r1, %1
> swi 0x11
> ":
> /* No output */ :
> "r" (inBuffer) , "r" (outBuffer) :
> "r0", "r1");
> }
>
> I can get the decompresstion to work correctly but it only works on
> the emulator not hardware.
>
> The code is in ROM and not moved to ewram/iwram.
>
> Any suggestions?
>
> Thanks





Thu Feb 6, 2003 2:59 pm

j_dave_mejia
Offline Offline
Send Email Send Email

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

Hello, Using the code: void LZ77UnCompWRAM(u8* inBuffer, u16* outBuffer) { asm volatile(" mov r0, %0 mov r1, %1 swi 0x11 ": /* No output */ : "r" (inBuffer) ,...
krozinsky
Offline Send Email
Nov 11, 2002
9:16 am

I've just come across this bridge too. Have you discovered how to cross it yet? Thanks, Dave...
j_dave_mejia <j_dave_...
j_dave_mejia
Offline Send Email
Feb 6, 2003
3:33 pm

Hello, swi 0x11 will work in thumb but not in arm. I can;t remember how manyzeros you have to add (6 to make it the high byte of a 32bit word?) but I had the...
Ken Rozinsky
krozinsky
Offline Send Email
Feb 6, 2003
4:11 pm

... If you want to decompress to VRAM, you have to use LZ77UnCompVRAM instead (SWI 0x12). The difference between the two is that LZ77UnCompWRAM writes bytes to...
chicao74 <fmoraes@...>
chicao74
Offline Send Email
Feb 7, 2003
3:32 pm

to call a swi in ARM, you shift up 16 bits, i.e. to call swi 11, .arm swi #0x11 << 16 if you're using the official AGB headers, you just call the macros: ...
matthew conte
whatwouldbig...
Offline Send Email
Feb 7, 2003
1:14 am

Hi guys, Matthews suggestion (of shifting up 16 bits) worked for my problem. The code now functions well, but I'm stumped as to why the shifting needed to be...
Dave Mejia
j_dave_mejia
Offline Send Email
Feb 10, 2003
9:13 am

Has anyone had success building and running the current gdb under cygwin for arm-thumb-elf? Insight of course has its Tcl/Tk problems and the current snapshot...
David Welch
dwelchgba
Offline Send Email
Feb 10, 2003
11:28 pm

just ran the compile here on cygwin, it's completed fine for arm-thumb-elf. Emanuel ... Von: David Welch [mailto:gba@...] Gesendet: Dienstag, 11....
Emanuel Schleussinger
ratbert.geo
Offline Send Email
Feb 12, 2003
4:11 pm

Thanks, you know I figured it out, well I ran the cygwin setup and downloaded the latest-greatest versions of stuff (stuff that had changed in all of four...
David Welch
dwelchgba
Offline Send Email
Feb 13, 2003
10:14 pm

//uncompress lz77 data to wram inline void LZ77UnCompWRAM(u32 source, u32 dest) { asm("mov r0, %0\n" "mov r1, %1\n" "swi 0x11\n" ... } //uncompress lz77 data...
Steve Garcia
DeathPing
Offline Send Email
Feb 8, 2003
9:09 pm

Hello, Sorry to keep bringing this up but I'm still having problems with the LZ77UnCompVRAM function. I'm using: gfx2gba -zt -fsrc -x -p mypic.pal mypic.bmp ...
krozinsky <krozinsky@...
krozinsky
Offline Send Email
Feb 19, 2003
9:01 am

The compression in gfx2gba is not VRAM safe. You need a tool that does proper VRAM compatible lz77 compression, sadly I dont know of one. ... ...
Steve Garcia
DeathPing
Offline Send Email
Feb 19, 2003
4:31 pm

This is why my GBA Crusher has a special, VRAM safe version of the LZ77/LZSS compressor. The compressed data can't reference the previous byte in the ...
John Sensebe
bargaintuan
Online Now Send Email
Feb 19, 2003
4:31 pm

Sorry, meant to give the URL in my last post. http://members.cox.net/jsensebe/gba/GBACrusher.zip There is a GUI version and a command-line version in the...
John Sensebe
bargaintuan
Online Now Send Email
Feb 19, 2003
5:03 pm
Advanced

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