Difference between revisions of "Read2"

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'>read2 </span>register, xxxxxxxx</span> * register = Register to store the re...")
 
(No difference)

Latest revision as of 13:23, 23 October 2020

Syntax

Syntax: read2 register, xxxxxxxx

  • register = Register to store the result into
  • xxxxxxxx = Memory address to read from

Use

Reads a 2-byte value from an arbitrary location in memory.

Example


100:     read2 R100, DEADBEEF // Reads a word from address 0xDEADBEEF and stores it into R100.
         ret 

Also see

read1, read4, write1, write2, write4