Difference between revisions of "Write2"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:green'>write2 </span>xxxxxxxx, value</span> * xxxxxxxx = Memory address to write in...")
 
(No difference)

Latest revision as of 14:14, 23 October 2020

Syntax

Syntax: write2 xxxxxxxx, value

  • xxxxxxxx = Memory address to write into
  • value = A value or register containing the value that will be written into memory

Use

Writes a 2-byte value into an arbitrary location in memory.

Example


100:     leti R100, 000000FF
         write2 DEADBEEF, R100 // Writes the value of R100 into 0xDEADBEEF in memory.
         ret 

Also see

read1, read2, read4, write1, write4