Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numbers STR '0123456789', TXT_END
- MOV R1, M[STATS]; R1 Guarda o valor das estatisticas
- MOV R2, numbers; R2 aponta pra numbers
- MOV R3, 0064h; 100
- Loop: CMP R3, R0; Loop
- JMP.Z foobar; endereco qualquer
- MOV R4, R3 ; Copia o valor de 100
- MOV R5, R1 ; Copia o valor da estatistica
- DIV R4, R5 ; R4 agora guarda o primeiro digito de R1
- MOV R5, 000Ah
- DIV R3, R5; Decrementa R3 por um fator de 10
- MOV R6, R2
- ADD R6, R4
- PRINT R6 ; Escreve no LCD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement