mirror of
https://github.com/pnx/m16vm
synced 2026-06-16 03:44:55 +02:00
vm/instr_decode.c: remove uncommented code
This commit is contained in:
parent
6422bcca8a
commit
e03154f249
1 changed files with 0 additions and 7 deletions
|
|
@ -28,14 +28,7 @@ void instr_decode(unsigned char *instr, struct instr *out) {
|
|||
|
||||
// J-Type
|
||||
if (out->opcode == OP_JMP) {
|
||||
|
||||
out->j.addr = ((*instr & 0xF) << 8) + *(instr + 1);
|
||||
|
||||
// if MSB (bit 12) is set
|
||||
// perform 2s complement by setting bit 13-16 to 1
|
||||
/*
|
||||
if (out->j.addr & 0x0800)
|
||||
out->j.addr |= 0xF000; */
|
||||
} else {
|
||||
out->r.rs = *instr & 0xF;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue