Difference between revisions of "LoadAddress"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "= {C1} {{IE_C1}} = {{IE_C1_ex}} {{IE_C1_desc}} Comparison: lw r<span title="Variable" style="color:green">VR</span>, 0x<span title="Immediate Value" style="color:green">VALU...")
 
 
(2 intermediate revisions by one other user not shown)
Line 25: Line 25:
  
 
Warning: Only x00-x7F (words) are valid with this instruction!  
 
Warning: Only x00-x7F (words) are valid with this instruction!  
 +
{{Variables}}
  
  
 
== Byte Length : Byte (unsigned) ==
 
== Byte Length : Byte (unsigned) ==
 
Amount of bytes to load. 001 to 004.
 
Amount of bytes to load. 001 to 004.
 +
 +
 +
== Useful SaveAddress Commands ==
 +
 +
[[Useful SaveAddress Commands]]

Latest revision as of 00:02, 24 June 2023

{C1} LoadAddress

LoadAddress(xVR,xVALU,xVA,LEN)

Loads a value to a given variable. Works essentially the same as lbu/lhu/lw, but using variables.

Comparison: lw rVR, 0xVALU(rVA)


See also: {C2} UnitAddress{C3} WorldUnitAddress{C4} SaveAddress


Variable : Byte (hex)

ID of the Variable which will be written to.

Warning: Only x00-x7F (words) are valid with this instruction!

Click here for the list of Variables


Immediate Value : Half-Word (hex)

Adds this number to the Variable Address to determine which bytes to load.


Variable Address : Byte (hex)

ID of the Variable which holds the main memory address to load from.

Warning: Only x00-x7F (words) are valid with this instruction!

Click here for the list of Variables


Byte Length : Byte (unsigned)

Amount of bytes to load. 001 to 004.


Useful SaveAddress Commands

Useful SaveAddress Commands