ARM Assembly file:
Design a subroutine, e.g. NUM2STR, that converts a positive
number stored in the register to a string (char array) and
prints out the number in the Terminal window.
Fill the /*Programming*/ part
1 2 3 4 5 6 7 8 9 10 11 12 13 14
.equ
JTAG_UART_BASE,
0xFF201000
.text
/* executable code follows */
NUM2STR: ADD LDR LDR
SP, SP, #4 R5, [SP] // POP : R5 = number to print out R9, =JTAG_UART_BASE
/* Programming
*/
RETURN: BX
LR