decomp-permuter icon indicating copy to clipboard operation
decomp-permuter copied to clipboard

Negation abuse

Open jackson2k2 opened this issue 1 year ago • 0 comments

if (var)
{
    unsigned char regalloc = -regalloc;
}

This is guaranteed to cause chaos on gcc 2.x, especially when used on uninitialized variables. Might be worth implementing. This is needed to match a function in Pokémon Ruby. Not the same as but is similar to ethteck's feature request.

jackson2k2 avatar Sep 18 '23 11:09 jackson2k2