gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Hardware > swi #20 - effect differs on hardware / VBA

#3590 - cosmic4z - Fri Feb 28, 2003 8:11 pm

Hey,

Subject line prety much says it all ...

I am using swi #20 (SWI_NO_RL_UNCOMP_WRAM) to decode some run-length encoded data to WRAM.

It works fine on Visualboy Advance, but just hangs when I run it on GBA hardware.

Any ideas why?

- Jamie

#3592 - cosmic4z - Fri Feb 28, 2003 8:19 pm

Problem Solved !!

CPU is in ARM mode and i was calling the SWI with something like:

swi #20 (works fine on the EMU)

and not

swi #20<<16 (works fine on both EMU and hardware)

- Jamie