I'm interested in relearning assembly basics, writing x86_64 using NASM on my Intel-based Mac running Sonoma.
I installed NASM and refreshed Xcode command line tools, and have tried some simple "Hello, world" programs from various blogs. Most of these are a few years or more old, and various problems have come up. In general, nasm seems to run ok, but many linker errors appear. Most recently, the linker seemed to complete, but when I ran the a.out file it returned "zsh: killed ./a.out".
Rather than spending time with the errors I'm seeing, I'd be very interested if anyone who is successfully writing assembly in recent macOS versions could share some basics on linking syntax, required components of the .asm, etc. I have a strong preference for Intel coding syntax. Some sources say do put an underscore before "start", others say no, etc.
I installed NASM and refreshed Xcode command line tools, and have tried some simple "Hello, world" programs from various blogs. Most of these are a few years or more old, and various problems have come up. In general, nasm seems to run ok, but many linker errors appear. Most recently, the linker seemed to complete, but when I ran the a.out file it returned "zsh: killed ./a.out".
Rather than spending time with the errors I'm seeing, I'd be very interested if anyone who is successfully writing assembly in recent macOS versions could share some basics on linking syntax, required components of the .asm, etc. I have a strong preference for Intel coding syntax. Some sources say do put an underscore before "start", others say no, etc.