83Plus:BCALLs:80C9

From WikiTI
Revision as of 21:58, 29 March 2005 by FloppusMaximus (Talk | contribs)

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

Synopsis

Official Name: WriteFlash

BCALL Address: 80C9

Writes data to Flash, but prevent writing to page 1E.

Inputs

  • A = Flash page to write
  • DE = address to write
  • BC = number of bytes to write
  • HL = source address, must be in RAM

Outputs

  • NZ if the byte could not be written

Destroys

  • AF, DE, BC, HL

Comments

Flash must be write enabled first.

Note that you cannot use this to write a 1 bit over a 0.

To write to page 1E, use WriteFlashUnsafe.