Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
PGM4.pptx
1. Embedded system
Lab
18ECL66
R L JALAPPA INSTITUTE OF TECHNOLOGY
Kodigehalli, Doddaballapur – 561 203
D A Lavanya Vaishnavi
Assistant Professor
Department of Electronics and communication Engineering
3. ALP to find determine whether the given 16
bit is even or odd
AREA program,CODE,READONLY
ENTRY
EXPORT __main
__main
MOV R0,#0x000abcd ; Register Rd
MOVS R0,R0,LSR #1 ; Logical right shift of number
ADDCS R3,R3,#1 ; R3 holds odd number
ADDCC R4,R4,#1 ; R4 holds even number
stop
END