From ASMBits

Write a function named strlen that returns the length of a null-terminated string. The string (a pointer to an array of characters) will be passed as the first argument of the function. A string contains non-null characters and ends with a single byte with value 0. The string must not be modified.

Return (in r0) the length of the string, which excludes the null termination character;

unsigned int strlen (const char *string);

Expected solution length: Around 10 lines.

Sample Input

"Hello World"

Sample Output


Write your solution here

Upload a source file...