Desafios da Aula 13 #26

Open
opened 2025-07-28 21:30:48 -03:00 by leandrossantos · 0 comments
section .bss
    buf: resb 20

section .text
global _start

_start:
    mov rax, 0
    mov rdi, 0
    mov rsi, buf
    mov rdx, 20
    syscall

; 1-converter a string no buffer para inteiro (por enquanto uint64)
; 2-somar valor convertido com 42
; 3-imprimir o resultado da soma

; Em paralelo, pesquisar como limpar o buffer do terminal

    mov rax, 60
    xor rdi, rdi
    syscall
```asm section .bss buf: resb 20 section .text global _start _start: mov rax, 0 mov rdi, 0 mov rsi, buf mov rdx, 20 syscall ; 1-converter a string no buffer para inteiro (por enquanto uint64) ; 2-somar valor convertido com 42 ; 3-imprimir o resultado da soma ; Em paralelo, pesquisar como limpar o buffer do terminal mov rax, 60 xor rdi, rdi syscall ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: blau_araujo/pbn#26
No description provided.