Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<LPC214X.h>
- int main(){
- --asm{
- MOV R4, #0x05
- MOV R0, #40000000
- MOV R1, #0x00
- STR R1, [R0],#0x04
- MOV R2, #0x01
- STR R2, [R0]
- abc:
- // ADD R0,R0,#0x04
- LDR R3, [R0], #0x04
- ADD R2, R2, R3
- SUB R4, R4, #0x01
- CMP R4, 0x01
- BNE abc
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement