EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1410: Decimal number syntax


Tested procedures
ExpParseNumber   ExpEvalData  
Source & expected listing t1410.htm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=16, AUTOALIGN=OFF | |t1410 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000: |; Usual decimal number syntax: |0000:D204 | DW 1234 |0002:D204 | DW 1_234 |0004:D204 | DW 1234d |0006:D204 | DW 0n1234 |0008: |; Unusual but tolerated syntax: |0008:D204 | DW 0n1234d |000A:D204 | DW 000000000000000000000000000000000001234 |000C:D204 | DW 1___________________________________234 |000E:D204 | DW 1_234_D |0010:D204 | DW 1__234_D |0012:D204 | DW 0N1234 |0014:D204 | DW 0N_1234 |0016:D204 | DW 0N_1234_ |0018:D204 | DW 0N_1_2_3_4 |001A:0000 | DW 0n0 |001C:0000 | DW 0n_ |001E:0000 | DW 0n |0020: |; Incorrect syntax: |0020: | DW 1234d_ ; Separator after suffix. |### E6101 Expression "1234d" is followed by unexpected character "_". |0020: | DW 0_n1234 ; Separator within prefix. |### E6101 Expression "0_" is followed by unexpected character "n". |0020: | DW 00n1234 ; Invalid prefix. |### E6101 Expression "00" is followed by unexpected character "n". |0020: | DW 0n123.4 ; Decimal point in integer number. |### E6101 Expression "0n123" is followed by unexpected character ".". |0020: | DW 123.4d ; Decimal point in integer number. |## W2210 Precision lost in calculation with FP number rounded to integer. |### E6101 Expression "123.4" is followed by unexpected character "d". |0020: | DW _1234 ; Separator at the beginning of number. |### E6601 Symbol "_1234" mentioned at "t1410.htm"{84} was not found. | |ENDPROGRAM t1410
Expected messages t1410.out
I0180 Assembling source file "t1410.htm". I0270 Assembling source "t1410". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t1410". "t1410.htm"{52} I0510 Assembling program pass 1. "t1410.htm"{52} E6101 Expression "1234d" is followed by unexpected character "_". "t1410.htm"{73} E6101 Expression "0_" is followed by unexpected character "n". "t1410.htm"{75} E6101 Expression "00" is followed by unexpected character "n". "t1410.htm"{77} E6101 Expression "0n123" is followed by unexpected character ".". "t1410.htm"{79} W2210 Precision lost in calculation with FP number rounded to integer. "t1410.htm"{81} E6101 Expression "123.4" is followed by unexpected character "d". "t1410.htm"{81} I0510 Assembling program pass 2. "t1410.htm"{52} E6101 Expression "1234d" is followed by unexpected character "_". "t1410.htm"{73} E6101 Expression "0_" is followed by unexpected character "n". "t1410.htm"{75} E6101 Expression "00" is followed by unexpected character "n". "t1410.htm"{77} E6101 Expression "0n123" is followed by unexpected character ".". "t1410.htm"{79} W2210 Precision lost in calculation with FP number rounded to integer. "t1410.htm"{81} E6101 Expression "123.4" is followed by unexpected character "d". "t1410.htm"{81} I0530 Assembling program pass 3 - final. "t1410.htm"{52} E6101 Expression "1234d" is followed by unexpected character "_". "t1410.htm"{73} E6101 Expression "0_" is followed by unexpected character "n". "t1410.htm"{75} E6101 Expression "00" is followed by unexpected character "n". "t1410.htm"{77} E6101 Expression "0n123" is followed by unexpected character ".". "t1410.htm"{79} W2210 Precision lost in calculation with FP number rounded to integer. "t1410.htm"{81} E6101 Expression "123.4" is followed by unexpected character "d". "t1410.htm"{81} E6601 Symbol "_1234" mentioned at "t1410.htm"{84} was not found. "t1410.htm"{84} I0660 16bit TINY BIN file "t1410.bin" created, size=32. "t1410.htm"{86} I0650 Program "t1410" assembled in 3 passes with errorlevel 6. "t1410.htm"{86} I0750 Source "t1410" (124 lines) assembled in 2 passes with errorlevel 6. I0860 Listing file "t1410.htm.lst" created, size=1751. I0990 EuroAssembler terminated with errorlevel 6.

▲Back to the top▲