tests/as: Test .include pseudo instruction - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit cbbf9acc4e1db7ac87ee33eeb7148f2ed0e6ee54
 (DIR) parent 0592cb9f40061f023f974223ab3578fc2c606515
 (HTM) 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:
         A tests/as/execute/pseudo.inc         |      36 +++++++++++++++++++++++++++++++
         M tests/as/execute/z80.s              |      37 +------------------------------
       
       2 files changed, 37 insertions(+), 36 deletions(-)
       ---
 (DIR) 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
       +
 (DIR) 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