NAME=@ addr
FILE=--
CMDS=<<EOF
s 0
s @ 0x42
EOF
EXPECT=<<EOF
0x42
EOF
RUN

NAME=@e:
FILE=-
CMDS=<<EOF
e scr.color=false
e scr.color @e:scr.color=true
EOF
EXPECT=<<EOF
1
EOF
RUN

NAME=@a:
FILE=-
CMDS=<<EOF
e asm.arch=x86
e asm.arch @a:arm
EOF
EXPECT=<<EOF
arm
EOF
RUN

NAME=@e: @ addr
FILE=-
CMDS=<<EOF
e scr.color=false
s 0
e scr.color @e:scr.color=true @ 0x1337
s @e:scr.color=true @ 0x1337
EOF
EXPECT=<<EOF
1
0x1337
EOF
RUN

NAME=@ addr @e
FILE=-
CMDS=<<EOF
e scr.color @ 0x42 @e:scr.color=false 
e scr.color @ 0x1337 @e:scr.color=true
s @ 0x42 @e:scr.color=false 
s @ 0x1337 @e:scr.color=true 
EOF
EXPECT=<<EOF
0
1
0x42
0x1337
EOF
RUN

NAME=@a: @ addr @e:
FILE=-
CMDS=<<EOF
e asm.arch @a:x86 @ 0x42 @e:scr.color=false
e asm.arch @a:arm @ 0x1337 @e:scr.color=true
s @a:x86 @ 0x42 @e:scr.color=false
s @a:arm @ 0x1337 @e:scr.color=true
e scr.color @a:x86 @ 0x42 @e:scr.color=false
e scr.color @a:arm @ 0x1337 @e:scr.color=true
EOF
EXPECT=<<EOF
x86
arm
0x42
0x1337
0
1
EOF
RUN

NAME=@e:a=b,c=d with a==c
FILE=-
CMDS=<<EOF
e asm.pseudo=false
e asm.pseudo @e:asm.pseudo=true,asm.pseudo=true
e asm.pseudo
EOF
EXPECT=<<EOF
true
false
EOF
RUN

NAME=@e:a=b @e:c=d with a==c
FILE=-
CMDS=<<EOF
e asm.pseudo=false
e asm.pseudo @e:asm.pseudo=true @e:asm.pseudo=true
e asm.pseudo
EOF
EXPECT=<<EOF
true
false
EOF
RUN
