Advertisement
theinhumaneme

LargestInArray.c

Oct 26th, 2022
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | Software | 0 0
  1. #include<LPC214X.h>
  2. int main(){
  3.     --asm{
  4.         MOV R1,#03;
  5.         MOV R2,#0x40000000
  6.         LDR R3, [R2],#4
  7.         xyz: LDR R4, [R2],#4
  8.             CMP R3,R4
  9.             BGE abc
  10.         MOV R3,R4
  11.         abc: SUB R1,#1
  12.             CMP R1,#0
  13.             BNE xyz
  14.         STR R3,[R2],#4
  15.  
  16.  
  17.     }
  18. }
Tags: ARM7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement