Test t1641:
Attribute syntax
- Source & expected listing
t1641.htm.lst
-
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16,AUTOALIGN=OFF
| |t1641 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF
|[BIN] |[BIN] ; Base segment.
|0000:44444444 | DD 0x4444_4444 ; Placeholder.
|0004:2222 |BaseSym: DW 0x2222 ; Definition of a data address symbol in base section [BIN].
|0006: |; Acceptable syntax of applying attribute operator to a symbol:
|0006:5700 | DW TYPE#BaseSym
|0008:5700 | DW TYPE#BaseSym:
|000A:5700 | DW Type#BaseSym
|000C:5700 | DW TYPE# BaseSym
|000E:5700 | DW TYPE#(BaseSym)
|0010:5700 | DW TYPE# ((BaseSym))
|0012:5700 | DW TYPE#[BaseSym]
|0014:5700 | DW TYPE#[SI+BaseSym]
|0016: |;
|0016:0200 | DW SIZE#BaseSym
|0018:0200 | DW SIZE#BaseSym:
|001A:0200 | DW size#BaseSym
|001C:0200 | DW SIZE# BaseSym
|001E:0200 | DW SIZE#(BaseSym)
|0020:0200 | DW SIZE# ((BaseSym))
|0022:0200 | DW SIZE#[BaseSym]
|0024:0200 | DW SIZE#[SI+BaseSym]
|0026: |;
|0026:0400 | DW OFFSET#BaseSym
|0028:0400 | DW OFFSET#BaseSym:
|002A:0400 | DW Offset#BaseSym
|002C:0400 | DW OFFSET# BaseSym
|002E:0400 | DW OFFSET#(BaseSym)
|0030:0400 | DW OFFSET# ((BaseSym))
|0032:0000 | DW OFFSET#[BaseSym]
|0034:0000 | DW OFFSET#[SI+BaseSym]
|0036: |;
|0036:[0000] | DW SECTION#BaseSym
|0038:[0000] | DW SECTION#BaseSym:
|003A:[0000] | DW section#BaseSym
|003C:[0000] | DW SECTION# BaseSym
|003E:[0000] | DW SECTION#(BaseSym)
|0040:[0000] | DW SECTION# ((BaseSym))
|0042:[0000] | DW SECTION#[BaseSym]
|0044:[0000] | DW SECTION#[SI+BaseSym]
|0046: |;
|0046:[0000] | DW SEGMENT#BaseSym
|0048:[0000] | DW SEGMENT#BaseSym:
|004A:[0000] | DW segment#BaseSym
|004C:[0000] | DW SEGMENT# BaseSym
|004E:[0000] | DW SEGMENT#(BaseSym)
|0050:[0000] | DW SEGMENT# ((BaseSym))
|0052:[0000] | DW SEGMENT#[BaseSym]
|0054:[0000] | DW SEGMENT#[SI+BaseSym]
| |ENDPROGRAM t1641
- Expected messages
t1641.out
I0180 Assembling source file "t1641.htm".
I0270 Assembling source "t1641".
I0310 Assembling source pass 1.
I0330 Assembling source pass 2 - final.
I0470 Assembling program "t1641". "t1641.htm"{41}
I0510 Assembling program pass 1. "t1641.htm"{41}
I0510 Assembling program pass 2. "t1641.htm"{41}
I0530 Assembling program pass 3 - final. "t1641.htm"{41}
I0660 16bit TINY BIN file "t1641.bin" created, size=86. "t1641.htm"{90}
I0650 Program "t1641" assembled in 3 passes with errorlevel 0. "t1641.htm"{90}
I0750 Source "t1641" (109 lines) assembled in 2 passes with errorlevel 0.
I0860 Listing file "t1641.htm.lst" created, size=2054.
I0990 EuroAssembler terminated with errorlevel 0.
▲Back to the top▲