83Plus:BCALLs:8054

From WikiTI
Revision as of 05:17, 17 September 2008 by Luby (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Unofficial Name: FlashToRAM2

BCALL Address: 8054

Copy data to RAM from either Flash or RAM.

Inputs

  • A = source page
  • HL = source address
  • DE = destination address
  • BC = number of bytes to copy

Outputs

  • HL advanced by BC bytes
  • DE advanced by BC bytes
  • BC = 0

Destroys

Comments

This is almost exactly equivalent to the OS FlashToRAM.

Note that the high bits of A are masked out appropriately (so, for instance, passing A = 7F will read from the boot page regardless of the hardware version.) Set A = 0 to copy data from the main RAM; you cannot use this routine to copy data from the extra RAM.