Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The answers on chegg are incorrect. Please don\'t paste them here This is in ARM

ID: 3727057 • Letter: T

Question

The answers on chegg are incorrect. Please don't paste them here
This is in ARM assembly language like in raspberry pi 1. Prompt for the user to enter a number (integer). 2. If the entered number is =100 print: "The input number is greater than or equal to 100." 4. Prompt for the user to enter a single character. 5. If the entered character is lower case (a..z) print: "Lower case letter entered." 6. If the entered character is upper case (A..Z) print: "Upper case letter entered." 7. Otherwise print: "Special character entered." 8. Return control to the operating system.

Explanation / Answer

.Ldebug_abbrev0:

.Ldebug_info0:

.Ldebug_line0:

.Ltext0:

.LC0:

.ascii " Enter a no."

.LC1:

.ascii "%d"

.LC2:

.ascii " The no. is less than 100"

.LC3:

.ascii " The no. is greater than or equal to 100"

.LC4:

.ascii " Enter a character"

.LC5:

.ascii " Lower case"

.LC6:

.ascii " Upper Case"

.LC7:

.ascii " %c"

main:

.LFB0:

@ args = 0, pretend = 0, frame = 8

@ frame_needed = 1, uses_anonymous_args = 0

stmfd sp!, {fp, lr}

.LCFI0:

add fp, sp, #4

.LCFI1:

sub sp, sp, #8

.LBB2:

ldr r0, .L7

bl printf

sub r3, fp, #12

ldr r0, .L7+4

mov r1, r3

bl scanf

ldr r3, [fp, #-12]

cmp r3, #99

bgt .L2

ldr r0, .L7+8

bl printf

b .L3

.L2:

ldr r0, .L7+12

bl printf

.L3:

ldr r0, .L7+16

bl printf

bl getchar

mov r3, r0

strb r3, [fp, #-5]

ldrb r3, [fp, #-5] @ zero_extendqisi2

cmp r3, #96

bls .L4

ldrb r3, [fp, #-5] @ zero_extendqisi2

cmp r3, #122

bhi .L4

ldr r0, .L7+20

bl printf

b .L5

.L4:

ldrb r3, [fp, #-5] @ zero_extendqisi2

cmp r3, #64

bls .L6

ldrb r3, [fp, #-5] @ zero_extendqisi2

cmp r3, #90

bhi .L6

ldr r0, .L7+24

bl printf

b .L5

.L6:

ldrb r3, [fp, #-5] @ zero_extendqisi2

ldr r0, .L7+28

mov r1, r3

bl printf

.L5:

.LBE2:

mov r3, #0

mov r0, r3

sub sp, fp, #4

ldmfd sp!, {fp, pc}

.L8:

.L7:

.word .LC0

.word .LC1

.word .LC2

.word .LC3

.word .LC4

.word .LC5

.word .LC6

.word .LC7

.LFE0:

.Letext0:

.Ldebug_loc0:

.LLST0:

.LASF6:

.LASF0:

.LASF3:

.LASF12:

.LASF7:

.LASF1:

.LASF13:

.LASF8:

.LASF2:

.LASF4:

.LASF5:

.LASF9:

.LASF10:

.LASF11:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote