Home | History | Annotate | Download | only in opcodes

Lines Matching full:msp430

28 #include "opcode/msp430-decode.h"
34 MSP430_Opcode_Decoded *msp430;
51 if (ld->op_ptr == ld->msp430->n_bytes)
56 ld->op [(ld->msp430->n_bytes++)^1] = b;
58 while (ld->msp430->n_bytes & 1);
63 #define ID(x) msp430->id = x
65 #define OP(n, t, r, a) (msp430->op[n].type = t, \
66 msp430->op[n].reg = r, \
67 msp430->op[n].addend = a)
70 (msp430->op[n].type = t, \
71 msp430->op[n].reg = r1, \
72 msp430->op[n].reg2 = r2, \
73 msp430->op[n].addend = a)
75 #define SYNTAX(x) msp430->syntax = x
76 #define UNSUPPORTED() msp430->syntax = "*unknown*"
93 #define BW(x) msp430->size = (x ? 8 : 16)
95 #define ABW(a,x) msp430->size = (a ? ((x ? 8 : 16)) : (x ? 20 : 20))
101 #define F_____ msp430->flags_1 = msp430->flags_0 = 0; msp430->flags_set = 0
102 #define F_VNZC msp430->flags_1 = msp430->flags_0 = 0; msp430->flags_set = 0x87
103 #define F_0NZC msp430->flags_1 = 0; msp430->flags_0 = 0x80; msp430->flags_set = 0x07
166 MSP430_Opcode_Decoded *msp430 = ld->msp430;
193 MSP430_Opcode_Decoded *msp430 = ld->msp430;
272 MSP430_Opcode_Decoded *msp430 = ld->msp430;
274 msp430->repeat_reg = srxt & 1;
275 msp430->repeats = dsxt;
276 msp430->zc = (srxt & 2) ? 1 : 0;
320 MSP430_Opcode_Decoded *msp430,
331 lds.msp430 = msp430;
338 memset (msp430, 0, sizeof (*msp430));
355 msp430->ofs_430x = 1;
376 switch (msp430->id)
402 msp430->op[0] = msp430->op[1];
405 if (msp430->id == MSO_reti)
406 msp430->syntax = "%S";
408 switch (msp430->id)
432 ID (MSO_jmp); SC (pc + raddr + msp430->n_bytes);
433 msp430->cond = jmp;
439 msp430->size = 20;
440 msp430->ofs_430x = 1;
444 msp430->size = 20;
445 msp430->ofs_430x = 1;
449 msp430->size = 20;
450 msp430->ofs_430x = 1;
454 msp430->size = 20;
455 msp430->ofs_430x = 1;
459 msp430->size = 20;
460 msp430->ofs_430x = 1;
464 msp430->size = 20;
465 msp430->ofs_430x = 1;
469 msp430->size = 20;
470 msp430->ofs_430x = 1;
474 msp430->size = 20;
475 msp430->ofs_430x = 1;
480 msp430->size = 20;
481 msp430->ofs_430x = 1;
486 msp430->size = 20;
487 msp430->ofs_430x = 1;
492 msp430->size = 20;
493 msp430->ofs_430x = 1;
498 msp430->size = 20;
499 msp430->ofs_430x = 1;
503 msp430->size = 20;
504 msp430->ofs_430x = 1;
509 msp430->size = 20;
510 msp430->ofs_430x = 1;
515 msp430->size = 20;
516 msp430->ofs_430x = 1;
521 msp430->repeats = bt;
522 msp430->size = w ? 16 : 20;
523 msp430->ofs_430x = 1;
528 msp430->repeats = bt;
529 msp430->size = w ? 16 : 20;
530 msp430->ofs_430x = 1;
535 msp430->repeats = bt;
536 msp430->size = w ? 16 : 20;
537 msp430->ofs_430x = 1;
542 msp430->repeats = bt;
543 msp430->size = w ? 16 : 20;
544 msp430->ofs_430x = 1;
549 msp430->size = 20;
550 msp430->ofs_430x = 1;
554 msp430->size = 20;
555 msp430->ofs_430x = 1;
559 msp430->size = 20;
560 msp430->ofs_430x = 1;
566 ID (MSO_call); SA (pc + raddr + msp430->n_bytes);
567 msp430->size = 20;
568 msp430->ofs_430x = 1;
572 msp430->size = 20;
573 msp430->ofs_430x = 1;
577 msp430->size = w ? 16 : 20;
578 msp430->repeats = bits;
579 msp430->ofs_430x = 1;
583 msp430->size = w ? 16 : 20;
584 msp430->repeats = bits;
585 msp430->ofs_430x = 1;
589 return msp430->n_bytes;