scc

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

commit cbbf9acc4e1db7ac87ee33eeb7148f2ed0e6ee54
parent 0592cb9f40061f023f974223ab3578fc2c606515
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 11 Feb 2024 09:13:06 +0100

tests/as: Test .include pseudo instruction

All the pseudo instruction tests were also moved to pseudo.inc
because they can be reused in all the architectures (even when
the check of the side effects has to be done in every arch).

Diffstat:
Atests/as/execute/pseudo.inc | 36++++++++++++++++++++++++++++++++++++
Mtests/as/execute/z80.s | 37+------------------------------------
2 files changed, 37 insertions(+), 36 deletions(-)

diff --git a/tests/as/execute/pseudo.inc b/tests/as/execute/pseudo.inc @@ -0,0 +1,36 @@ + .EQU SYM1,$9 + .EQU SYM2,$017 + .EQU SYM3,$0xA +SYM4: .EQU $0xB +SYM5 = $0xC +# TODO: check side effect +# .SECTION SYM6 +# .SECTION SYM7,"" +# .DB +# .DEFB +# .BYTE +# .DW +# .DEFW +# .SHORT +# .DD +# .DEFD +# .LONG +# .INT +# .DQ +# .DEFQ +# .SIZE SYM8,19 +# .COMM SYM9,21 +# .TYPE SYM10,0 +# .PUBLIC SYM11 +# .GLOBL SYM12 +# .GLOBAL +# .DATA +# .BSS +# .TEXT +# .EXTRN +# .EXTERN +# .STRING +# .ASCII +# .ALIGN +# .INCLUDE + diff --git a/tests/as/execute/z80.s b/tests/as/execute/z80.s @@ -1,41 +1,6 @@ ################################################### # tests for pseudo instructions - .EQU SYM1,$9 - .EQU SYM2,$017 - .EQU SYM3,$0xA -SYM4: .EQU $0xB -SYM5 = $0xC - -# TODO: check side effect -# .SECTION SYM6 -# .SECTION SYM7,"" -# .DB -# .DEFB -# .BYTE -# .DW -# .DEFW -# .SHORT -# .DD -# .DEFD -# .LONG -# .INT -# .DQ -# .DEFQ -# .SIZE SYM8,19 -# .COMM SYM9,21 -# .TYPE SYM10,0 -# .PUBLIC SYM11 -# .GLOBL SYM12 -# .GLOBAL -# .DATA -# .BSS -# .TEXT -# .EXTRN -# .EXTERN -# .STRING -# .ASCII -# .ALIGN -# .INCLUDE + .INCLUDE "pseudo.inc" LD A,$SYM1 # 3E 09 INIT: LD A,$SYM2 # 3E 0F