별🌟 찍기 NASM 코드
포트폴리오/코드
2019. 7. 14.
별을 찍어보자 파일은 starprint.asm global main, _start section .bss buffer: resb 128 section .data star: db 0x2a gehang: db 0xa section .text _start: main: push rbp mov rbp, rsp sub rsp, 16 mov rax, 0 mov rdi, 0 lea rsi, [rbp-12] mov rdx, 1 syscall sub DWORD [rbp-12], 0x30 mov rax, [rbp-12] and rax, 1 test rax, rax jne L2 mov rax, 60 mov rdi, 0 syscall L2: mov DWORD [rbp-4], 0 jmp L3 L6: mov DWORD [rbp-8..