| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# Test t2280: Pseudoinstruction EUROASM CODEPAGE=

Description
  Codepage may be defined as one of enumerated constants (quoted or unquoted) defined in DictCodePages, or as a number or numeric expression.
Tested procedures
  EaoptAssemble ExpStoreString ExpStoreUString DictCodePages

Source & expected listing t2280.htm.lst
  `| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=36,AUTOALIGN=ON | |t2280 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] | | EUROASM CODEPAGE=UTF-8 ; This is the recomended default. | | EUROASM CodePage= Utf-8 ; All option names and enumerated values are case-independent. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 65001. |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="65001",size=5 |# D1790 **** End of %DISPLAY | | EUROASM CODEPAGE=Windows-1250 ; Unquoted enumeration. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 1250. |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="1250",size=4 |# D1790 **** End of %DISPLAY | | EUROASM CODEPAGE='Windows-1251' ; Quoted enumeration. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 1251. |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="1251",size=4 |# D1790 **** End of %DISPLAY | | EUROASM CODEPAGE=1252 ; Codepage specified as a number. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 1252. |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="1252",size=4 |# D1790 **** End of %DISPLAY | | EUROASM CODEPAGE= 1250 + 3 ; Codepage specified as numeric expression. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 1253. |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="1253",size=4 |# D1790 **** End of %DISPLAY |[]:270F |Windows EQU 9999 | | EUROASM CODEPAGE=Windows-123 ; Unknown enumeration, treated as numeric expression 9999-123=9876. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 9876. |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="9876",size=4 |# D1790 **** End of %DISPLAY | |;; Code page 9876 does not exist in Windows, nevertheless €ASM won't complain. | | EUROASM CODEPAGE='Windows-123' ; Unknown quoted enumeration. E7332 and W3715 expected. |### E7332 Plain numeric value or expression expected. |## W3715 Invalid [EUROASM] option "CODEPAGE='Windows-123'". Ignored. | |%DISPLAY SystemVariable=CODEPAGE ; Expected value 9876 (unchanged). |# D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* |# D1770 name="%^CODEPAGE",value="9876",size=4 |# D1790 **** End of %DISPLAY | |ENDPROGRAM t2280`

Expected messages t2280.out
  `I0180 Assembling source file "t2280.htm". I0270 Assembling source "t2280". I0310 Assembling source pass 1. D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{65} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{65} D1790 **** End of %DISPLAY "t2280.htm"{65} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{70} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{70} D1790 **** End of %DISPLAY "t2280.htm"{70} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{75} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{75} D1790 **** End of %DISPLAY "t2280.htm"{75} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{80} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{80} D1790 **** End of %DISPLAY "t2280.htm"{80} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{85} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{85} D1790 **** End of %DISPLAY "t2280.htm"{85} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{91} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{91} D1790 **** End of %DISPLAY "t2280.htm"{91} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{99} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{99} D1790 **** End of %DISPLAY "t2280.htm"{99} I0330 Assembling source pass 2 - final. I0470 Assembling program "t2280". "t2280.htm"{61} I0510 Assembling program pass 1. "t2280.htm"{61} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{65} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{65} D1790 **** End of %DISPLAY "t2280.htm"{65} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{70} D1770 name="%^CODEPAGE",value="1250",size=4 "t2280.htm"{70} D1790 **** End of %DISPLAY "t2280.htm"{70} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{75} D1770 name="%^CODEPAGE",value="1251",size=4 "t2280.htm"{75} D1790 **** End of %DISPLAY "t2280.htm"{75} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{80} D1770 name="%^CODEPAGE",value="1252",size=4 "t2280.htm"{80} D1790 **** End of %DISPLAY "t2280.htm"{80} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{85} D1770 name="%^CODEPAGE",value="1253",size=4 "t2280.htm"{85} D1790 **** End of %DISPLAY "t2280.htm"{85} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{91} D1770 name="%^CODEPAGE",value="9876",size=4 "t2280.htm"{91} D1790 **** End of %DISPLAY "t2280.htm"{91} W3715 Invalid [EUROASM] option "CODEPAGE='Windows-123'". Ignored. "t2280.htm"{96} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{99} D1770 name="%^CODEPAGE",value="9876",size=4 "t2280.htm"{99} D1790 **** End of %DISPLAY "t2280.htm"{99} I0510 Assembling program pass 2. "t2280.htm"{61} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{65} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{65} D1790 **** End of %DISPLAY "t2280.htm"{65} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{70} D1770 name="%^CODEPAGE",value="1250",size=4 "t2280.htm"{70} D1790 **** End of %DISPLAY "t2280.htm"{70} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{75} D1770 name="%^CODEPAGE",value="1251",size=4 "t2280.htm"{75} D1790 **** End of %DISPLAY "t2280.htm"{75} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{80} D1770 name="%^CODEPAGE",value="1252",size=4 "t2280.htm"{80} D1790 **** End of %DISPLAY "t2280.htm"{80} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{85} D1770 name="%^CODEPAGE",value="1253",size=4 "t2280.htm"{85} D1790 **** End of %DISPLAY "t2280.htm"{85} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{91} D1770 name="%^CODEPAGE",value="9876",size=4 "t2280.htm"{91} D1790 **** End of %DISPLAY "t2280.htm"{91} W3715 Invalid [EUROASM] option "CODEPAGE='Windows-123'". Ignored. "t2280.htm"{96} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{99} D1770 name="%^CODEPAGE",value="9876",size=4 "t2280.htm"{99} D1790 **** End of %DISPLAY "t2280.htm"{99} I0530 Assembling program pass 3 - final. "t2280.htm"{61} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{65} D1770 name="%^CODEPAGE",value="65001",size=5 "t2280.htm"{65} D1790 **** End of %DISPLAY "t2280.htm"{65} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{70} D1770 name="%^CODEPAGE",value="1250",size=4 "t2280.htm"{70} D1790 **** End of %DISPLAY "t2280.htm"{70} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{75} D1770 name="%^CODEPAGE",value="1251",size=4 "t2280.htm"{75} D1790 **** End of %DISPLAY "t2280.htm"{75} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{80} D1770 name="%^CODEPAGE",value="1252",size=4 "t2280.htm"{80} D1790 **** End of %DISPLAY "t2280.htm"{80} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{85} D1770 name="%^CODEPAGE",value="1253",size=4 "t2280.htm"{85} D1790 **** End of %DISPLAY "t2280.htm"{85} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{91} D1770 name="%^CODEPAGE",value="9876",size=4 "t2280.htm"{91} D1790 **** End of %DISPLAY "t2280.htm"{91} E7332 Plain numeric value or expression expected. "t2280.htm"{96} W3715 Invalid [EUROASM] option "CODEPAGE='Windows-123'". Ignored. "t2280.htm"{96} D1760 **** %DISPLAY SystemVariables=%^CODEPAGE* "t2280.htm"{99} D1770 name="%^CODEPAGE",value="9876",size=4 "t2280.htm"{99} D1790 **** End of %DISPLAY "t2280.htm"{99} I0660 16bit TINY BIN file "t2280.bin" created, size=0. "t2280.htm"{103} I0650 Program "t2280" assembled in 3 passes with errorlevel 7. "t2280.htm"{103} I0750 Source "t2280" (210 lines) assembled in 2 passes with errorlevel 7. I0860 Listing file "t2280.htm.lst" created, size=3085. I0990 EuroAssembler terminated with errorlevel 7.`

▲Back to the top▲