|
|
|
|
|
by lunixbochs
3874 days ago
|
|
Much of assembly programming is variants of these commands: - mov <dst>, <src> | dst = src
- sub <dst>, <src a>, <src b> | dst = a - b
- jump <label> | continue running at <label>
- jump if equal <label> | continue running at <label> if both sources of
the last command were equal
- call <label> | save the current location, then continue
running at <label>
- ret | continue running after the previous CALL
instruction
<dst> can be: - any memory address
- any of 8-32 available temporary integer variables called "registers"
<src> can be any valid <dst> or a hardcoded integer known as an "immediate" |
|