Back

Using 24-bit values

24-bit values are a bit special. They are actually two values, one 16-bit and one 8-bit, which are stored at two different places in Liero.exe. The syntax LieroHacker uses for 24-bit variables is:

24 Name : 16bit Initialization : 8bit Initialization

24: Specifies that this is a 24-bit variable

Name: The name of the variable

16bit Initialization: The offset to the 16-bit value to use as initialization

8bit Initialization: The offset to the 8-bit value to use as initialization


Example:

24 Worm gravity : 3BDE : 3BE4


To write a 24-bit value to Liero.exe, you need to use two '%x' statements like this:
<3BDE>%a
<3BE4>%^a

%a: Writes the 16-bit lower part of the variable

%^a: Writes the 8-bit upper part of the variable


Next...