EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1641: Attribute syntax


Description
Attributes applied on address Symbol in different syntax.
Source & expected listing t1641.htm.lst
| |EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16,AUTOALIGN=OFF | |t1641 PROGRAM FORMAT=BIN,MODEL=SMALL,WIDTH=16,LISTMAP=ON,LISTGLOBALS=ON,IMAGEBASE=0x0600 | |[DGROUP] GROUP [DATA1],[DATA2] |[DATA1] |[DATA1] SEGMENT ALIGN=16 |0000:11111111 |DD 0x1111_1111 |[DATA2] |[DATA2] SEGMENT ALIGN=16 |0000:22222222 |DD 0x2222_2222 |[DSECT] |[DSECT] ; Section with alignment and purpose inherited from segment [DATA2]. |0000:3333 |DW 0x3333 |0002:4444 |Symbol:: DW 0x4444 ; The actual inspected Symbol. | |;; |0004:00000000~|ALIGN 16 |0010:5700 |DW TYPE#Symbol ; 0x0057 = 'W' (WORD). |0012:5700 |DW TYPE#Symbol: |0014:5700 |DW Type#Symbol |0016:5700 |DW TYPE# Symbol |0018:5700 |DW TYPE#(Symbol) |001A:5700 |DW TYPE# ((Symbol)) |001C:5700 |DW TYPE#[Symbol] |001E:5700 |DW TYPE#[SI+Symbol] | |;; |0020: |ALIGN 16 |0020:0200 |DW SIZE#Symbol ; 0x0002 (16bit WORD). |0022:0200 |DW SIZE#Symbol: |0024:0200 |DW size#Symbol |0026:0200 |DW SIZE# Symbol |0028:0200 |DW SIZE#(Symbol) |002A:0200 |DW SIZE# ((Symbol)) |002C:0200 |DW SIZE#[Symbol] |002E:0200 |DW SIZE#[SI+Symbol] | |;; |0030: |ALIGN 16 |0030:5000 |DW SCOPE#Symbol ; 0x0050 = 'P' (PUBLIC). |0032:5000 |DW SCOPE#Symbol: |0034:5000 |DW scope#Symbol |0036:5000 |DW SCOPE# Symbol |0038:5000 |DW SCOPE#(Symbol) |003A:5000 |DW SCOPE# ((Symbol)) |003C:5000 |DW SCOPE#[Symbol] |003E:5000 |DW SCOPE#[SI+Symbol] | |;; |0040: |ALIGN 16 |0040:0200 |DW OFFSET#Symbol ; 0x0002 in section [DSECT]. |0042:0200 |DW OFFSET#Symbol: |0044:0200 |DW Offset#Symbol |0046:0200 |DW OFFSET# Symbol |0048:0200 |DW OFFSET#(Symbol) |004A:0200 |DW OFFSET# ((Symbol)) |004C:0200 |DW OFFSET#[Symbol] |004E:0200 |DW OFFSET#[SI+Symbol] | |;; |0050: |ALIGN 16 |0050:[0000] |DW SECTION#Symbol ; 0x0620 in FLAT model or 0x0020 in SMALL model. |0052:[0000] |DW SECTION#Symbol: |0054:[0000] |DW section#Symbol |0056:[0000] |DW SECTION# Symbol |0058:[0000] |DW SECTION#(Symbol) |005A:[0000] |DW SECTION# ((Symbol)) |005C:[0000] |DW SECTION#[Symbol] |005E:[0000] |DW SECTION#[SI+Symbol] | |;; |0060: |ALIGN 16 |0060:[0000] |DW SEGMENT#Symbol ; 0x0610 in FLAT model or 0x0010 in SMALL model. |0062:[0000] |DW SEGMENT#Symbol: |0064:[0000] |DW segment#Symbol |0066:[0000] |DW SEGMENT# Symbol |0068:[0000] |DW SEGMENT#(Symbol) |006A:[0000] |DW SEGMENT# ((Symbol)) |006C:[0000] |DW SEGMENT#[Symbol] |006E:[0000] |DW SEGMENT#[SI+Symbol] | |;; |0070: |ALIGN 16 |0070:[0000] |DW GROUP#Symbol ; 0x0600 in FLAT model or 0x0000 in SMALL model. |0072:[0000] |DW GROUP#Symbol: |0074:[0000] |DW group#Symbol |0076:[0000] |DW GROUP# Symbol |0078:[0000] |DW GROUP#(Symbol) |007A:[0000] |DW GROUP# ((Symbol)) |007C:[0000] |DW GROUP#[Symbol] |007E:[0000] |DW GROUP#[SI+Symbol] | |;; |0080: |ALIGN 16 |0080:{0000} |DW PARA#Symbol ; 0x0060 in any model (%^IMAGEBASE/16). |0082:{0000} |DW PARA#Symbol: |0084:{0000} |DW para#Symbol |0086:{0000} |DW PARA# Symbol |0088:{0000} |DW PARA#(Symbol) |008A:{0000} |DW PARA# ((Symbol)) |008C:{0000} |DW PARA#[Symbol] |008E:{0000} |DW PARA#[SI+Symbol] | |ENDPROGRAM t1641 | **** ListMap "t1641.bin",model=SMALL,groups=1,segments=2,entry=,stack= | [DGROUP],FA=00000000h,VA=00000600h,size=000000B0h=176,group [DATA1] [DATA2] | [DATA1],FA=00000000h,VA=00000600h,size=00000004h=4,width=16,align=0010h,purpose=DATA | [DATA2],FA=00000010h,VA=00000610h,size=000000A0h=160,width=16,align=0010h,purpose=DATA | **** ListGlobals "t1641.bin",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Symbol,[DGROUP]:00000022h,VA=00000622h,scope='P'
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"{47} I0510 Assembling program pass 1. "t1641.htm"{47} I0510 Assembling program pass 2. "t1641.htm"{47} I0530 Assembling program pass 3 - final. "t1641.htm"{47} I0660 16bit SMALL BIN file "t1641.bin" created, size=176. "t1641.htm"{136} I0650 Program "t1641" assembled in 3 passes with errorlevel 0. "t1641.htm"{136} I0750 Source "t1641" (176 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t1641.htm.lst" created, size=4075. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t1641. bin
0000: 11 11 11 11 00 00 00 00 00 00 00 00 00 00 00 00  ····°°°°°°°°°°°°
0010: 22 22 22 22 00 00 00 00 00 00 00 00 00 00 00 00  """"°°°°°°°°°°°°
0020: 33 33 44 44 00 00 00 00 00 00 00 00 00 00 00 00  33DD°°°°°°°°°°°°
0030: 57 00 57 00 57 00 57 00 57 00 57 00 57 00 57 00  W°W°W°W°W°W°W°W°
0040: 02 00 02 00 02 00 02 00 02 00 02 00 02 00 02 00  ·°·°·°·°·°·°·°·°
0050: 50 00 50 00 50 00 50 00 50 00 50 00 50 00 50 00  P°P°P°P°P°P°P°P°
0060: 02 00 02 00 02 00 02 00 02 00 02 00 02 00 02 00  ·°·°·°·°·°·°·°·°
0070: 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00  ¯°¯°¯°¯°¯°¯°¯°¯°
0080: 10 00 10 00 10 00 10 00 10 00 10 00 10 00 10 00  ·°·°·°·°·°·°·°·°
0090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
00A0: 60 00 60 00 60 00 60 00 60 00 60 00 60 00 60 00  `°`°`°`°`°`°`°`°

▲Back to the top▲