Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to execute a command #42

Open
lucky800 opened this issue Sep 24, 2022 · 3 comments
Open

Error to execute a command #42

lucky800 opened this issue Sep 24, 2022 · 3 comments

Comments

@lucky800
Copy link

Hello guys im trying to running the program but this bug apeears

image

@xsro
Copy link
Collaborator

xsro commented Sep 26, 2022

Thanks, can you offer your code for me to debug?
Additionally, I also want files in following folder.
This project is a little bit messy, So it may take some time for me to fix

image

@lucky800
Copy link
Author

Yess for sure, here it is :

; Compilar - Transformar o programa para linguagem máquina
;   nasm -f elf64 hello.asm
; Linkeditar - Transformar o programa em linguagem de máquina para um executável
;   ld -s -o hello hello.o

section .data
    msg db 'Hello World!', 0xA, 0xD
    tam equ $- msg

section .text

global _start

_start:
    mov EAX, 0x4
    mov EBX, 0x1
    mov ECX, msg
    mov EDX, tam 
    int 0x80

saida:
    mov EAX, 0x1 ; SO estou terminando o programa
    mov EBX, 0x0 ; SO o valor de retorno é 0
    int 0x80

@xsro
Copy link
Collaborator

xsro commented Sep 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants