Lines Matching refs:msp430
29 #include "opcode/msp430-decode.h"
35 MSP430_Opcode_Decoded *msp430;
52 if (ld->op_ptr == ld->msp430->n_bytes)
57 ld->op [(ld->msp430->n_bytes++)^1] = b;
59 while (ld->msp430->n_bytes & 1);
64 #define ID(x) msp430->id = x
66 #define OP(n, t, r, a) (msp430->op[n].type = t, \
67 msp430->op[n].reg = r, \
68 msp430->op[n].addend = a)
71 (msp430->op[n].type = t, \
72 msp430->op[n].reg = r1, \
73 msp430->op[n].reg2 = r2, \
74 msp430->op[n].addend = a)
76 #define SYNTAX(x) msp430->syntax = x
77 #define UNSUPPORTED() msp430->syntax = "*unknown*"
94 #define BW(x) msp430->size = (x ? 8 : 16)
96 #define ABW(a,x) msp430->size = (a ? ((x ? 8 : 16)) : (x ? 20 : 20))
102 #define F_____ msp430->flags_1 = msp430->flags_0 = 0; msp430->flags_set = 0
103 #define F_VNZC msp430->flags_1 = msp430->flags_0 = 0; msp430->flags_set = 0x87
104 #define F_0NZC msp430->flags_1 = 0; msp430->flags_0 = 0x80; msp430->flags_set = 0x07
167 MSP430_Opcode_Decoded *msp430 = ld->msp430;
194 MSP430_Opcode_Decoded *msp430 = ld->msp430;
274 MSP430_Opcode_Decoded *msp430 = ld->msp430;
276 msp430->repeat_reg = srxt & 1;
277 msp430->repeats = dsxt;
278 msp430->zc = (srxt & 2) ? 1 : 0;
322 MSP430_Opcode_Decoded *msp430,
333 lds.msp430 = msp430;
340 memset (msp430, 0, sizeof (*msp430));
357 msp430->ofs_430x = 1;
378 switch (msp430->id)
404 msp430->op[0] = msp430->op[1];
407 if (msp430->id == MSO_reti)
408 msp430->syntax = "%S";
410 switch (msp430->id)
434 ID (MSO_jmp); SC (pc + raddr + msp430->n_bytes);
435 msp430->cond = jmp;
441 msp430->size = 20;
442 msp430->ofs_430x = 1;
446 msp430->size = 20;
447 msp430->ofs_430x = 1;
451 msp430->size = 20;
452 msp430->ofs_430x = 1;
456 msp430->size = 20;
457 msp430->ofs_430x = 1;
461 msp430->size = 20;
462 msp430->ofs_430x = 1;
466 msp430->size = 20;
467 msp430->ofs_430x = 1;
471 msp430->size = 20;
472 msp430->ofs_430x = 1;
476 msp430->size = 20;
477 msp430->ofs_430x = 1;
482 msp430->size = 20;
483 msp430->ofs_430x = 1;
488 msp430->size = 20;
489 msp430->ofs_430x = 1;
494 msp430->size = 20;
495 msp430->ofs_430x = 1;
500 msp430->size = 20;
501 msp430->ofs_430x = 1;
505 msp430->size = 20;
506 msp430->ofs_430x = 1;
511 msp430->size = 20;
512 msp430->ofs_430x = 1;
517 msp430->size = 20;
518 msp430->ofs_430x = 1;
523 msp430->repeats = bt;
524 msp430->size = w ? 16 : 20;
525 msp430->ofs_430x = 1;
530 msp430->repeats = bt;
531 msp430->size = w ? 16 : 20;
532 msp430->ofs_430x = 1;
537 msp430->repeats = bt;
538 msp430->size = w ? 16 : 20;
539 msp430->ofs_430x = 1;
544 msp430->repeats = bt;
545 msp430->size = w ? 16 : 20;
546 msp430->ofs_430x = 1;
551 msp430->size = 20;
552 msp430->ofs_430x = 1;
556 msp430->size = 20;
557 msp430->ofs_430x = 1;
561 msp430->size = 20;
562 msp430->ofs_430x = 1;
568 ID (MSO_call); SA (pc + raddr + msp430->n_bytes);
569 msp430->size = 20;
570 msp430->ofs_430x = 1;
574 msp430->size = 20;
575 msp430->ofs_430x = 1;
579 msp430->size = w ? 16 : 20;
580 msp430->repeats = bits;
581 msp430->ofs_430x = 1;
585 msp430->size = w ? 16 : 20;
586 msp430->repeats = bits;
587 msp430->ofs_430x = 1;
591 return msp430->n_bytes;