Test t2381:
Pseudoinstruction GLOBAL, PUBLIC, EXTERN
- Tested procedures
-
PseudoGLOBAL
PseudoPUBLIC
PseudoEXTERN
SymCreate
- Source & expected listing
t2381.htm.lst
-
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16
| |t2381 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=ENABLED
|[BIN] |[BIN]
|0000: | ; Explicit scope declaration.
| |Glb1 GLOBAL Glb2,Glb3
| |Pub4 PUBLIC Pub5
| |Ext6 EXTERN Ext7,Ext8
|0000:1111 |Glb1 DW 0x1111
|0002:2222 |Glb2 DW 0x2222
|0004: | ; Glb3: is not defined in program, therefore it must be external.
|0004:4444 |Pub4 DW 0x4444
|0006:5555 |Pub5 DW 0x5555
|0008:[0000] | DW Ext8
|000A: | ; Implicit scope declaration with double colon.
|000A:6666 |Pub6:: DW 0x6666
|000C:[0000] | DW Ext9::
| | %DISPLAY SYMBOLS
|# D1400 **** %DISPLAY Symbols=*
|# D1450 Ext6,[Ext6]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{63}
|# D1450 Ext7,[Ext7]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{63}
|# D1450 Ext8,[Ext8]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t2381.htm"{63}
|# D1450 Ext9,[Ext9]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t2381.htm"{72}
|# D1450 Glb1,[BIN]:00000000h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{61}
|# D1450 Glb2,[BIN]:00000002h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{61}
|# D1450 Glb3,[Glb3]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{61}
|# D1450 Pub4,[BIN]:00000004h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{62}
|# D1450 Pub5,[BIN]:00000006h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{62}
|# D1450 Pub6,[BIN]:0000000Ah,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{71}
|# D1790 **** End of %DISPLAY
| |ENDPROGRAM t2381
|### E6961 Unresolved external/imported symbol "Glb3".
|### E6961 Unresolved external/imported symbol "Ext6".
|### E6961 Unresolved external/imported symbol "Ext7".
|### E6961 Unresolved external/imported symbol "Ext8".
|### E6961 Unresolved external/imported symbol "Ext9".
|### E7727 Unresolved extern relocation at [BIN]:00000008h.
|### E7727 Unresolved extern relocation at [BIN]:0000000Ch.
| **** ListGlobals "t2381.bin",Global=0,Public=5,Extern=5,eXport=0,Import=0
| Ext6,[Ext6]:00000000h,VA=00000000h,scope='E'
| Ext7,[Ext7]:00000000h,VA=00000000h,scope='E'
| Ext8,[Ext8]:00000000h,VA=00000000h,scope='E'
| Ext9,[Ext9]:00000000h,VA=00000000h,scope='E'
| Glb1,[BIN]:00000000h,VA=00000000h,scope='P'
| Glb2,[BIN]:00000002h,VA=00000002h,scope='P'
| Glb3,[Glb3]:00000000h,VA=00000000h,scope='E'
| Pub4,[BIN]:00000004h,VA=00000004h,scope='P'
| Pub5,[BIN]:00000006h,VA=00000006h,scope='P'
| Pub6,[BIN]:0000000Ah,VA=0000000Ah,scope='P'
- Expected messages
t2381.out
I0180 Assembling source file "t2381.htm".
I0270 Assembling source "t2381".
I0310 Assembling source pass 1.
D1400 **** %DISPLAY Symbols=* "t2381.htm"{73}
D1790 **** End of %DISPLAY "t2381.htm"{73}
I0330 Assembling source pass 2 - final.
I0470 Assembling program "t2381". "t2381.htm"{58}
I0510 Assembling program pass 1. "t2381.htm"{58}
D1400 **** %DISPLAY Symbols=* "t2381.htm"{73}
D1450 Ext6,[Ext6]:00000000h,type='A',size=0,scope='E',ref='N',fix=N,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext7,[Ext7]:00000000h,type='A',size=0,scope='E',ref='N',fix=N,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext8,[Ext8]:00000000h,type='A',size=0,scope='E',ref='Y',fix=N,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext9,[BIN]:00000000h,type='?',size=0,scope='G',ref='Y',fix=N,src="t2381.htm"{72} "t2381.htm"{73}
D1450 Glb1,[BIN]:00000000h,type='W',size=2,scope='G',ref='N',fix=N,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Glb2,[BIN]:00000002h,type='W',size=2,scope='G',ref='N',fix=N,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Glb3,[]:00000000h,type=' ',size=0,scope='G',ref='N',fix=N,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Pub4,[BIN]:00000004h,type='W',size=2,scope='P',ref='N',fix=N,src="t2381.htm"{62} "t2381.htm"{73}
D1450 Pub5,[BIN]:00000006h,type='W',size=2,scope='P',ref='N',fix=N,src="t2381.htm"{62} "t2381.htm"{73}
D1450 Pub6,[BIN]:0000000Ah,type='W',size=2,scope='G',ref='N',fix=N,src="t2381.htm"{71} "t2381.htm"{73}
D1790 **** End of %DISPLAY "t2381.htm"{73}
I0510 Assembling program pass 2. "t2381.htm"{58}
D1400 **** %DISPLAY Symbols=* "t2381.htm"{73}
D1450 Ext6,[Ext6]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext7,[Ext7]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext8,[Ext8]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext9,[Ext9]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t2381.htm"{72} "t2381.htm"{73}
D1450 Glb1,[BIN]:00000000h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Glb2,[BIN]:00000002h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Glb3,[Glb3]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Pub4,[BIN]:00000004h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{62} "t2381.htm"{73}
D1450 Pub5,[BIN]:00000006h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{62} "t2381.htm"{73}
D1450 Pub6,[BIN]:0000000Ah,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{71} "t2381.htm"{73}
D1790 **** End of %DISPLAY "t2381.htm"{73}
I0530 Assembling program pass 3 - final. "t2381.htm"{58}
D1400 **** %DISPLAY Symbols=* "t2381.htm"{73}
D1450 Ext6,[Ext6]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext7,[Ext7]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext8,[Ext8]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t2381.htm"{63} "t2381.htm"{73}
D1450 Ext9,[Ext9]:00000000h,type='A',size=0,scope='E',ref='Y',fix=Y,src="t2381.htm"{72} "t2381.htm"{73}
D1450 Glb1,[BIN]:00000000h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Glb2,[BIN]:00000002h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Glb3,[Glb3]:00000000h,type='A',size=0,scope='E',ref='N',fix=Y,src="t2381.htm"{61} "t2381.htm"{73}
D1450 Pub4,[BIN]:00000004h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{62} "t2381.htm"{73}
D1450 Pub5,[BIN]:00000006h,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{62} "t2381.htm"{73}
D1450 Pub6,[BIN]:0000000Ah,type='W',size=2,scope='P',ref='N',fix=Y,src="t2381.htm"{71} "t2381.htm"{73}
D1790 **** End of %DISPLAY "t2381.htm"{73}
E6961 Unresolved external/imported symbol "Glb3". "t2381.htm"{86}
E6961 Unresolved external/imported symbol "Ext6". "t2381.htm"{86}
E6961 Unresolved external/imported symbol "Ext7". "t2381.htm"{86}
E6961 Unresolved external/imported symbol "Ext8". "t2381.htm"{86}
E6961 Unresolved external/imported symbol "Ext9". "t2381.htm"{86}
E7727 Unresolved extern relocation at [BIN]:00000008h. "t2381.htm"{86}
E7727 Unresolved extern relocation at [BIN]:0000000Ch. "t2381.htm"{86}
I0660 16bit TINY BIN file "t2381.bin" created, size=14. "t2381.htm"{86}
I0650 Program "t2381" assembled in 3 passes with errorlevel 7. "t2381.htm"{86}
I0750 Source "t2381" (168 lines) assembled in 2 passes with errorlevel 7.
I0860 Listing file "t2381.htm.lst" created, size=2804.
I0990 EuroAssembler terminated with errorlevel 7.
▲Back to the top▲