-
-
Notifications
You must be signed in to change notification settings - Fork 379
Closed
Labels
Description
Existing issues
- I have searched the existing issues.
Affected document
https://github.com/0xAX/asm/blob/master/content/asm_3.md
Issue description
using a VM with Gentoo Linux
nasm 3.1
ld 2.46.0
Tried the stack.asm file.
1st trial (add .exe for VS code .gitignore purpose)
nasm -f elf64 -o stack.o stack.asm
ld -o stack.exe stack.o
./stack.exe
Error: expected two command-line arguments
./stack.exe 12 34
11429229181862520690
./stack.exe 5 10
11429229181862520690
2nd trial (as published)
nasm -f elf64 -o stack.o stack.asm
ld -o stack stack.o
./stack
Error: expected two command-line arguments
./stack 12 34
11733211430697485338
./stack 5 10
11733211430697485338
Attachments
No response
Reactions are currently unavailable