Mercurial > repos > blastem
comparison 68kinst.c @ 95:dd3c680c618c
Initial work on allowing dynamic branches and code in RAM plus a small fix to effective address decoding
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 27 Dec 2012 21:19:58 -0800 |
parents | a668a35a3463 |
children | d7789186ba5e |
comparison
equal
deleted
inserted
replaced
94:a668a35a3463 | 95:dd3c680c618c |
---|---|
61 dst->addr_mode = MODE_PC_INDEX_DISP8; | 61 dst->addr_mode = MODE_PC_INDEX_DISP8; |
62 ext = *(++cur); | 62 ext = *(++cur); |
63 dst->params.regs.sec = ext >> 11;//includes areg/dreg bit, reg num and word/long bit | 63 dst->params.regs.sec = ext >> 11;//includes areg/dreg bit, reg num and word/long bit |
64 dst->params.regs.displacement = sign_extend8(ext&0xFF); | 64 dst->params.regs.displacement = sign_extend8(ext&0xFF); |
65 #endif | 65 #endif |
66 break; | |
66 case 2: | 67 case 2: |
67 dst->addr_mode = MODE_PC_DISPLACE; | 68 dst->addr_mode = MODE_PC_DISPLACE; |
68 ext = *(++cur); | 69 ext = *(++cur); |
69 dst->params.regs.displacement = sign_extend16(ext); | 70 dst->params.regs.displacement = sign_extend16(ext); |
70 break; | 71 break; |