Live data from Hacker News

Viewing profile — bd01

bd01

HN member
Joined
Thu, Jan 02, 2025, 8:15 PM UTC
HN karma
23
Public activity
5 items

About bd01

No profile information was provided.

Recent public activity

  1. comment
    Comment #42601714

    That's because you're using `mov rdi, rax` again. You keep changing `edi, eax` to `rdi, rax`. Why? The default operand size in 64-bit mode is, for most instructions, still 32 bits.…

  2. comment
    Comment #42598756

    Yes, because: push 1 ; 6A 01 (2 bytes) pop rdi ; 5F (1 byte) is longer than a simple: mov edi, eax ; 89 C7 (2 bytes)

  3. comment
    Comment #42588043

    That second snippet is pretty funny: push 1 pop rax pop rdi You can't push a value once and pop it twice, that's not how a stack works! You're popping something else off the stack.…

  4. comment
    Comment #42579315

    Initial register state is documented to be undefined except for rbp, rsp and rdx [1]. Can you say for certain that no other Linux version ever used GPRs to pass something else? [1]…

  5. comment
    Comment #42578534

    This is pretty bad. Let's start with the very first instruction: mov rax, 1 An actual "mov rax, 1" would assemble to 48 B8 01 00 00 00 00 00 00 00, a whopping TEN bytes. nasm will …