EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1646: Attributes of undefined symbol


Description
Querying undefined symbol attribute without actually refering it is not an error.
Tested procedures
SymCreate  
Source & expected listing t1646.htm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16,DUMPALL=OFF,AUTOALIGN=OFF | |t1646 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF |[]:00FF |ScalarSym: EQU 255 |[BIN] |[BIN] |0000:0000 | DW 0 |0002: |BwdRefSym: |0002:0000 | DW 0 |0004: |PublicSym:: |0004:B04E | MOV AL,TYPE# ScalarSym: ; 0x4E='N'. |0006:B053 | MOV AL,SCOPE# ScalarSym: ; 0x53='S'. |0008:B041 | MOV AL,TYPE# BwdRefSym: ; 0x41='A'. |000A:B053 | MOV AL,SCOPE# BwdRefSym: ; 0x53='S'. |000C:B041 | MOV AL,TYPE# FwdRefSym: ; 0x41='A'. |000E:B053 | MOV AL,SCOPE# FwdRefSym: ; 0x53='S'. |0010:B041 | MOV AL,TYPE# PublicSym:: ; 0x41='A'. |0012:B050 | MOV AL,SCOPE# PublicSym:: ; 0x50='P'. |0014:B041 | MOV AL,TYPE# ExternSym:: ; 0x41='A'. |0016:B045 | MOV AL,SCOPE# ExternSym:: ; 0x45='E'. |0018:B03F | MOV AL,TYPE# UndefinedSym: ; 0x3F='?'. No error expected. |001A:B053 | MOV AL,SCOPE# UndefinedSym: ; 0x53='S'. No error expected. |001C:BEFF00 | MOV SI,ScalarSym: |001F:BE[0200] | MOV SI,BwdRefSym: |0022:BE[2E00] | MOV SI,FwdRefSym: |0025:BE[0400] | MOV SI,PublicSym: |0028:BE[0000] | MOV SI,ExternSym:: |002B: | MOV SI,UnknownSym: ; E6601 expected. |### E6601 Symbol "UnknownSym" mentioned at "t1646.htm"{75} was not found. |002B:909090 ....AutoAlignment stuff. |002E: |FwdRefSym: | | %DISPLAY Symbols |# D1400 **** %DISPLAY Symbols=* |# D1450 BwdRefSym,[BIN]:00000002h,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{55} |# D1450 ExternSym,[ExternSym]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1646.htm"{74} |# D1450 FwdRefSym,[BIN]:0000002Eh,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{72} |# D1450 PublicSym,[BIN]:00000004h,type='A',size=0,scope='P',ref='Y',fix=Y,src="t1646.htm"{57} |# D1450 ScalarSym,[]:000000FFh,type='N',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{52} |# D1450 UnknownSym,[BIN]:00000000h,type='?',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{75} |# D1790 **** End of %DISPLAY | |ENDPROGRAM t1646 |### E6961 Unresolved external/imported symbol "ExternSym". |### E7727 Unresolved extern relocation at [BIN]:00000029h.
Expected messages t1646.out
I0180 Assembling source file "t1646.htm". I0270 Assembling source "t1646". I0310 Assembling source pass 1. D1400 **** %DISPLAY Symbols=* "t1646.htm"{79} D1790 **** End of %DISPLAY "t1646.htm"{79} I0330 Assembling source pass 2 - final. I0470 Assembling program "t1646". "t1646.htm"{51} I0510 Assembling program pass 1. "t1646.htm"{51} D1400 **** %DISPLAY Symbols=* "t1646.htm"{79} D1450 BwdRefSym,[BIN]:00000002h,type='A',size=0,scope='S',ref='Y',fix=N,src="t1646.htm"{55} "t1646.htm"{79} D1450 ExternSym,[BIN]:00000000h,type='?',size=0,scope='G',ref='Y',fix=N,src="t1646.htm"{74} "t1646.htm"{79} D1450 FwdRefSym,[BIN]:0000002Eh,type='A',size=0,scope='S',ref='Y',fix=N,src="t1646.htm"{72} "t1646.htm"{79} D1450 PublicSym,[BIN]:00000004h,type='A',size=0,scope='G',ref='Y',fix=N,src="t1646.htm"{57} "t1646.htm"{79} D1450 ScalarSym,[]:000000FFh,type='N',size=0,scope='S',ref='Y',fix=N,src="t1646.htm"{52} "t1646.htm"{79} D1450 UnknownSym,[BIN]:00000000h,type='?',size=0,scope='S',ref='Y',fix=N,src="t1646.htm"{75} "t1646.htm"{79} D1790 **** End of %DISPLAY "t1646.htm"{79} I0510 Assembling program pass 2. "t1646.htm"{51} D1400 **** %DISPLAY Symbols=* "t1646.htm"{79} D1450 BwdRefSym,[BIN]:00000002h,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{55} "t1646.htm"{79} D1450 ExternSym,[ExternSym]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1646.htm"{74} "t1646.htm"{79} D1450 FwdRefSym,[BIN]:0000002Eh,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{72} "t1646.htm"{79} D1450 PublicSym,[BIN]:00000004h,type='A',size=0,scope='P',ref='Y',fix=Y,src="t1646.htm"{57} "t1646.htm"{79} D1450 ScalarSym,[]:000000FFh,type='N',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{52} "t1646.htm"{79} D1450 UnknownSym,[BIN]:00000000h,type='?',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{75} "t1646.htm"{79} D1790 **** End of %DISPLAY "t1646.htm"{79} I0530 Assembling program pass 3 - final. "t1646.htm"{51} E6601 Symbol "UnknownSym" mentioned at "t1646.htm"{75} was not found. "t1646.htm"{75} D1400 **** %DISPLAY Symbols=* "t1646.htm"{79} D1450 BwdRefSym,[BIN]:00000002h,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{55} "t1646.htm"{79} D1450 ExternSym,[ExternSym]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t1646.htm"{74} "t1646.htm"{79} D1450 FwdRefSym,[BIN]:0000002Eh,type='A',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{72} "t1646.htm"{79} D1450 PublicSym,[BIN]:00000004h,type='A',size=0,scope='P',ref='Y',fix=Y,src="t1646.htm"{57} "t1646.htm"{79} D1450 ScalarSym,[]:000000FFh,type='N',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{52} "t1646.htm"{79} D1450 UnknownSym,[BIN]:00000000h,type='?',size=0,scope='S',ref='Y',fix=Y,src="t1646.htm"{75} "t1646.htm"{79} D1790 **** End of %DISPLAY "t1646.htm"{79} E6961 Unresolved external/imported symbol "ExternSym". "t1646.htm"{88} E7727 Unresolved extern relocation at [BIN]:00000029h. "t1646.htm"{88} I0660 16bit TINY BIN file "t1646.bin" created, size=46. "t1646.htm"{88} I0650 Program "t1646" assembled in 3 passes with errorlevel 7. "t1646.htm"{88} I0750 Source "t1646" (138 lines) assembled in 2 passes with errorlevel 7. I0860 Listing file "t1646.htm.lst" created, size=2293. I0990 EuroAssembler terminated with errorlevel 7.

▲Back to the top▲