Mastodon Feed: Post

Mastodon Feed

ireneista@irenes.space ("Irenes (many)") wrote:

so, here's an example of a call to this word (from a snippet of code elsewhere that we have handy)

1 :rdx mov-reg64-imm32 ~ buffer length

we'll go through that piece by piece.

1 is an integer literal.

:rdx is a word that evaluates to a pointer to itself, which is a convention we borrowed from Common Lisp that lets us make ad-hoc enums that can be mixed and matched depending on how they're needed.