lpcware

IAP call from assembler

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by IanB on Mon Nov 16 13:21:37 MST 2015
If I wanted to call the IAP (EEPROM write) routine from assembler, is the following correct?

          .equ  iaplocation,0x1fff1ff1
command: .space 20
result: .space 16

Command number, eeprom address, RAM address, number of bytes and clock frequency then go in command, command+4, command+8, command+12 and command+16 respectively

           LDR R0,=command
           LDR R1,=result
           BL iaplocation

Outcomes