EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1450: Floating point number syntax


Tested procedures
ExpParseNumber   ExpParseFP  
Source & expected listing t1450.htm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=21, AUTOALIGN=OFF | |t1450 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=32,PURPOSE=CODE |00000000: |; Usual FP number syntax: |00000000:66E6F642 | DD 123.45 |00000004:66E6F642 | DD 123.45E0 |00000008:66E6F642 | DD +123.45e+0 |0000000C:66E6F642 | DD +123.45e-0 |00000010:66E6F642 | DD 123_45e-2 |00000014:66E6F642 | DD 12345e-2 |00000018: |; Unusual but tolerated syntax: |00000018:66E6F642 | DD 00000000123.4500000000000000 |0000001C:66E6F642 | DD 0_123.450_000 |00000020:66E6F642 | DD 12_345_E-000_000_0002 |00000024:66E6F642 | DD 123___45_E_-_0_2_ |00000028:00000000 | DD 0. |0000002C:00000000 | DD 0e_ |00000030:00000000 | DD 0_e |00000034:00000000 | DD 0._ |00000038:00000000 | DD 0.e |0000003C:00000000 | DD 0.e_ |00000040:00000000 | DD 0_. |00000044:00000000 | DD 0_._ |00000048:00000000 | DD 0_._0 |0000004C:00000000 | DD 0_._E_ |00000050:00000000 | DD 0_._E_0 |00000054: |; Incorrect syntax: |00000054: | DD 123.45. ; More than one decimal point. |## W2210 Precision lost in calculation with FP number rounded to integer. |### E6101 Expression "123.45" is followed by unexpected character ".". |00000054: | DD 12345E-2.0 ; Decimal point in exponent. |## W2210 Precision lost in calculation with FP number rounded to integer. |### E6101 Expression "12345E-2" is followed by unexpected character ".". |00000054: | DD 123.45E- ; Invalid exponent. |## W2210 Precision lost in calculation with FP number rounded to integer. |### E6109 Premature end of expression "123.45E-". |00000054: | DD 123.45E-2h ; Invalid exponent. |## W2210 Precision lost in calculation with FP number rounded to integer. |### E6101 Expression "123.45E-2" is followed by unexpected character "h". |00000054: | DD _123.45 ; Separator at the beginning of number. |### E6601 Symbol "_123.45" mentioned at "t1450.htm"{90} was not found. | |ENDPROGRAM t1450
Expected messages t1450.out
I0180 Assembling source file "t1450.htm". I0270 Assembling source "t1450". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t1450". "t1450.htm"{52} I0510 Assembling program pass 1. "t1450.htm"{52} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{78} E6101 Expression "123.45" is followed by unexpected character ".". "t1450.htm"{78} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{81} E6101 Expression "12345E-2" is followed by unexpected character ".". "t1450.htm"{81} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{84} E6109 Premature end of expression "123.45E-". "t1450.htm"{84} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{87} E6101 Expression "123.45E-2" is followed by unexpected character "h". "t1450.htm"{87} I0510 Assembling program pass 2. "t1450.htm"{52} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{78} E6101 Expression "123.45" is followed by unexpected character ".". "t1450.htm"{78} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{81} E6101 Expression "12345E-2" is followed by unexpected character ".". "t1450.htm"{81} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{84} E6109 Premature end of expression "123.45E-". "t1450.htm"{84} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{87} E6101 Expression "123.45E-2" is followed by unexpected character "h". "t1450.htm"{87} I0530 Assembling program pass 3 - final. "t1450.htm"{52} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{78} E6101 Expression "123.45" is followed by unexpected character ".". "t1450.htm"{78} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{81} E6101 Expression "12345E-2" is followed by unexpected character ".". "t1450.htm"{81} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{84} E6109 Premature end of expression "123.45E-". "t1450.htm"{84} W2210 Precision lost in calculation with FP number rounded to integer. "t1450.htm"{87} E6101 Expression "123.45E-2" is followed by unexpected character "h". "t1450.htm"{87} E6601 Symbol "_123.45" mentioned at "t1450.htm"{90} was not found. "t1450.htm"{90} I0660 16bit TINY BIN file "t1450.bin" created, size=84. "t1450.htm"{92} I0650 Program "t1450" assembled in 3 passes with errorlevel 6. "t1450.htm"{92} I0750 Source "t1450" (136 lines) assembled in 2 passes with errorlevel 6. I0860 Listing file "t1450.htm.lst" created, size=2136. I0990 EuroAssembler terminated with errorlevel 6.

▲Back to the top▲