| Purpose: | Read one (1), two (2), or four (4) successive BYTEs from EEPROM. | |||
| Assumes: | BYTEs in EEPROM are read from Least Significant to Most Significant. | |||
| The address specified is valid. | ||||
| Passed: | R25:R24 | VOID * | vPtrEEPROM | address of the EEPROM first or only BYTE to read |
| Returns: | R24 | BYTE | bValue | the BYTE at that EEPROM address (OR) |
| R25:R24 | WORD | wValue | the WORD at that EEPROM address (OR) | |
| R25:R24:R23:R22 | ULONG | ulValue | the ULONG at that EEPROM address | |
| Alters: | Only the return value Registers and the FLAGs | |||
| Example: |
|
| Test it: |
|
| Notes: | Specifying an address past the end of physical EEPROM space always returns 0xFF. |
| Dropin: (setup code) |
; Setup for the ReadEEPROM_*() call: ; Passed: R25:R24 VOID * vPtrEE address from which to begin reading ; Returns: R24 BYTE bValue the BYTE at that address ; R25:R24 WORD wValue the WORD at that address ; R25:R24:R23:R22 ULONG ulValue the ULONG at that address ; Alters: Only the Registers returned and the FLAGSs |
| Also see: | The WriteEEPROM_BYTE, WriteEEPROM_WORD, and WriteEEPROM_ULONG System Functions. |