Skip to content
cxd4 edited this page Oct 23, 2015 · 3 revisions

Significance

magic_now is the game code's identifier for Link's magic meter fullness.

Syntax

  • zs $filepath -M 1 -- Prints the current value from the file data.
  • zs $filepath -M 1 (int8_t) -- Interprets the extra string parameter as a whole number (any base) and stores the resulting integer to the relevant bits, if said integer falls within the range of values representable by a sign-extended byte in MIPS (-128 <= x <= +127).

Example Inputs

zs $filepath -M 1 0 # Empty magic meter.
zs $filepath -M 1 1 # Have one magic point.
zs $filepath -M 1 48 # Have max. magic points to fill the basic meter.
zs $filepath -M 1 96 # Have max. magic points to fill the doubled meter.
zs $filepath -M 1 127 # Cause the game to loop filling indefinitely.

Notes

A negative value would seem to have the same effect as just 0.

If more magic points than the maximum limit is registered, drinking Chateau Romani for infinite magic power does not clamp the value. It remains stretched, permanently, outside the width of the magic meter, only blue.

Relevant Bits

file[0x0039]7..0

Derived Cheat Codes

GameShark ROM Version
JAP (1.0)
JAP (1.1)
JAP (GC)
USA (preview)
USA
USA (GC)
EUR (1.0)
EUR (1.1)
EUR (GC)
EUR (debug)