What the hell is this?

Started by wiiztec, December 14, 2009, 03:34:15 AM

Previous topic - Next topic

wiiztec

vpkuhum v1,v0,v3

That's the ASM instruction I found when I set a breakpoint for the setting of the camera hight limit when a level is loaded in Boom Blox Bash Party

what the hell are v registers, varible? do they have something to do with save data? is there a program that can list them?
If there's any code at all that you want to be button activated, or even able to toggle on & off, and I have the game, just PM me and I'll make it happen

Almas

A google search implies that the command does the following:

Take the odd-numbered bits from registers 0 and 3 (counting from 0, so we take 1,3,5,...,31) to shorten our two 32-bit words into two 16-bit half words. Then concatenate them and place the result in v1. The result can later be unpacked.

This code uses what seems to be an expansion to the normal PPC processor, which uses Vector Registers. These are designed for a large capacity, to perform more calculations simultaneously.

Note that by using the odd numbered bits, we skip the first bit, which is used to denote the sign of the number (e.g. positive/negative).