Read the main stack pointer with mrs r0, msp
Read the main stack pointer into r0 with mrs r0, msp on Cortex-M, privileged code only, for fault handlers that need to inspect the stacked frame.
Short posts that solve one thing: the code, the output we got, and why it works.
Read the main stack pointer into r0 with mrs r0, msp on Cortex-M, privileged code only, for fault handlers that need to inspect the stacked frame.
Clear the C64 text screen from machine code with jsr $e544, which fills screen RAM with spaces and homes the cursor; know the portable alternative.
mv a0, a1 is a pseudo-instruction for addi a0, a1, 0 on RISC-V, so there is no separate move opcode in the base ISA.
Reserve shadow space with sub rsp, 40 before Windows x64 calls: 32 bytes of home space plus 8 to re-align the stack.
Turn a flag into 0 or 1 with setne al and movzx eax, al: clear the register first only if the flags are not live. NASM 2.16, x86-64.
Zero a register with xor eax, eax: two bytes instead of five, and the 32-bit write clears the upper half of rax too. NASM 2.16, x86-64.
We send one email when a new post is published. No spam.