1
0
Fork 0
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:
Henrik Hautakoski 2019-01-04 15:10:03 +01:00
parent 6422bcca8a
commit e03154f249
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -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;