Read2

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

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