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

# Test t1420: Binary number syntax

Tested procedures
  ExpParseNumber ExpEvalData

Source & expected listing t1420.htm.lst
  `| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=16, AUTOALIGN=OFF | |t1420 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000: |; Usual binary number syntax: |0000:BC0A | DW 101010111100b |0002:BC0A | DW 0y101010111100 |0004:BC0A | DW 1010_1011_1100b |0006:BC0A | DW 0000_1010__1011_1100b |0008:BC0A | DW 0y1010_1011_1100 |000A:BC0A | DW 0y_0000_1010_1011_1100 |000C: |; Unusual but tolerated syntax: |000C:BC0A | DW 0y101010111100b |000E:BC0A | DW 0Y_1010_1011_1100B |0010:BC0A | DW 101010111100_______________________b |0012:BC0A | DW 00000000000000000000000101010111100b |0014:BC0A | DW 1_0_1_0___1_0_1_1___1_1_0_0_b |0016:0000 | DW 0y0 |0018:0000 | DW 0y_ |001A:0000 | DW 0y |001C: |; Incorrect syntax: |001C: | DW 101010111100b_ ; Separator after suffix. |### E6101 Expression "101010111100b" is followed by unexpected character "_". |001C: | DW 0_y101010111100 ; Separator within prefix. |### E6101 Expression "0_" is followed by unexpected character "y". |001C: | DW 00y101010111100 ; Invalid prefix. |### E6101 Expression "00" is followed by unexpected character "y". |001C: | DW 0y101020111100 ; Nonbinary digit in binary number. |### E6101 Expression "0y1010" is followed by unexpected character "2". |001C: | DW 0y1010101111.00 ; Decimal point in integer number. |### E6101 Expression "0y1010101111" is followed by unexpected character ".". |001C: | DW 1010101111.00b ; Decimal point in integer number. |### E6101 Expression "1010101111.00" is followed by unexpected character "b". |001C: | DW _0y101010111100 ; Separator at the beginning of number. |### E6601 Symbol "_0y101010111100" mentioned at "t1420.htm"{83} was not found. | |ENDPROGRAM t1420`

Expected messages t1420.out
  `I0180 Assembling source file "t1420.htm". I0270 Assembling source "t1420". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t1420". "t1420.htm"{52} I0510 Assembling program pass 1. "t1420.htm"{52} E6101 Expression "101010111100b" is followed by unexpected character "_". "t1420.htm"{71} E6101 Expression "0_" is followed by unexpected character "y". "t1420.htm"{73} E6101 Expression "00" is followed by unexpected character "y". "t1420.htm"{75} E6101 Expression "0y1010" is followed by unexpected character "2". "t1420.htm"{77} E6101 Expression "0y1010101111" is followed by unexpected character ".". "t1420.htm"{79} E6101 Expression "1010101111.00" is followed by unexpected character "b". "t1420.htm"{81} I0510 Assembling program pass 2. "t1420.htm"{52} E6101 Expression "101010111100b" is followed by unexpected character "_". "t1420.htm"{71} E6101 Expression "0_" is followed by unexpected character "y". "t1420.htm"{73} E6101 Expression "00" is followed by unexpected character "y". "t1420.htm"{75} E6101 Expression "0y1010" is followed by unexpected character "2". "t1420.htm"{77} E6101 Expression "0y1010101111" is followed by unexpected character ".". "t1420.htm"{79} E6101 Expression "1010101111.00" is followed by unexpected character "b". "t1420.htm"{81} I0530 Assembling program pass 3 - final. "t1420.htm"{52} E6101 Expression "101010111100b" is followed by unexpected character "_". "t1420.htm"{71} E6101 Expression "0_" is followed by unexpected character "y". "t1420.htm"{73} E6101 Expression "00" is followed by unexpected character "y". "t1420.htm"{75} E6101 Expression "0y1010" is followed by unexpected character "2". "t1420.htm"{77} E6101 Expression "0y1010101111" is followed by unexpected character ".". "t1420.htm"{79} E6101 Expression "1010101111.00" is followed by unexpected character "b". "t1420.htm"{81} E6601 Symbol "_0y101010111100" mentioned at "t1420.htm"{83} was not found. "t1420.htm"{83} I0660 16bit TINY BIN file "t1420.bin" created, size=28. "t1420.htm"{85} I0650 Program "t1420" assembled in 3 passes with errorlevel 6. "t1420.htm"{85} I0750 Source "t1420" (123 lines) assembled in 2 passes with errorlevel 6. I0860 Listing file "t1420.htm.lst" created, size=1940. I0990 EuroAssembler terminated with errorlevel 6.`

▲Back to the top▲