Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<LPC214X.h>
- int main(){
- --asm{
- MOV R1,#03;
- MOV R2,#0x40000000
- LDR R3, [R2],#4
- xyz: LDR R4, [R2],#4
- CMP R3,R4
- BGE abc
- MOV R3,R4
- abc: SUB R1,#1
- CMP R1,#0
- BNE xyz
- STR R3,[R2],#4
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement