-
Notifications
You must be signed in to change notification settings - Fork 50
/
lstlang0.sty
70 lines (64 loc) · 2.1 KB
/
lstlang0.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
\lst@definelanguage[6502]{Assembler}{
comment=[l]{;},
keywords={
ADC, AND, ASL, BCC, BCS, BEQ, BIT, BMI, BNE, BPL, BRK, BVC, BVS, CLC,
CLD, CLI, CLV, CMP, CPX, CPY, DEC, DEX, DEY, EOR, INC, INX, INY, JMP,
JSR, LDA, LDX, LDY, LSR, NOP, ORA, PHA, PHP, PLA, PLP, ROL, ROR, RTI,
RTS, SBC, SEC, SED, SEI, STA, STX, STY, TAX, TAY, TSX, TXA, TXS, TYA
},
sensitive=false,
}[keywords]
\lst@definelanguage[65c02]{Assembler}[6502]{Assembler}{
morekeywords={
BRA, PHX, PHY, PLX, PLY, STZ, TRB, TSB
}
}[keywords]
\lst@definelanguage[r65c02]{Assembler}[65c02]{Assembler}{
morekeywords={
BBR0, BBR1, BBR2, BBR3, BBR4, BBR5, BBR6, BBR7,
BBS0, BBS1, BBS2, BBS3, BBS4, BBS5, BBS6, BBS7,
RMB0, RMB1, RMB2, RMB3, RMB4, RMB5, RMB6, RMB7,
SMB0, SMB1, SMB2, SMB3, SMB4, SMB5, SMB6, SMB7
}
}[keywords]
\lst@definelanguage[65ce02]{Assembler}[r65c02]{Assembler}{
morekeywords={
ASR, ASW, AUG, BRU, BSR, CLE, CPZ, DEW, DEZ, INW, INZ, LDZ, NEG,
PHW, PHZ, PLZ, ROW, RTN, SEE, TAB, TAZ, TBA, TSY, TYS, TZA
}
}[keywords]
\lst@definelanguage[4510]{Assembler}[65ce02]{Assembler}{
deletekeywords={
AUG
}
morekeywords={
EOM, MAP
}
}[keywords]
\lst@definelanguage[45gs02]{Assembler}[4510]{Assembler}{
deletekeywords={
NOP
}
morekeywords={
ADCQ, ANDQ, ASLQ, ASRQ, BITQ, CPQ, DEQ, EORQ, INQ, LDQ, LSRQ, ORQ,
ROLQ, RORQ, SBCQ, STQ
}
}[keywords]
\lst@definelanguage[acme]{Assembler}[45gs02]{Assembler}{
alsoletter=!,
morecomment=[l]{//},
keywords=[2]{
!8, !08, !16, !24, !32, !addr, !address, !al, !align, !as,
!be16, !be24, !be32, !bin, !binary, !by, !byte, !cbm, !convtab, !cpu, !ct,
!do, !endoffile, !eof, !error, !fi, !fill, !for, !h, !hex,
!if, !ifdef, !ifndef, !initmem, !le16, !le24, !le32, !macro, !pet, !pseudopc,
!raw, !realpc, !rl, !rs, !scr, !scrxor, !serious, !set, !skip, !sl,
!source, !src, !subzone, !symbollist, !sz, !text, !to, !tx, !warn, !while,
!wo, !word, !xor, !zn, !zone
},
morekeywords={
LBCC, LBCS, LBEQ, LBMI, LBNE, LBPL, LBRA, LBRU, LBVC, LBVS
},
string=[b]{"},
morestring=[b]{'}
}[comments,keywords,strings]