scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

ops.dat (1182B)


      1 # Tab 16, tabs 16, :set ts=16
      2 # -*- default-tab-width=16 -*-
      3 
      4 # op	args	size	bytes	format	cpu
      5 .DB	imm8+	0	none	defb	I286,I386,AMD64
      6 .DEFB	imm8+	0	none	defb	I286,I386,AMD64
      7 .BYTE	imm8+	0	none	defb	I286,I386,AMD64
      8 .DW	imm16+	0	none	defw	I286,I386,AMD64
      9 .DEFW	imm16+	0	none	defw	I286,I386,AMD64
     10 .SHORT	imm16+	0	none	defw	I286,I386,AMD64
     11 .WORD	imm16+	0	none	defw	I286
     12 .WORD	imm32+	0	none	defd	I386,AMD64
     13 .DD	imm32+	0	none	defd	I286,I386,AMD64
     14 .DEFD	imm32+	0	none	defd	I286,I386,AMD64
     15 .LONG	imm32+	0	none	defd	I286,I386
     16 .LONG	imm64+	0	none	defq	AMD64
     17 .INT	imm32+	0	none	defd	I386,AMD64
     18 .INT	imm16+	0	none	defd	I286
     19 .DQ	imm64+	0	none	defq	I286,I386,AMD64
     20 .DEFQ	imm64+	0	none	defq	I286,I386,AMD64
     21 .EQU	imm16	0	none	equ	I286
     22 .EQU	imm32	0	none	equ	I386
     23 .EQU	imm64	0	none	equ	AMD64
     24 NOP	none	1	0x90	noargs	I286,I386,AMD64
     25 RET	none	1	0xc3	noargs	I286,I386,AMD64
     26 
     27 
     28 # 8 bit arithmetic operations
     29 ADDB	reg8,reg8	2	0x00	reg8_reg8	I286,I386,AMD64
     30 ADDB	imm8,reg8	3	0x80	imm8_reg8	I286,I386,AMD64
     31 
     32 # 16 bit arithmetic operations
     33 ADDW	reg16,reg16	2	0x01	reg16_reg16	I286
     34 ADDW	reg16,reg16	3	0x66,0x01	reg16_reg16	I386,AMD64
     35 
     36 # 32 bit arithmetic operations
     37 ADDL	reg32,reg32	2	0x01	reg32_reg32	I386,AMD64