EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2907: Pseudoinstruction %DISPLAY STRUCTURES, SYMBOLS


Description
Test Autosegment and Autoalign of structured memory variables.
Tested procedures
PseudopcDISPLAY  
Source & expected listing t2907.htm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=24,NOWARN=2101,AUTOALIGN=ON,AUTOSEGMENT=ON | |t2907 PROGRAM FORMAT=BIN,WIDTH=16,LISTMAP=ON,LISTGLOBALS=OFF | |;; |[Date] |Date STRUC |0000:.... |.Year D WORD |0002:.. |.Month D BYTE |0003:.. |.Day D BYTE |0004: | ENDSTRUC Date | |;; |[CODE] ::::Section changed. |0000:8D06[0400] |Start: LEA AX,[Today.Year] ; Machine instructions go to [CODE]. |0004:A0[0700] | MOV AL,[Today.Day] ; Load from Today.Day in memory. |0007:B403 | MOV AH,Date.Day ; Load imm offset of .Day in the structure, which is 3. |0009:A10300 | MOV AX,[Date.Day] ; Load memory from DS:3. |000C:C3 | RET |[DATA] ::::Section changed. |0000:414243 |ABC: DB "ABC" ; Intentional disalignment in [DATA]. |[BSS] ::::Section changed. |0000:...... |DEF: DB 3*B ; Intentional disalignment in [BSS]. |[DATA] ::::Section changed. |0003:00 ....AutoAlignment stuff. |0004:00000C1F |Silves DS Date, .Day=31,.Month=12 ; Initialized Date goes to [DATA]. |[BSS] ::::Section changed. |0003:.. ....AutoAlignment stuff. |0004:........ |Today DS Date ; Uninitialized Date goes to [BSS]. | | %DISPLAY Structures,Segments,Symbols |# D1300 **** %DISPLAY Structures=* |# D1310 Date,size=4,align=2,purpose=BSS,ref=Y,src="t2907.htm"{54} |# D1250 **** %DISPLAY Groups, Segments, Sections |# D1260 [COMGROUP],group [CODE] [DATA] [BSS],src="t2907.htm"{52} |# D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} |# D1280 [CODE],address=00000000h,size=0000000Dh=13,align=16,ref=N,src="t2907.htm"{52} |# D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} |# D1280 [DATA],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} |# D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} |# D1280 [BSS],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} |# D1400 **** %DISPLAY Symbols=* |# D1450 ABC,[DATA]:00000000h,type='B',size=3,scope='S',ref='N',fix=Y,src="t2907.htm"{67} |# D1450 BSS,[BSS]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} |# D1450 CODE,[CODE]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} |# D1450 COMGROUP,[COMGROUP]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} |# D1450 DATA,[DATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} |# D1450 Date.Day,[Date]:00000003h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{57} |# D1450 Date.Month,[Date]:00000002h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2907.htm"{56} |# D1450 Date.Year,[Date]:00000000h,type='W',size=2,scope='S',ref='N',fix=Y,src="t2907.htm"{55} |# D1450 DEF,[BSS]:00000000h,type='B',size=3,scope='S',ref='N',fix=Y,src="t2907.htm"{69} |# D1450 Silves,[DATA]:00000004h,type='S',size=4,scope='S',ref='N',fix=Y,src="t2907.htm"{72} |# D1450 Silves.Day,[DATA]:00000007h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} |# D1450 Silves.Month,[DATA]:00000006h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} |# D1450 Silves.Year,[DATA]:00000004h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} |# D1450 Start,[CODE]:00000000h,type='I',size=4,scope='S',ref='N',fix=Y,src="t2907.htm"{61} |# D1450 Today,[BSS]:00000004h,type='S',size=4,scope='S',ref='Y',fix=Y,src="t2907.htm"{75} |# D1450 Today.Day,[BSS]:00000007h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{62} |# D1450 Today.Month,[BSS]:00000006h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{75} |# D1450 Today.Year,[BSS]:00000004h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t2907.htm"{61} |# D1790 **** End of %DISPLAY | | ENDPROGRAM t2907 | **** ListMap "t2907.bin",model=TINY,groups=1,segments=3,entry=,stack=[COMGROUP]:0000FFFEh | [COMGROUP],FA=00000000h,VA=00000000h,size=00000028h=40,group [CODE] [DATA] [BSS] | [CODE],FA=00000000h,VA=00000000h,size=0000000Dh=13,width=16,align=0010h,purpose=CODE | [DATA],FA=00000010h,VA=00000010h,size=00000008h=8,width=16,align=0010h,purpose=DATA | [BSS],FA=00000020h,VA=00000020h,size=00000008h=8,width=16,align=0010h,purpose=BSS
Expected messages t2907.out
I0180 Assembling source file "t2907.htm". I0270 Assembling source "t2907". I0310 Assembling source pass 1. D1300 **** %DISPLAY Structures=* "t2907.htm"{76} D1250 **** %DISPLAY Groups, Segments, Sections "t2907.htm"{76} D1260 [COMGROUP],group [CODE] [RODATA] [DATA] [BSS] [STACK],src= "t2907.htm"{76} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src= "t2907.htm"{76} D1280 [CODE],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2907.htm"{76} D1270 [RODATA],purpose=RODATA,width=16,align=16,combine=PUBLIC,class="",src= "t2907.htm"{76} D1280 [RODATA],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2907.htm"{76} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src= "t2907.htm"{76} D1280 [DATA],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2907.htm"{76} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src= "t2907.htm"{76} D1280 [BSS],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2907.htm"{76} D1270 [STACK],purpose=STACK,width=16,align=16,combine=PUBLIC,class="",src= "t2907.htm"{76} D1280 [STACK],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2907.htm"{76} D1400 **** %DISPLAY Symbols=* "t2907.htm"{76} D1450 BSS,[BSS]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2907.htm"{76} D1450 CODE,[CODE]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2907.htm"{76} D1450 COMGROUP,[COMGROUP]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2907.htm"{76} D1450 DATA,[DATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2907.htm"{76} D1450 RODATA,[RODATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2907.htm"{76} D1450 STACK,[STACK]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2907.htm"{76} D1790 **** End of %DISPLAY "t2907.htm"{76} I0330 Assembling source pass 2 - final. I0470 Assembling program "t2907". "t2907.htm"{52} I0510 Assembling program pass 1. "t2907.htm"{52} D1300 **** %DISPLAY Structures=* "t2907.htm"{76} D1310 Date,size=4,align=2,purpose=BSS,ref=Y,src="t2907.htm"{54} "t2907.htm"{76} D1250 **** %DISPLAY Groups, Segments, Sections "t2907.htm"{76} D1260 [COMGROUP],group [CODE] [RODATA] [DATA] [BSS] [STACK],src="t2907.htm"{52} "t2907.htm"{76} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [CODE],address=00000000h,size=0000000Dh=13,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1270 [RODATA],purpose=RODATA,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [RODATA],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [DATA],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} "t2907.htm"{76} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [BSS],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} "t2907.htm"{76} D1270 [STACK],purpose=STACK,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [STACK],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1400 **** %DISPLAY Symbols=* "t2907.htm"{76} D1450 ABC,[DATA]:00000000h,type='B',size=3,scope='S',ref='N',fix=N,src="t2907.htm"{67} "t2907.htm"{76} D1450 BSS,[BSS]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 CODE,[CODE]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 COMGROUP,[COMGROUP]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 DATA,[DATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Date.Day,[Date]:00000003h,type='B',size=1,scope='S',ref='Y',fix=N,src="t2907.htm"{57} "t2907.htm"{76} D1450 Date.Month,[Date]:00000002h,type='B',size=1,scope='S',ref='N',fix=N,src="t2907.htm"{56} "t2907.htm"{76} D1450 Date.Year,[Date]:00000000h,type='W',size=2,scope='S',ref='N',fix=N,src="t2907.htm"{55} "t2907.htm"{76} D1450 DEF,[BSS]:00000000h,type='B',size=3,scope='S',ref='N',fix=N,src="t2907.htm"{69} "t2907.htm"{76} D1450 RODATA,[RODATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Silves,[DATA]:00000004h,type='S',size=4,scope='S',ref='N',fix=N,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Day,[DATA]:00000007h,type='B',size=1,scope='S',ref='Y',fix=N,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Month,[DATA]:00000006h,type='B',size=1,scope='S',ref='Y',fix=N,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Year,[DATA]:00000004h,type='W',size=2,scope='S',ref='Y',fix=N,src="t2907.htm"{72} "t2907.htm"{76} D1450 STACK,[STACK]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Start,[CODE]:00000000h,type='I',size=4,scope='S',ref='N',fix=N,src="t2907.htm"{61} "t2907.htm"{76} D1450 Today,[BSS]:00000004h,type='S',size=4,scope='S',ref='N',fix=N,src="t2907.htm"{75} "t2907.htm"{76} D1450 Today.Day,[BSS]:00000007h,type='B',size=1,scope='S',ref='Y',fix=N,src="t2907.htm"{62} "t2907.htm"{76} D1450 Today.Month,[BSS]:00000006h,type='B',size=1,scope='S',ref='Y',fix=N,src="t2907.htm"{75} "t2907.htm"{76} D1450 Today.Year,[BSS]:00000004h,type='W',size=2,scope='S',ref='Y',fix=N,src="t2907.htm"{61} "t2907.htm"{76} D1790 **** End of %DISPLAY "t2907.htm"{76} I0510 Assembling program pass 2. "t2907.htm"{52} D1300 **** %DISPLAY Structures=* "t2907.htm"{76} D1310 Date,size=4,align=2,purpose=BSS,ref=Y,src="t2907.htm"{54} "t2907.htm"{76} D1250 **** %DISPLAY Groups, Segments, Sections "t2907.htm"{76} D1260 [COMGROUP],group [CODE] [RODATA] [DATA] [BSS] [STACK],src="t2907.htm"{52} "t2907.htm"{76} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [CODE],address=00000000h,size=0000000Dh=13,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1270 [RODATA],purpose=RODATA,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [RODATA],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [DATA],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} "t2907.htm"{76} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [BSS],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} "t2907.htm"{76} D1270 [STACK],purpose=STACK,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [STACK],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1400 **** %DISPLAY Symbols=* "t2907.htm"{76} D1450 ABC,[DATA]:00000000h,type='B',size=3,scope='S',ref='N',fix=Y,src="t2907.htm"{67} "t2907.htm"{76} D1450 BSS,[BSS]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 CODE,[CODE]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 COMGROUP,[COMGROUP]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 DATA,[DATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Date.Day,[Date]:00000003h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{57} "t2907.htm"{76} D1450 Date.Month,[Date]:00000002h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2907.htm"{56} "t2907.htm"{76} D1450 Date.Year,[Date]:00000000h,type='W',size=2,scope='S',ref='N',fix=Y,src="t2907.htm"{55} "t2907.htm"{76} D1450 DEF,[BSS]:00000000h,type='B',size=3,scope='S',ref='N',fix=Y,src="t2907.htm"{69} "t2907.htm"{76} D1450 RODATA,[RODATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Silves,[DATA]:00000004h,type='S',size=4,scope='S',ref='N',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Day,[DATA]:00000007h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Month,[DATA]:00000006h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Year,[DATA]:00000004h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 STACK,[STACK]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Start,[CODE]:00000000h,type='I',size=4,scope='S',ref='N',fix=Y,src="t2907.htm"{61} "t2907.htm"{76} D1450 Today,[BSS]:00000004h,type='S',size=4,scope='S',ref='Y',fix=Y,src="t2907.htm"{75} "t2907.htm"{76} D1450 Today.Day,[BSS]:00000007h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{62} "t2907.htm"{76} D1450 Today.Month,[BSS]:00000006h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{75} "t2907.htm"{76} D1450 Today.Year,[BSS]:00000004h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t2907.htm"{61} "t2907.htm"{76} D1790 **** End of %DISPLAY "t2907.htm"{76} I0530 Assembling program pass 3 - final. "t2907.htm"{52} D1300 **** %DISPLAY Structures=* "t2907.htm"{76} D1310 Date,size=4,align=2,purpose=BSS,ref=Y,src="t2907.htm"{54} "t2907.htm"{76} D1250 **** %DISPLAY Groups, Segments, Sections "t2907.htm"{76} D1260 [COMGROUP],group [CODE] [DATA] [BSS],src="t2907.htm"{52} "t2907.htm"{76} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [CODE],address=00000000h,size=0000000Dh=13,align=16,ref=N,src="t2907.htm"{52} "t2907.htm"{76} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [DATA],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} "t2907.htm"{76} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src="t2907.htm"{52} "t2907.htm"{76} D1280 [BSS],address=00000000h,size=00000008h=8,align=16,ref=Y,src="t2907.htm"{52} "t2907.htm"{76} D1400 **** %DISPLAY Symbols=* "t2907.htm"{76} D1450 ABC,[DATA]:00000000h,type='B',size=3,scope='S',ref='N',fix=Y,src="t2907.htm"{67} "t2907.htm"{76} D1450 BSS,[BSS]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 CODE,[CODE]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 COMGROUP,[COMGROUP]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 DATA,[DATA]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2907.htm"{52} "t2907.htm"{76} D1450 Date.Day,[Date]:00000003h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{57} "t2907.htm"{76} D1450 Date.Month,[Date]:00000002h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2907.htm"{56} "t2907.htm"{76} D1450 Date.Year,[Date]:00000000h,type='W',size=2,scope='S',ref='N',fix=Y,src="t2907.htm"{55} "t2907.htm"{76} D1450 DEF,[BSS]:00000000h,type='B',size=3,scope='S',ref='N',fix=Y,src="t2907.htm"{69} "t2907.htm"{76} D1450 Silves,[DATA]:00000004h,type='S',size=4,scope='S',ref='N',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Day,[DATA]:00000007h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Month,[DATA]:00000006h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Silves.Year,[DATA]:00000004h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t2907.htm"{72} "t2907.htm"{76} D1450 Start,[CODE]:00000000h,type='I',size=4,scope='S',ref='N',fix=Y,src="t2907.htm"{61} "t2907.htm"{76} D1450 Today,[BSS]:00000004h,type='S',size=4,scope='S',ref='Y',fix=Y,src="t2907.htm"{75} "t2907.htm"{76} D1450 Today.Day,[BSS]:00000007h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{62} "t2907.htm"{76} D1450 Today.Month,[BSS]:00000006h,type='B',size=1,scope='S',ref='Y',fix=Y,src="t2907.htm"{75} "t2907.htm"{76} D1450 Today.Year,[BSS]:00000004h,type='W',size=2,scope='S',ref='Y',fix=Y,src="t2907.htm"{61} "t2907.htm"{76} D1790 **** End of %DISPLAY "t2907.htm"{76} I0660 16bit TINY BIN file "t2907.bin" created, size=24. "t2907.htm"{107} I0650 Program "t2907" assembled in 3 passes with errorlevel 1. "t2907.htm"{107} I0750 Source "t2907" (260 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t2907.htm.lst" created, size=4713. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t2907. bin
0000: 8D 06 24 00 A0 27 00 B4 03 A1 03 00 C3 00 00 00  ¤·$°¤'°¤·¤·°¤°°°
0010: 41 42 43 00 00 00 0C 1F                          ABC°°°··

▲Back to the top▲