@@ -6,39 +6,39 @@ export function isNumberStr(str: string): boolean {
66 return false ;
77}
88const asciiname : string [ ] = [
9- "NUL" + localize ( "ascii.NUL" , "(NULL)" ) ,
10- "SOH" + localize ( "ascii.SOH" , "(Start Of Headling)" ) ,
11- "STX" + localize ( "ascii.STX" , "(Start Of Text)" ) ,
12- "ETX" + localize ( "ascii.ETX" , "(End Of Text)" ) ,
13- "EOT" + localize ( "ascii.EOT" , "(End Of Transmission)" ) ,
14- "ENQ" + localize ( "ascii.ENQ" , "(Enquiry)" ) ,
15- "ACK" + localize ( "ascii.ACK" , "(Acknowledge)" ) ,
16- "BEL" + localize ( "ascii.BEL" , "(Bell)" ) ,
17- "BS " + localize ( "ascii.BS" , "(Backspace)" ) ,
18- "HT " + localize ( "ascii.HT" , "(Horizontal Tab)" ) ,
19- "LF/NL" + localize ( "ascii.LFNL" , "(Line Feed/New Line)" ) ,
20- "VT " + localize ( "ascii.VT" , "(Vertical Tab)" ) ,
21- "FF/NP " + localize ( "ascii.FFNP" , "(Form Feed/New Page)" ) ,
22- "CR" + localize ( "ascii.CR" , "(Carriage Return) " ) ,
23- "SO" + localize ( "ascii.SO" , "(Shift Out)" ) ,
24- "SI" + localize ( "ascii.SI" , "(Shift In)" ) ,
25- "DLE" + localize ( "ascii.DLE" , "(Data Link Escape)" ) ,
26- "DC1/XON" + localize ( "ascii.DC1" , "(Device Control 1/Transmission On)" ) ,
27- "DC2" + localize ( "ascii.DC2" , "(Device Control 2)" ) ,
28- "DC3/XOFF" + localize ( "ascii.DC3" , "(Device Control 3/Transmission Off)" ) ,
29- "DC4" + localize ( "ascii.DC4" , "(Device Control 4)" ) ,
30- "NAK" + localize ( "ascii.NAK" , "(Negative Acknowledge)" ) ,
31- "SYN" + localize ( "ascii.SYN" , "(Synchronous Idle)" ) ,
32- "ETB" + localize ( "ascii.ETB" , "(End of Transmission Block) " ) ,
33- "CAN" + localize ( "ascii.CAN" , "(Cancel)" ) ,
34- "EM" + localize ( "ascii.EM" , "(End of Medium)" ) ,
35- "SUB" + localize ( "ascii.SUB" , "(Substitute)" ) ,
36- "ESC" + localize ( "ascii.ESC" , "(Escape)" ) ,
37- "FS" + localize ( "ascii.FS" , "(File Separator)" ) ,
38- "GS" + localize ( "ascii.GS" , "(Group Separator)" ) ,
39- "RS" + localize ( "ascii.RS" , "(Record Separator)" ) ,
40- "US" + localize ( "ascii.US" , "(Unit Separator)" ) ,
41- localize ( "ascii.space" , "(Space) " ) ,
9+ "NUL" + localize ( "ascii.NUL" , ) ,
10+ "SOH" + localize ( "ascii.SOH" , ) ,
11+ "STX" + localize ( "ascii.STX" , ) ,
12+ "ETX" + localize ( "ascii.ETX" , ) ,
13+ "EOT" + localize ( "ascii.EOT" , ) ,
14+ "ENQ" + localize ( "ascii.ENQ" , ) ,
15+ "ACK" + localize ( "ascii.ACK" , ) ,
16+ "BEL" + localize ( "ascii.BEL" , ) ,
17+ "BS " + localize ( "ascii.BS" , ) ,
18+ "HT " + localize ( "ascii.HT" , ) ,
19+ "LF/NL" + localize ( "ascii.LFNL" , ) ,
20+ "VT " + localize ( "ascii.VT" , ) ,
21+ "FF/NP " + localize ( "ascii.FFNP" , ) ,
22+ "CR" + localize ( "ascii.CR" , ) ,
23+ "SO" + localize ( "ascii.SO" , ) ,
24+ "SI" + localize ( "ascii.SI" , ) ,
25+ "DLE" + localize ( "ascii.DLE" , ) ,
26+ "DC1/XON" + localize ( "ascii.DC1" , ) ,
27+ "DC2" + localize ( "ascii.DC2" , ) ,
28+ "DC3/XOFF" + localize ( "ascii.DC3" , ) ,
29+ "DC4" + localize ( "ascii.DC4" , ) ,
30+ "NAK" + localize ( "ascii.NAK" , ) ,
31+ "SYN" + localize ( "ascii.SYN" , ) ,
32+ "ETB" + localize ( "ascii.ETB" , ) ,
33+ "CAN" + localize ( "ascii.CAN" , ) ,
34+ "EM" + localize ( "ascii.EM" , ) ,
35+ "SUB" + localize ( "ascii.SUB" , ) ,
36+ "ESC" + localize ( "ascii.ESC" , ) ,
37+ "FS" + localize ( "ascii.FS" , ) ,
38+ "GS" + localize ( "ascii.GS" , ) ,
39+ "RS" + localize ( "ascii.RS" , ) ,
40+ "US" + localize ( "ascii.US" , ) ,
41+ localize ( "ascii.space" , ) ,
4242 "!" , "\" " , "#" ,
4343 "$" , "%" , "&" , "'" , "(" ,
4444 ")" , "*" , "+" , "," , "-" ,
@@ -59,15 +59,15 @@ const asciiname: string[] = [
5959 "t" , "u" , "v" , "w" , "x" ,
6060 "y" , "z" , "{" , "|" , "}" ,
6161 "~" ,
62- "DEL" + localize ( "ascii.DEL" , "(Delete)" ) ,
62+ "DEL" + localize ( "ascii.DEL" ) ,
6363] ;
6464export function getNumMsg ( word : string ) : string {
6565 const base : number = word . endsWith ( 'h' ) ? 16 : word . endsWith ( 'q' ) ? 8 : word . endsWith ( 'b' ) ? 2 : 10 ;
6666 const value : number = Number . parseInt ( word , base ) ;
67- const hex = localize ( "num.hex" , "Hexadecimal Number" ) ;
68- const oct = localize ( "num.oct" , "Octal Number" ) ;
69- const dec = localize ( "num.dec" , "Decimal Number" ) ;
70- const bin = localize ( "num.bin" , "Binary Number" ) ;
67+ const hex = localize ( "num.hex" , ) ;
68+ const oct = localize ( "num.oct" , ) ;
69+ const dec = localize ( "num.dec" , ) ;
70+ const bin = localize ( "num.bin" , ) ;
7171 let s = "(" + ( base === 16 ? hex : base === 8 ? oct : base === 10 ? dec : bin ) + ") " + word + ":\n\n" ;
7272 s += " `DEC`: " + value . toString ( 10 ) + "D\n\n" ;
7373 s += " `HEX`: " + value . toString ( 16 ) + "H\n\n" ;
@@ -103,29 +103,29 @@ export function getType(type: KeywordType | string): string {
103103 }
104104 switch ( itsType ) {
105105 case KeywordType . Instruction :
106- return localize ( "keykind.Command" , "(Opcode mnemonics)" ) ;
106+ return localize ( "keykind.Command" ) ;
107107 case KeywordType . MemoryAllocation :
108- return localize ( "keykind.Memory" , "(Data definitions)" ) ;
108+ return localize ( "keykind.Memory" , ) ;
109109 case KeywordType . PreCompileCommand :
110- return localize ( "keykind.Instruction" , "(Assembly directives)" ) ;
110+ return localize ( "keykind.Instruction" , ) ;
111111 case KeywordType . Register :
112- return localize ( "keykind.Register" , "(Register)" ) ;
112+ return localize ( "keykind.Register" , ) ;
113113 case KeywordType . SavedWord :
114- return localize ( "keykind.Saved" , "(Saved)" ) ;
114+ return localize ( "keykind.Saved" , ) ;
115115 case KeywordType . Size :
116- return localize ( "keykind.Size" , "(Size)" ) ;
116+ return localize ( "keykind.Size" , ) ;
117117 case KeywordType . Label :
118- return localize ( "keykind.Label" , "(Label)" ) ;
118+ return localize ( "keykind.Label" , ) ;
119119 case KeywordType . Macro :
120- return localize ( "keykind.Macro" , "(Macro)" ) ;
120+ return localize ( "keykind.Macro" , ) ;
121121 case KeywordType . Procedure :
122- return localize ( "keykind.Procedure" , "(Procedure)" ) ;
122+ return localize ( "keykind.Procedure" , ) ;
123123 case KeywordType . Structure :
124- return localize ( "keykind.Structure" , "(Structure)" ) ;
124+ return localize ( "keykind.Structure" , ) ;
125125 case KeywordType . Variable :
126- return localize ( "keykind.Variable" , "(Variable)" ) ;
126+ return localize ( "keykind.Variable" , ) ;
127127 case KeywordType . Segment :
128- return localize ( "keykind.Segment" , "(Segment)" ) ;
128+ return localize ( "keykind.Segment" , ) ;
129129 }
130130 return type . toString ( ) ;
131131}
0 commit comments