• Assembly on NetBSD?

    From Johann 'Myrkraverk' Oskarsson@johann@myrkraverk.invalid to comp.unix.bsd.netbsd.misc,alt.lang.asm on Thu Aug 20 15:46:19 2026
    From Newsgroup: alt.lang.asm

    Dear comp.unix.bsd.netbsd.misc, and alt.lang.asm,

    How do I get started with 64bit assembly, using yasm, on NetBSD?

    I'm trying to adapt examples from the book /Introduction to 64
    Bit Assembly Programming for Linux and OS X/, by Ray Seyfarth,
    and I'm having problems compiling and linking the book's sample
    code.

    To further the grief, the example code at

    https://wiki.netbsd.org/examples/netbsd_assembly/

    does not seem to work for me either, on an amd64 machine. Or my
    problem is that I'm trying to adapt it to yasm? I don't know.

    Is there a kind soul who can provide a working /hello world/ app-
    lication in amd64 assembly code -- we don't need to mention the
    other brand, the machine code is completely compatible -- with the
    yasm as the assembler?

    In a fit of desperation, I even tried asking ChatGPT, but it only
    spouted some nonsense about Linux compatibility, which I don't care
    about since I'm using the /ultimate/ Unix, >>> NetBSD <<<.


    Best wishes, and happy assembly coding!
    --
    Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
    I'm not from the Internet, I just work there. | via Easynews.com https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Top Dead Ctr@tdc@invalid.invalid to comp.unix.bsd.netbsd.misc,alt.lang.asm on Thu Aug 20 16:16:44 2026
    From Newsgroup: alt.lang.asm

    On 8/20/26 1:46 AM, Johann 'Myrkraverk' Oskarsson wrote:
    Dear comp.unix.bsd.netbsd.misc, and alt.lang.asm,

    How do I get started with 64bit assembly, using yasm, on NetBSD?

    I'm trying to adapt examples from the book /Introduction to 64
    Bit Assembly Programming for Linux and OS X/, by Ray Seyfarth,
    and I'm having problems compiling and linking the book's sample
    code.

    To further the grief, the example code at

    -a https://wiki.netbsd.org/examples/netbsd_assembly/

    does not seem to work for me either, on an amd64 machine.-a Or my
    problem is that I'm trying to adapt it to yasm?-a I don't know.

    Is there a kind soul who can provide a working /hello world/ app-
    lication in amd64 assembly code -- we don't need to mention the
    other brand, the machine code is completely compatible -- with the
    yasm as the assembler?

    In a fit of desperation, I even tried asking ChatGPT, but it only
    spouted some nonsense about Linux compatibility, which I don't care
    about since I'm using the /ultimate/ Unix, >>> NetBSD <<<.


    Best wishes, and happy assembly coding!

    Hmm.. ya NetBSD 4.0 was a while ago..

    The "hello world" on this UMBC's CS page seems to work okay with yasm:

    https://portal.cs.umbc.edu/help/nasm/sample_64.shtml

    Cheers,
    -tdc
    --- Synchronet 3.22a-Linux NewsLink 1.2