Talk:Cheat Code

From Custom Mario Kart
Revision as of 21:59, 4 May 2016 by Chadderz (talk | contribs) (→‎Opcode format and masking.: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Opcode format and masking.

Mainly @Leseratte, you changed the mask from (ba & 0xfe000000) + XXXXXX to ba + (X & 0x1ffffff) which as far as I know is completely wrong. Do you have some evidence that your modification is correct. I get what you're saying about X only being a 25 bit value (because the opcode is 7 bits) but is ba not masked? Is it not (ba & 0xfe000000) + (X & 0x1ffffff)?

Separately, you edited the article to present the opcode as 04/05, but this isn't really the case, as the article makes the point that the opcode is only 7 bits (displayed shifted left one place) so 04 = 05. I see what you mean though, that the first byte of the instruction is 04 or 05, but the 7 bit opcode is the same in each case (0x02) which shift left one place to give 0x04. It's a minor complaint, but it doesn’t make sense currently how it's written (to me), but I have a rather formal view on these things. Perhaps it would be better to reword the article in terms of bytes, but this is a wiki rather than a how-to so I felt a formal encyclopedic approach was more appropriate. Chadderz (talk) 21:59, 4 May 2016 (UTC)