Question: Write an ARM assembly language program to count the number of characters in a string. Assume the following items regarding this program: -The string is

Write an ARM assembly language program to count the number of characters in a string. Assume the following items regarding this program:

-The string is located at memory location StrLocation.

The string consists of 8-bit ASCII characters. The string is terminated by a NULL character (which has all 8-bits zero).

The program has to work for any string ASCII at the StrLocation. The final count of the characters in the string should be in R0.

The final count value in R0 must be stored in memory location StrSize.

StrLocation and StrSize are memory addresses and thus pointers to memory locations for data storage.

StrSize DCD 0x00000000

StrLocation DCB String will go here ,0x00

SUBJECT: Microprocessor

NOTE: Please write the ARM language and also screenshot the output for me.Thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!