Skip to content

Latest commit

 

History

History
42 lines (23 loc) · 945 Bytes

File metadata and controls

42 lines (23 loc) · 945 Bytes

Opcode Group 03 - SEQ_CmdREG

Instructions in this opcode group seem to be related to simply movements of variables.

This opcode group is primarily for int values.

0300 - mov

Move integer.

Get two integers from SEQ_RegCMD2. Move the contents of the second into the first. Intel syntax mov.

0301 - movr

Move integer (reverse).

Get two integers from SEQ_RegCMD2. Move the contents of the first into the second. AT&T syntax mov.

0302 - swap

Swap integers.

Get two integers from SEQ_RegCMD2. Swap the contents of them with each other.

0303 - push

Push integer.

Get one integer from SEQ_RegCMD1. Push it to sp.

0304 - pop

Pop integer (and compare).

Pop an integer from sp and store it in one integer from SEQ_RegCMD1. Also store this value in cr.