83Plus:BCALLs:80C9: Difference between revisions
From WikiTI
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
| (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: | |||
[[Category:83Plus:BCALLs: | |||
== Synopsis == | == Synopsis == | ||
'''Official Name:''' WriteFlash | '''Official Name:''' WriteFlash | ||
Latest revision as of 04:58, 30 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.