if i want to print the value in seven segment display like 12. how can I do that?. i am currently working on cpulator armv7 mode. help will be appreciated.
.text .equ sevendisplay, 0xff200020 .global _start _start:
ldr r0, =sevendisplay @ Load the address of the seven-segment display mov r1, #12 //THIS THE REGISTER WITH VALUE
ldr r2, [r0] //Load the current value from the display
and r2, r2, #0b0000000000000000 // two seven segment display
orr r2, r2, r1 //Combine with the new value
str r2,[r0]
stop: mov r7,#1 swi 0 .end