Advertisement
theinhumaneme

ArithmeticOperations.c

Oct 26th, 2022
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | Software | 0 0
  1. #include<LPC214X.h>
  2. int main(){
  3.     --asm{
  4.         MOV R0,#0x00000005;
  5.         MOV R1,#0x00000003;
  6.         MOV R2,#0x40000000;
  7.         ADD R3, R0,R1;
  8.         STR R3, [R2],#4
  9.         SUB R3,R0,R1
  10.         STR R3,[R2],#4
  11.         MUL R3,R0,R1
  12.         STR R3, [R2]
  13.     }
  14. }
Tags: ARM7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement