-
Notifications
You must be signed in to change notification settings - Fork 22
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
Comments
Yess for sure, here it is :
|
Hi, This VSCode extension is made for writing simple MASM code for DOS system (a 16bit system).
From the comment in your code, I can assume that your code is for linux assembly (64bit system).
I tested your code in my windows WSL Ubuntu system, it works.
I haven't seen extensions in VSCode, supporting this workflow. You may use ASM Code Lens - Visual Studio Marketplace for language support and write VSCode tasks to compile and run code.
Best Wishes
$ vim test.asm
$ nasm -f elf64 test.asm
$ ld -s -o hello test.o
$ ./hello
Hello World!
…------------------ 原始邮件 ------------------
发件人: "dosasm/masm-tasm" ***@***.***>;
发送时间: 2022年9月27日(星期二) 上午8:14
***@***.***>;
***@***.******@***.***>;
主题: Re: [dosasm/masm-tasm] Error to execute a command (Issue #42)
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
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys im trying to running the program but this bug apeears
The text was updated successfully, but these errors were encountered: