shithub: scc

Download patch

ref: e7d32ccc043605258973593c6da0dc60739eeaa5
parent: 576703987fa1dbc4d63daa490145b78b249669d3
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Sep 18 17:43:23 EDT 2019

[as-powerpc] Add basic assembler pseudo-instructions

--- a/src/cmd/as/target/powerpc/powerpc.dat
+++ b/src/cmd/as/target/powerpc/powerpc.dat
@@ -1,0 +1,37 @@
+# Tab 18, tabs 18, :set ts=18
+# op	args	size	bytes	format	cpu
+.SECTION	sym,string?	0	none	section	POWERPC,POWERPC64
+.TEXT	none	0	none	text	POWERPC,POWERPC64
+.DATA	none	0	none	data	POWERPC,POWERPC64
+.BSS	none	0	none	bss	POWERPC,POWERPC64
+.DB	imm8+	0	none	defb	POWERPC,POWERPC64
+.DEFB	imm8+	0	none	defb	POWERPC,POWERPC64
+.BYTE	imm8+	0	none	defb	POWERPC,POWERPC64
+.DW	imm16+	0	none	defw	POWERPC,POWERPC64
+.DEFW	imm16+	0	none	defw	POWERPC,POWERPC64
+.SHORT	imm16+	0	none	defw	POWERPC,POWERPC64
+.WORD	imm16+	0	none	defw	POWERPC,POWERPC64
+.DD	imm32+	0	none	defd	POWERPC,POWERPC64
+.DEFD	imm32+	0	none	defd	POWERPC,POWERPC64
+.LONG	imm32+	0	none	defd	POWERPC,POWERPC64
+.INT	imm16+	0	none	defd	POWERPC,POWERPC64
+.DQ	imm64+	0	none	defq	POWERPC,POWERPC64
+.DEFQ	imm64+	0	none	defq	POWERPC,POWERPC64
+.EQU	sym,imm16	0	none	equ	POWERPC,POWERPC64
+.EQU	imm16	0	none	equ	POWERPC,POWERPC64
+=	imm16	0	none	equ	POWERPC,POWERPC64
+.SIZE	sym,imm16	0	none	size	POWERPC,POWERPC64
+.SIZE	imm16	0	none	size	POWERPC,POWERPC64
+.COMM	sym,imm16	0	none	common	POWERPC,POWERPC64
+.COMM	imm16	0	none	common	POWERPC,POWERPC64
+.TYPE	sym,imm16	0	none	type	POWERPC,POWERPC64
+.TYPE	imm16	0	none	type	POWERPC,POWERPC64
+.GLOBL	sym+	0	none	global	POWERPC,POWERPC64
+.PUBLIC	sym+	0	none	global	POWERPC,POWERPC64
+.EXTERN	sym+	0	none	extrn	POWERPC,POWERPC64
+.EXTRN	sym+	0	none	extrn	POWERPC,POWERPC64
+.STRING	string+	0	none	string	POWERPC,POWERPC64
+.ASCII	string+	0	none	ascii	POWERPC,POWERPC64
+.ALIGN	imm16+	0	none	align	POWERPC,POWERPC64
+.END	none	0	none	end	POWERPC,POWERPC64
+.INCLUDE	string	0	none	include	POWERPC,POWERPC64
--- a/src/cmd/as/target/powerpc/rules.dat
+++ b/src/cmd/as/target/powerpc/rules.dat
@@ -1,0 +1,6 @@
+imm8	AIMM8
+imm16	AIMM16
+imm32	AIMM32
+imm64	AIMM64
+sym	ASYM
+string	ASTR