Difference between revisions of "83Plus:BCALLs:80C9"

From WikiTI
Jump to: navigation, search
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By_Name|WriteFlash]]
+
[[Category:83Plus:BCALLs:By_Name:Memory|WriteFlash]] [[Category:83Plus:BCALLs:By_Name|WriteFlash]] [[Category:83Plus:BCALLs:By_Address|80C9 - WriteFlash]]
[[Category:83Plus:BCALLs:By_Address|80C9 - WriteFlash]]
+
[[Category:83Plus:BCALLs:By_Name:Memory|WriteFlash]]
+
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' WriteFlash
 
'''Official Name:''' WriteFlash

Latest revision as of 20:58, 29 March 2005

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.