Clear a vector register with vpxor ymm0, ymm0, ymm0
Zero a 256-bit register with vpxor ymm0, ymm0, ymm0, which needs AVX2; NASM 2.16.03 example that proves the lanes are cleared.
Short posts that solve one thing: the code, the output we got, and why it works.
Zero a 256-bit register with vpxor ymm0, ymm0, ymm0, which needs AVX2; NASM 2.16.03 example that proves the lanes are cleared.
Make a program addressable with BALR 12,0 and USING *,12 so the assembler can turn labels into base and displacement on z/OS 3.1.
Call getpid (39) in GNU as 2.43 and print the result as decimal digits, built backwards with div by 10; the pid differs every run.
Call exit_group (231) instead of exit (60) so every thread ends at once; a GNU as 2.43 program on Linux 6.12 with the status check.
Share constants and macros between NASM 2.16.03 files with %include, and use -I with a trailing slash for an include directory.
Let NASM 2.16.03 count a string for you: len equ $ - msg after the data, so write and the buffer never disagree.
The System V AMD64 ABI passes integer arguments five and six in r8 and r9; a six-argument NASM 2.16.03 function and its caller.
Start a boot sector by zeroing ds, es and ss and setting a stack, because the BIOS leaves them undefined.
Print the disassembly of one function from a shell script with gdb -batch and -ex, without starting a debugging session.
Pull readable text out of a binary with strings -n 8 to skip short noise, a first look for keys, URLs and debug messages in a file you did not build.
Read the x86 time-stamp counter from C with asm volatile and the =a, =d output constraints that map EDX:EAX.
Zero a register on AArch64 with mov x0, xzr, where register number 31 reads as zero in this encoding and as sp in others.
We send one email when a new post is published. No spam.