Advertisement
theinhumaneme

Fibbonaci.c

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