Microprocessor and Microcontroller Lab 6 | Read Now
Microprocessor and Microcontroller Lab 6
6] To write and simulate ARM assembly language programs for data transfer, arithmetic and logical operators (Demonstrate with the help of a suitable program)
6] Program code(lab6a.s)
area prg1,code,readonly entry start ldr r1=value ldr r2,[r1] ldr r4=value str r3,[r4] bx lr value dcd 0x22222222 end
6] Program code(lab6b.s)
area pgm,code,readonly entry start mov r0,#0 mov r1,#1 and r2,r1,r0 orr r3,r1,r0 eor r4,r1,r0 bx lr end
6] Program code (lab6c.s)
area pgm3,code,readonly entry start ldr r0=0x00000002 ldr r1=0x00000003 add r2,r1,r0 muls r3,r1,r0 bx lr end