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

# Test t2551: Pseudoinstruction EQU with origin manipulation

Description
  Program defines dummy translate table for bytes 0..255. Then it returns origin position to offset 0x61 in this table and redefines characters 'a'..'z' with their upper-case equivalent 'A'..'Z'.
Tested procedures
  PseudoEQU

Source & expected listing t2551.htm.lst
  `| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTREPEAT=OFF | |t2551 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF, IMAGEBASE=0 |[BIN] |[BIN] SEGMENT WIDTH=16, PURPOSE=DATA |0000: |Table: |30 |char %FOR 0..255 |0000:00 | DB %char | | %ENDFOR char |[BIN]:0100 |TableEnd EQU $ |0061: |$ EQU Table + 'a' |3937 |char %FOR 'a'..'z' |0061:41 | DB 'a' ^ 'A' ^ %char ; Convert %char to upper case. | | %ENDFOR char |0100: |$ EQU TableEnd |0100:55AA | DB 0x55,0xAA | | ENDPROGRAM t2551`

Expected messages t2551.out
  `I0180 Assembling source file "t2551.htm". I0270 Assembling source "t2551". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2551". "t2551.htm"{52} I0510 Assembling program pass 1. "t2551.htm"{52} I0510 Assembling program pass 2. "t2551.htm"{52} I0530 Assembling program pass 3 - final. "t2551.htm"{52} I0660 16bit TINY BIN file "t2551.bin" created, size=258. "t2551.htm"{65} I0650 Program "t2551" assembled in 3 passes with errorlevel 0. "t2551.htm"{65} I0750 Source "t2551" (105 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t2551.htm.lst" created, size=918. I0990 EuroAssembler terminated with errorlevel 0.`

Expected output file t2551. bin

      0000: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F  °·········¬·····
      0010: 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F  ················
      0020: 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F  ¯!"#$%&'()*+,-./
      0030: 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F  0123456789:;<=>?
      0040: 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F  @ABCDEFGHIJKLMNO
      0050: 50 51 52 53 54 55 56 57 58 59 5A 5B 5C 5D 5E 5F  PQRSTUVWXYZ[\]^_
      0060: 60 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F  `ABCDEFGHIJKLMNO
      0070: 50 51 52 53 54 55 56 57 58 59 5A 7B 7C 7D 7E 7F  PQRSTUVWXYZ{|}~¤
      0080: 80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      0090: 90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      00A0: A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      00B0: B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      00C0: C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      00D0: D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      00E0: E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      00F0: F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
      0100: 55 AA                                            U¤

▲Back to the top▲