Mastodon Feed: Post

Mastodon Feed

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

but of course not every operation has a source and a destination, as move does. the "add" instructions have a source and a target. the distinction we're making here is that the source register and the target register both provide input, but only the target is modified.

:rbx :rax add-reg64-reg64

this is how we write the instruction that takes the value of rbx, takes the value of rax, adds them together, then puts the result back in rax

again, source before target