1
# Check that "naked" comments are accepted and ignored on all different
2
# mnemonic types and pseudos. The goal is to use all combinations of
3
# operands where varying number of operands are allowed. If any
4
# combinations are missing, for simplicity, add them to another file.
5
Main TRAP 123 ignore; x y z
7
TRAP 1,2,3 these; x y z
8
FCMP $3,$2,$1 comments; x y z
10
FLOT $7,ROUND_UP,8 do; x y z
11
FIX $9,$10 nothing; x y z
12
FIX $11,ROUND_DOWN,$12 that; x y z
13
ADDU $15,$16,17 would make; x y z
15
LDA $20,$21,22 difference; x y z
17
NEG $25,26,$27 the; x y z
18
bn $28,target + 44 generated; x y z
19
SYNCD 29,$30,31 code; x y z
20
PUSHGO 32,$33,34 so; x y z
22
SETH $37,target2 + 48 is; x y z
23
JMP target3 + 56 as; x y z
26
PUSHJ $41,target3 had; x y z
27
SAVE $42,0 never; x y z
28
UNSAVE 0,$43 been; x y z
29
PUT rJ,$44 there; x y z
30
GET $45,rJ at all.; x y z
32
LOC @+4 likewise; x y z
34
BYTE 3,2,1,0+4 the; x y z
35
WYDE 7,4+8 different; x y z
36
TETRA 8+12 pseudo; x y z
37
OCTA 12+16 ops,; x y z
40
# Specifying an operand field (although ignored) is necessary for a comment
41
# with a ';' to be ignorable and not interpreted as eoln, both for GAS and
44
GREG 50 + 1 naked; x y z
45
z IS 9 + 8 + 7 comments; x y z