User talk:Zeroman

From Glitch City Wiki
Latest comment: 4 months ago by Zeroman in topic Regarding the bootstrap for 4F
Jump to navigation Jump to search

Regarding the bootstrap for 4F

Just a small bit of advice regarding the 4F bootstrap, I've noticed that you jump to the item pack using jp $D322.

For 4F, it is heavily recommended to go for a slightly longer bootstrap in the form of 21 22 D3 E9 for Red/Blue and 21 21 D3 E9 for Yellow (ld hl, $D322/$D321 and jp hl). This is done because nearly all 8F setups use jp hl to perform the final jump to the item bag, meaning that quite a few older item codes assume a register state in hl.

By using a jp hl bootstrap, you can ensure complete compatibility with older item codes.

Feel free to join the GCRI Discord if you'd like to discuss stuff like this further! TimoVM (talk) 20:52, 7 January 2024 (UTC)Reply[reply]

Yeah, I know that, but I just seem to prefer my method (which involves only three bytes instead of four; I prefer to use "($C3, $22 or $21, $D3) at (glitch item's effect pointer)" instead of "($21, $22 or $21, $D3, $E9) at (glitch item's effect pointer)." Thanks for your help, TimoVM.Zeroman (talk) 18:36, 8 January 2024 (UTC)Reply[reply]