EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1642: Attributes of symbols


Tested procedures
ExpEvalData  
Source & expected listing t1642.htm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16 |[BIN] |[BIN] SEGMENT PURPOSE=DATA+CODE,WIDTH=16 ; Default segment. |[.text] |[.text] SEGMENT WIDTH=32 ; Default segment. |[.data] |[.data] SEGMENT WIDTH=32 ; Default segment. |[.bss] |[.bss] SEGMENT WIDTH=32 ; Default segment. | |t1642.A PROGRAM FORMAT=OMF, \ The linked program. | | MODEL=TINY,WIDTH=16,LISTMAP=ON,LISTGLOBALS=ON |[DATA] |[DATA] SEGMENT |0000:11112222 | DW 0x1111,0x2222 ; Identifying placeholder. |0004:3333 |DataExt: DW 0x3333 |[]:4444 |NumExt:: EQU 0x4444 | | GLOBAL DataExt,NumExt | |ENDPROGRAM t1642.A | **** ListMap "t1642.A.obj",groups=0,segments=1,entry=,stack= | [DATA],RVA=00000000h,size=00000006h=6,width=16,align=16,purpose=DATA | **** ListGlobals "t1642.A.obj",Global=0,Public=2,Extern=0,eXport=0,Import=0 | DataExt,[DATA]:00000004h,scope='P' | NumExt,[]:00004444h,scope='P' | |t1642 PROGRAM FORMAT=BIN, \ The main program. | | MODEL=TINY,WIDTH=16,LISTMAP=ON,LISTGLOBALS=ON,IMAGEBASE=2000h |[BIN] |[BIN] ; Base segment. |0000:5555 | DW 0x5555 ; Identifying placeholder. |[]:5555 |NumSym: EQU 0x5555; Definition of a numeric symbol without any segment. |[SECT] |[SECT] ; Subsection of segment [BIN] with aligned offset 0x0010. |0010:6666 | DW 0x6666 ; Identifying placeholder. |0012:7777 |DataSym: DW 0x7777 ; Definition of a data address symbol in section [SECT]. |[SECT]:0014 |AddrSym: EQU $ ; Definition of a plain address symbol in section [SECT]. | | EXTERN DataExt,NumExt |0014: |; |0014:5555 | DW NumSym: ; Value of NumSym. |0016:0000 | DW SIZE#NumSym ; 0 (size of scalar symbol). |0018:4E00 | DW TYPE#NumSym ; 4Eh='N'. |001A:5300 | DW SCOPE#NumSym ; 53h='S'. |001C:5555 | DW OFFSET#NumSym ; 0x5555. |001E:0000 | DW SECTION#NumSym ; Scalar 0. |0020:0000 | DW SEGMENT#NumSym ; Scalar 0. |0022:0000 | DW GROUP#NumSym ; Scalar 0. |0024:0000 | DW PARA#NumSym ; Scalar 0. |0026: |; |0026:[0000] | DW NumExt:: ; Value of NumExt, relocable by [NumExt]. |0028:0000 | DW SIZE#NumExt ; 0 (size of extern symbol). |002A:4100 | DW TYPE#NumExt ; 41h='A'. |002C:4500 | DW SCOPE#NumExt ; 45h='E'. |002E:[0000] | DW OFFSET#NumExt ; Offset of NumExt, relocable by [NumExt]. |0030:[0000] | DW SECTION#NumExt ; Relocable address of extern section [NumExt]. |0032:[0000] | DW SEGMENT#NumExt ; Relocable address of extern segment [NumExt]. |0034:[0000] | DW GROUP#NumExt ; Relocable address of extern group [NumExt]. |0036:{0000} | DW PARA#NumExt ; Paragraph address of extern group [NumExt]. |0038: |; |0038:[1200] | DW DataSym: ; Address of DataSym, relocable by [BIN]. |003A:0200 | DW SIZE#DataSym ; 2. |003C:5700 | DW TYPE#DataSym ; 57h='W'. |003E:5300 | DW SCOPE#DataSym ; 53h='S'. |0040:1200 | DW OFFSET#DataSym ; 0x0012. |0042:[1000] | DW SECTION#DataSym; Address of [SECT] relocable by [BIN]. |0044:[0000] | DW SEGMENT#DataSym; Address of [BIN] relocable by [BIN]. |0046:[0000] | DW GROUP#DataSym ; Address of [BIN] relocable by [BIN]. |0048:{0000} | DW PARA#DataSym ; Paragraph address of [BIN] relocable by [BIN]. |004A: |; |004A:[0000] | DW DataExt: ; Address of DataExt, relocable by [DataExt]. |004C:0000 | DW SIZE#DataExt ; 0 (size of extern symbol). |004E:4100 | DW TYPE#DataExt ; 41h='A'. |0050:4500 | DW SCOPE#DataExt ; 45h='E'. |0052:[0000] | DW OFFSET#DataExt ; Offset of DataExt, relocable by [DataExt]. |0054:[0000] | DW SECTION#DataExt; Relocable address of extern section [DataExt]. |0056:[0000] | DW SEGMENT#DataExt; Relocable address of extern segment [DataExt]. |0058:[0000] | DW GROUP#DataExt ; Relocable address of extern group [DataExt]. |005A:{0000} | DW PARA#DataExt ; Paragraph address of extern group [DataExt]. |005C: |; |005C:[1400] | DW AddrSym: ; Address of AddrSym, relocable by [BIN]. |005E:0000 | DW SIZE#AddrSym ; 0 (size of a plain address symbol). |0060:4100 | DW TYPE#AddrSym ; 41h='A'. |0062:5300 | DW SCOPE#AddrSym ; 53h='S'. |0064:1400 | DW OFFSET#AddrSym ; 0x0014. |0066:[1000] | DW SECTION#AddrSym; Address of [SECT] relocable by [BIN]. |0068:[0000] | DW SEGMENT#AddrSym; Address of [BIN] relocable by [BIN]. |006A:[0000] | DW GROUP#AddrSym ; Address of [BIN] relocable by [BIN]. |006C:{0000} | DW PARA#AddrSym ; Paragraph address of [BIN] relocable by [BIN]. |006E: |; | | %DISPLAY SECTIONS,SYMBOLS,RELOCATIONS |# D1250 **** %DISPLAY Groups, Segments, Sections |# D1270 [BIN],purpose=CODE+DATA+BSS+STACK,width=16,align=16,combine=PUBLIC,class="",src="t1642.htm"{66} |# D1280 [BIN],address=00000000h,size=00000002h=2,align=16,ref=Y,src="t1642.htm"{66} |# D1280 [SECT],address=00000010h,size=0000005Eh=94,align=16,ref=Y,src="t1642.htm"{71} |# D1400 **** %DISPLAY Symbols=* |# D1450 AddrSym,[SECT]:00000014h,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1642.htm"{74} |# D1450 DataExt,[DataExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1642.htm"{75} |# D1450 DataSym,[SECT]:00000012h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t1642.htm"{73} |# D1450 NumExt,[NumExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1642.htm"{75} |# D1450 NumSym,[]:00005555h,type='N',size=0,scope='S',ref='Y',fix=Y,src="t1642.htm"{70} |# D1550 **** %DISPLAY Relocations |# D1560 [SECT]:00000026h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=abs |# D1560 [SECT]:0000002Eh,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=OFFSET#abs |# D1560 [SECT]:00000030h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=SEGMENT#abs |# D1560 [SECT]:00000032h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=SEGMENT#abs |# D1560 [SECT]:00000034h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=GROUP#abs |# D1560 [SECT]:00000036h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=para |# D1560 [SECT]:00000038h,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:00000042h,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:00000044h,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:00000046h,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:00000048h,target=[BIN]:00000000h,frame=[BIN],width=16,type=para |# D1560 [SECT]:0000004Ah,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=abs |# D1560 [SECT]:00000052h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=OFFSET#abs |# D1560 [SECT]:00000054h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=SEGMENT#abs |# D1560 [SECT]:00000056h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=SEGMENT#abs |# D1560 [SECT]:00000058h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=GROUP#abs |# D1560 [SECT]:0000005Ah,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=para |# D1560 [SECT]:0000005Ch,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:00000066h,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:00000068h,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:0000006Ah,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs |# D1560 [SECT]:0000006Ch,target=[BIN]:00000000h,frame=[BIN],width=16,type=para |# D1790 **** End of %DISPLAY | | LINK t1642.A.obj | |ENDPROGRAM t1642 |# I0560 Linking OMF module ".\t1642.A.obj". | **** ListMap "t1642.bin",groups=1,segments=2,entry=,stack=[BIN]:0000FFFEh | [BIN],VA=00002000h,size=00000076h=118,group [BIN] [DATA] | [BIN],VA=00002000h,size=0000006Eh=110,width=16,align=16,purpose=CODE+DATA+BSS+STACK | [DATA],VA=00002070h,size=00000006h=6,width=16,align=16,purpose=DATA | **** ListGlobals "t1642.bin",Global=2,Public=0,Extern=0,eXport=0,Import=0 | DataExt,[BIN]:00000074h,VA=00002074h,scope='G' | NumExt,[]:00004444h,VA=00004444h,scope='G'
Expected messages t1642.out
I0180 Assembling source file "t1642.htm". I0270 Assembling source "t1642". I0310 Assembling source pass 1. D1250 **** %DISPLAY Groups, Segments, Sections "t1642.htm"{127} D1270 [BIN],purpose=CODE+DATA,width=16,align=16,combine=PUBLIC,class="",src="t1642.htm"{49} "t1642.htm"{127} D1280 [BIN],address=00000000h,size=00000000h=0,align=16,ref=N,src="t1642.htm"{49} "t1642.htm"{127} D1270 [.text],purpose=CODE,width=32,align=16,combine=PUBLIC,class="",src="t1642.htm"{50} "t1642.htm"{127} D1280 [.text],address=00000000h,size=00000000h=0,align=16,ref=N,src="t1642.htm"{50} "t1642.htm"{127} D1270 [.data],purpose=DATA,width=32,align=16,combine=PUBLIC,class="",src="t1642.htm"{51} "t1642.htm"{127} D1280 [.data],address=00000000h,size=00000000h=0,align=16,ref=N,src="t1642.htm"{51} "t1642.htm"{127} D1270 [.bss],purpose=BSS,width=32,align=16,combine=PUBLIC,class="",src="t1642.htm"{52} "t1642.htm"{127} D1280 [.bss],address=00000000h,size=00000000h=0,align=16,ref=N,src="t1642.htm"{52} "t1642.htm"{127} D1400 **** %DISPLAY Symbols=* "t1642.htm"{127} D1550 **** %DISPLAY Relocations "t1642.htm"{127} D1790 **** End of %DISPLAY "t1642.htm"{127} I0330 Assembling source pass 2 - final. I0470 Assembling program "t1642.A". "t1642.htm"{53} I0510 Assembling program pass 1. "t1642.htm"{53} I0510 Assembling program pass 2. "t1642.htm"{53} I0530 Assembling program pass 3 - final. "t1642.htm"{53} I0660 16bit TINY OMF file "t1642.A.obj" created, size=112. "t1642.htm"{60} I0650 Program "t1642.A" assembled in 3 passes with errorlevel 0. "t1642.htm"{60} I0470 Assembling program "t1642". "t1642.htm"{66} I0510 Assembling program pass 1. "t1642.htm"{66} D1250 **** %DISPLAY Groups, Segments, Sections "t1642.htm"{127} D1270 [BIN],purpose=CODE+DATA+BSS+STACK,width=16,align=16,combine=PUBLIC,class="",src="t1642.htm"{66} "t1642.htm"{127} D1280 [BIN],address=00000000h,size=00000002h=2,align=16,ref=Y,src="t1642.htm"{66} "t1642.htm"{127} D1280 [SECT],address=00000000h,size=0000005Eh=94,align=16,ref=Y,src="t1642.htm"{71} "t1642.htm"{127} D1400 **** %DISPLAY Symbols=* "t1642.htm"{127} D1450 AddrSym,[SECT]:00000004h,type='A',size=0,scope='S',ref='Y',fix=N,src="t1642.htm"{74} "t1642.htm"{127} D1450 DataExt,[DataExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=N,src="t1642.htm"{75} "t1642.htm"{127} D1450 DataSym,[SECT]:00000002h,type='W',size=2,scope='S',ref='Y',fix=N,src="t1642.htm"{73} "t1642.htm"{127} D1450 NumExt,[NumExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=N,src="t1642.htm"{75} "t1642.htm"{127} D1450 NumSym,[]:00005555h,type='N',size=0,scope='S',ref='Y',fix=N,src="t1642.htm"{70} "t1642.htm"{127} D1550 **** %DISPLAY Relocations "t1642.htm"{127} D1790 **** End of %DISPLAY "t1642.htm"{127} I0510 Assembling program pass 2. "t1642.htm"{66} D1250 **** %DISPLAY Groups, Segments, Sections "t1642.htm"{127} D1270 [BIN],purpose=CODE+DATA+BSS+STACK,width=16,align=16,combine=PUBLIC,class="",src="t1642.htm"{66} "t1642.htm"{127} D1280 [BIN],address=00000000h,size=00000002h=2,align=16,ref=Y,src="t1642.htm"{66} "t1642.htm"{127} D1280 [SECT],address=00000010h,size=0000005Eh=94,align=16,ref=Y,src="t1642.htm"{71} "t1642.htm"{127} D1400 **** %DISPLAY Symbols=* "t1642.htm"{127} D1450 AddrSym,[SECT]:00000014h,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1642.htm"{74} "t1642.htm"{127} D1450 DataExt,[DataExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1642.htm"{75} "t1642.htm"{127} D1450 DataSym,[SECT]:00000012h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t1642.htm"{73} "t1642.htm"{127} D1450 NumExt,[NumExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1642.htm"{75} "t1642.htm"{127} D1450 NumSym,[]:00005555h,type='N',size=0,scope='S',ref='Y',fix=Y,src="t1642.htm"{70} "t1642.htm"{127} D1550 **** %DISPLAY Relocations "t1642.htm"{127} D1790 **** End of %DISPLAY "t1642.htm"{127} I0530 Assembling program pass 3 - final. "t1642.htm"{66} D1250 **** %DISPLAY Groups, Segments, Sections "t1642.htm"{127} D1270 [BIN],purpose=CODE+DATA+BSS+STACK,width=16,align=16,combine=PUBLIC,class="",src="t1642.htm"{66} "t1642.htm"{127} D1280 [BIN],address=00000000h,size=00000002h=2,align=16,ref=Y,src="t1642.htm"{66} "t1642.htm"{127} D1280 [SECT],address=00000010h,size=0000005Eh=94,align=16,ref=Y,src="t1642.htm"{71} "t1642.htm"{127} D1400 **** %DISPLAY Symbols=* "t1642.htm"{127} D1450 AddrSym,[SECT]:00000014h,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1642.htm"{74} "t1642.htm"{127} D1450 DataExt,[DataExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1642.htm"{75} "t1642.htm"{127} D1450 DataSym,[SECT]:00000012h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t1642.htm"{73} "t1642.htm"{127} D1450 NumExt,[NumExt]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1642.htm"{75} "t1642.htm"{127} D1450 NumSym,[]:00005555h,type='N',size=0,scope='S',ref='Y',fix=Y,src="t1642.htm"{70} "t1642.htm"{127} D1550 **** %DISPLAY Relocations "t1642.htm"{127} D1560 [SECT]:00000026h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:0000002Eh,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=OFFSET#abs "t1642.htm"{127} D1560 [SECT]:00000030h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=SEGMENT#abs "t1642.htm"{127} D1560 [SECT]:00000032h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=SEGMENT#abs "t1642.htm"{127} D1560 [SECT]:00000034h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=GROUP#abs "t1642.htm"{127} D1560 [SECT]:00000036h,target=[NumExt]:00000000h,frame=[NumExt],width=16,type=para "t1642.htm"{127} D1560 [SECT]:00000038h,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000042h,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000044h,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000046h,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000048h,target=[BIN]:00000000h,frame=[BIN],width=16,type=para "t1642.htm"{127} D1560 [SECT]:0000004Ah,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000052h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=OFFSET#abs "t1642.htm"{127} D1560 [SECT]:00000054h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=SEGMENT#abs "t1642.htm"{127} D1560 [SECT]:00000056h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=SEGMENT#abs "t1642.htm"{127} D1560 [SECT]:00000058h,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=GROUP#abs "t1642.htm"{127} D1560 [SECT]:0000005Ah,target=[DataExt]:00000000h,frame=[DataExt],width=16,type=para "t1642.htm"{127} D1560 [SECT]:0000005Ch,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000066h,target=[SECT]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:00000068h,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:0000006Ah,target=[BIN]:00000000h,frame=[BIN],width=16,type=abs "t1642.htm"{127} D1560 [SECT]:0000006Ch,target=[BIN]:00000000h,frame=[BIN],width=16,type=para "t1642.htm"{127} D1790 **** End of %DISPLAY "t1642.htm"{127} I0560 Linking OMF module ".\t1642.A.obj". "t1642.htm"{163} I0660 16bit TINY BIN file "t1642.bin" created, size=118. "t1642.htm"{163} I0650 Program "t1642" assembled in 3 passes with errorlevel 1. "t1642.htm"{163} I0750 Source "t1642" (279 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t1642.htm.lst" created, size=8372. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t1642. bin
0000: 55 55 00 00 00 00 00 00 00 00 00 00 00 00 00 00  UU°°°°°°°°°°°°°°
0010: 66 66 77 77 55 55 00 00 4E 00 53 00 55 55 00 00  ffwwUU°°N°S°UU°°
0020: 00 00 00 00 00 00 44 44 00 00 41 00 45 00 44 44  °°°°°°DD°°A°E°DD
0030: 00 00 00 00 00 00 00 00 12 20 02 00 57 00 53 00  °°°°°°°°·¯·°W°S°
0040: 12 00 10 20 00 20 00 20 00 02 74 20 00 00 41 00  ·°·¯°¯°¯°·t¯°°A°
0050: 45 00 04 00 70 20 70 20 70 20 00 02 14 20 00 00  E°·°p¯p¯p¯°··¯°°
0060: 41 00 53 00 14 00 10 20 00 20 00 20 00 02 00 00  A°S°·°·¯°¯°¯°·°°
0070: 11 11 22 22 33 33                                ··""33

▲Back to the top▲