Skip to main content

IAR Embedded Workbench for RL78 5.20

The huge access method

In this section:

The huge method accesses the same memory range as the far method, but without the 64 Kbytes restriction. It is much slower than far accesses if the object is so large that more than one read/write operation is required.

Examples

These examples make huge accesses to memory in different ways:

            mov    es, byte3(x)   ; Access the global variable x.
            mov    a, es:x

            addw   ax, #lwrd(y)   ; Access an entry in the
            movw   hl, ax         ; global array y.
            mov    a, c
            addc   a, #byte3(y)
            mov    es, a
            mov    a, es:[hl]

            mov    a, es:[hl]     ; Access through a pointer.