83Plus:BCALLs:80C6

From WikiTI
Jump to: navigation, search

Synopsis

Unofficial Name: WriteAByteSafe

BCALL Address: 80C6

Writes a byte to FlashROM, but will refuse to write to page 1Eh/3Eh/7Eh.

Inputs

  • A = Flash page to write
  • DE = address to write
  • B = byte to write

Outputs

  • NZ if the byte could not be written

Destroys

  • AF, DE, BC, HL
  • OP1

Comments

Flash must be write enabled first.

Note that you cannot use this to write a 1 bit over a 0, nor can you write to the certificate page (1Eh/3Eh/7Eh).