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

# Test t1430: Octal number syntax

Tested procedures
  ExpParseNumber ExpEvalData

Source & expected listing t1430.htm.lst
  `| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=16, AUTOALIGN=OFF | |t1430 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000: |; Usual octal number syntax: |0000:2EA7 | DW 123456q |0002:2EA7 | DW 0o123456 |0004:2EA7 | DW 123_456Q |0006:2EA7 | DW 0O_123_456 |0008: |; Unusual but tolerated syntax: |0008:2EA7 | DW 0o123456q |000A:2EA7 | DW 0o_________________________123456 |000C:2EA7 | DW 000000000000000000000000000123456q |000E:2EA7 | DW 0o_1_2_3___4_5_6___ |0010:0000 | DW 0o0 |0012:0000 | DW 0o_ |0014:0000 | DW 0o |0016: |; Incorrect syntax: |0016: | DW 123456q_ ; Separator after suffix. |### E6101 Expression "123456q" is followed by unexpected character "_". |0016: | DW 0_o_123_456 ; Separator within prefix. |### E6101 Expression "0_" is followed by unexpected character "o". |0016: | DW 0o123856 ; Nonoctal digit in octal number. |### E6101 Expression "0o123" is followed by unexpected character "8". |0016: | DW 0o123.456 ; Decimal point in integer number. |### E6101 Expression "0o123" is followed by unexpected character ".". |0016: | DW 123.456q ; Decimal point in integer number. |## W2210 Precision lost in calculation with FP number rounded to integer. |### E6101 Expression "123.456" is followed by unexpected character "q". |0016: | DW 00o123456 ; Invalid prefix. |### E6101 Expression "00" is followed by unexpected character "o". |0016: | DW _123_456q ; Separator at the beginning of number. |### E6601 Symbol "_123_456q" mentioned at "t1430.htm"{81} was not found. | |ENDPROGRAM t1430`

Expected messages t1430.out
  `I0180 Assembling source file "t1430.htm". I0270 Assembling source "t1430". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t1430". "t1430.htm"{52} I0510 Assembling program pass 1. "t1430.htm"{52} E6101 Expression "123456q" is followed by unexpected character "_". "t1430.htm"{68} E6101 Expression "0_" is followed by unexpected character "o". "t1430.htm"{70} E6101 Expression "0o123" is followed by unexpected character "8". "t1430.htm"{72} E6101 Expression "0o123" is followed by unexpected character ".". "t1430.htm"{74} W2210 Precision lost in calculation with FP number rounded to integer. "t1430.htm"{76} E6101 Expression "123.456" is followed by unexpected character "q". "t1430.htm"{76} E6101 Expression "00" is followed by unexpected character "o". "t1430.htm"{79} I0510 Assembling program pass 2. "t1430.htm"{52} E6101 Expression "123456q" is followed by unexpected character "_". "t1430.htm"{68} E6101 Expression "0_" is followed by unexpected character "o". "t1430.htm"{70} E6101 Expression "0o123" is followed by unexpected character "8". "t1430.htm"{72} E6101 Expression "0o123" is followed by unexpected character ".". "t1430.htm"{74} W2210 Precision lost in calculation with FP number rounded to integer. "t1430.htm"{76} E6101 Expression "123.456" is followed by unexpected character "q". "t1430.htm"{76} E6101 Expression "00" is followed by unexpected character "o". "t1430.htm"{79} I0530 Assembling program pass 3 - final. "t1430.htm"{52} E6101 Expression "123456q" is followed by unexpected character "_". "t1430.htm"{68} E6101 Expression "0_" is followed by unexpected character "o". "t1430.htm"{70} E6101 Expression "0o123" is followed by unexpected character "8". "t1430.htm"{72} E6101 Expression "0o123" is followed by unexpected character ".". "t1430.htm"{74} W2210 Precision lost in calculation with FP number rounded to integer. "t1430.htm"{76} E6101 Expression "123.456" is followed by unexpected character "q". "t1430.htm"{76} E6101 Expression "00" is followed by unexpected character "o". "t1430.htm"{79} E6601 Symbol "_123_456q" mentioned at "t1430.htm"{81} was not found. "t1430.htm"{81} I0660 16bit TINY BIN file "t1430.bin" created, size=22. "t1430.htm"{83} I0650 Program "t1430" assembled in 3 passes with errorlevel 6. "t1430.htm"{83} I0750 Source "t1430" (124 lines) assembled in 2 passes with errorlevel 6. I0860 Listing file "t1430.htm.lst" created, size=1787. I0990 EuroAssembler terminated with errorlevel 6.`

▲Back to the top▲