File: macros.inc

package info (click to toggle)
binutils 2.32.51.20190821-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 309,676 kB
  • sloc: ansic: 1,201,497; asm: 658,869; cpp: 130,432; exp: 69,370; makefile: 56,804; sh: 23,583; lisp: 14,519; yacc: 14,467; perl: 2,111; ada: 1,681; lex: 1,649; pascal: 1,446; python: 991; cs: 879; sed: 195; xml: 95; awk: 25
file content (58 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
macro	reg	{r0;r15}
macro	reg1	{r1;r15}
macro	reg2	{r0;r14}
macro	reg7	{r0;r7}
macro	regPlo	{r1;r7}
macro	regPhi	{r8;r14}
macro	creg	{psw;fpsw;usp;isp;intb;bpsw;bpc;fintv;extb}
macro	pswf	{U;I;O;S;Z;C}
macro	dreg	{dr0;dr15}
macro	dregh	{drh0;drh15}
macro	dregl	{drl0;drl15}
macro	dcreg	{dpsw;dcmr;dcent;depc}
macro	dregPlo	{dr1;dr7}
macro	dregPhi	{dr8;dr14}

macro	simm8	{-128;127}
macro	simm16	{-32768;32768}
macro	simm24	{-8388608;8388607}
macro	simm32	{-2147483648;2147483647}

macro	imm	{{simm8};{simm16};{simm24};{simm32}}

macro	uimm2	{0;3}
macro	uimm3	{0;7}
macro	uimm4	{0;15}
macro	uimm5	{0;31}
macro	uimm8	{0;255}
macro	uimm16	{0;65535}
macro	uimm24	{0;16777215}
macro	uimm32	{0;4294967295}

macro	imm32	{-2147483648;4294967295}

macro	dsp5	{4;28}
macro	dsp8	252
macro	dsp16	65532
macro	dsp8L	1020
macro	dsp16L	262140
macro	dsp8D	4088
macro	dsp16D	524256
macro	dsp	{;{dsp8};{dsp16}}
macro	dspL	{;{dsp8L};{dsp16L}}
macro	dspD	{;{dsp8D};{dsp16D}}

macro	memex	{.ub;.b;.uw;.w;.l}
macro	memx	{dsp}[{reg}]{memex}
macro	mem	{dsp}[{reg}]
macro	bwl	{.b;.w;.l}
macro	bw	{.b;.w}

macro	cnd	{geu;c;eq;z;gtu;pz;ge;gt;o;ltu;nc;ne;nz;leu;n;lt;le;no}
macro	lab_s	{.+3;.+10;foo}
macro	lab_b	{.-128;.+127;foo}
macro	lab_w	{.-32768;.+32767;foo}
macro	lab_a	{.-8388608;.+8388607;foo}
macro	lab_l	{.-2147483648;.+2147483647;foo}

	.text