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

# Test t7321: User-defined variables

Description
  Test will define a few %variables and then it creates a new statement from them.

Source & expected listing t7321.htm.lst
  `| | EUROASM DUMP=ON, DUMPALL=No, DUMPWIDTH=30, \ | | LIST=ON, LISTVAR=YES | |t7321 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF |4C6162656C3A3A |%Field1 %SET Label:: ; This is a label field. |4442 |%Field2 %SET DB ; This is an operation field. |312C322C33 |%Field3 %SET 1,2,3 ; This is an array of operands. |223B2054686973206973206120~~|%Field4 %SET "; This is a comment field." | |;; | |;; Use substring operation to get rid of quotes in %Field4: |[DATA] ::::Section changed. |0000:010203 |%Field1 %Field2 %Field3 %Field4[2..%&-1] | !Label:: DB 1,2,3 ; This is a comment field. | | ENDPROGRAM t7321`

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

▲Back to the top▲