Hello, I'm trying to learn x86 assembly stuff, so this is the repo for it.
Its made for Windows using the Win32 library, so (this is a shocker) it wont work on Mac and Linux.
I havent figured out how to run it inside of vscode yet, so I have a 4 line command I use to compile and debug it.
nasm -F dwarf -g -f elf32 -o main.obj main.asm; nasm -F dwarf -g -f elf32 -o printing.obj printing.asm; ld main.obj printing.obj C:\Windows\SysWOW64\kernel32.dll -mi386pe --entry=_start -o main.exe; gdb -ex run .\main.exe
-
nasm -F dwarf -g -f elf32 -o main.obj main.asm; nasm -F dwarf -g -f elf32 -o printing.obj printing.asm;
-
ld main.obj printing.obj C:\Windows\SysWOW64\kernel32.dll -mi386pe --entry=_start -o main.exe;
-
gdb -ex run .\main.exe
It requires nasm, msys2 (mingw), and gdb (comes in mingw)