Skip to content

Inconsistency between code snippet and explanation in ASM-1 #84

@BinderDavid

Description

@BinderDavid

A previous commit changed the code snippet to also include a newline after "hello, world!". The following line is therefore no longer in sync with the code.

The next step is to prepare the second argument of the `sys_write` system call. In our case, we pass the address of the `msg` variable to the `rsi` register. Last but not least, we should specify the length of data we want to write. The length of the `hello, world!` string is `13` bytes, so we pass it to the `rdx` register.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions