Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal #36 - STA #41

Closed
wants to merge 6 commits into from
Closed

Conversation

hlide
Copy link
Contributor

@hlide hlide commented Aug 2, 2017

See #36

## Instruction MOV
MOV is renamed as MVR and MOV, DEC, and INC become pseudos using MVR

### Before:
|`MOV`| `D, S`          | `XXXXXXXXSSDD0000` | Move value at source register to destination register|

### After:
|`MVR`| `D, S, V`          | `VVVVVVVVSSDD0000` | Add sign-extended immediate value to value at source register and move it to destination register|
|`MOV`| `D, S`          | `00000000SSDD0000` | Move value at source register to destination register|
|`INC`| `D`          | `00000001DDDD0000` | Increment value at destination register|
|`DEC`| `D`          | `11111111DDDD0000` | Decrement value at destination register|

Retro-compatibility is kept for assembly code, not for machine code.
## Instruction LDV
LDV is renamed as MVV and LDV, MVI, ADI, MUI and AUI become pseudos using MVV

### Before:
|LDV| D, V | VVVVVVVVVVDD0001 | Load a value into destination register.

### After:
|LDV| D, V, O | VVVVVVVVOODD0001 | Load a value into destination register.
|MVI| D, V | VVVVVVVV00DD0001 | Set a zero-extended lower byte to destination register.
|ADI| D, V | VVVVVVVV01DD0001 | Set a zero-extended lower byte to destination register.
|MUI| D, V | VVVVVVVV10DD0001 | Set a byte left shifted by 8 bits to destination register.
|AUI| D, V | VVVVVVVV11DD0001 | Add a byte left shifted by 8 bits to destination register.

Retro-compatibility is kept for assembly code, not for machine code.
- Previously LDM, renamed for STA  (STore at Address).
- LDM kept as pseudo for retro-compatibility.
@hlide
Copy link
Contributor Author

hlide commented Aug 2, 2017

My fork is all messed up, so I put the two last PR as such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants