| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# Test t2904: Pseudoinstruction %DISPLAY SECTIONS

Tested procedures
  PseudopcDISPLAY

Source & expected listing t2904.htm.lst
  `| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=28 | |t2904 PROGRAM FORMAT=BIN,WIDTH=16,LISTMAP=ON,LISTGLOBALS=OFF,LISTLITERALS=ON |[Data] |[Data] SEGMENT PURPOSE=DATA+LITERALS,WIDTH=16,ALIGN=16 |[Text] |[Text] SEGMENT PURPOSE=CODE,WIDTH=16,ALIGN=16 ; Declare segments [Text] and [Data] explicitly. |0000:BE[0000] | MOV SI,T1 |0003:A1[0000] | MOV AX,[D1] |0006:E8(0000) | CALL S1 |0009:C3 | RET |[Subroutines] |[Subroutines] ; Declare section of segment [Text]. |0000:BB[0000] |S1 MOV BX,=W(5) ; This declares section [@LT2] for word literals in [Data]. |0003:C3 | RET |[Data] |[Data] ; Switch to the section/segment [Data]. |0000:11111111 |D1 D DWORD 0x1111_1111 |[Strings] |[Strings] ; Declare new section in segment [Data]. |0000:4120737472696E672E00 |T1 DB "A string.",0 | | %DISPLAY Segments |# D1250 **** %DISPLAY Groups, Segments, Sections |# D1270 [Data],purpose=DATA+LITERAL,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{50} |# D1280 [Data],address=00000000h,size=00000004h=4,align=16,ref=Y,src="t2904.htm"{50} |# D1280 [@LT2],address=00000000h,size=00000002h=2,align=2,ref=Y,src="t2904.htm"{57} |# D1280 [Strings],address=00000000h,size=0000000Ah=10,align=16,ref=Y,src="t2904.htm"{61} |# D1270 [Text],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{51} |# D1280 [Text],address=00000000h,size=0000000Ah=10,align=16,ref=N,src="t2904.htm"{51} |# D1280 [Subroutines],address=00000000h,size=00000004h=4,align=16,ref=N,src="t2904.htm"{56} |# D1790 **** End of %DISPLAY |[@LT2] ====ListLiterals in section [@LT2]. |0000:0500 =W(5) | | ENDPROGRAM t2904 | **** ListMap "t2904.bin",model=TINY,groups=1,segments=2,entry=,stack=[COMGROUP]:0000FFFEh | [COMGROUP],FA=00000000h,VA=00000000h,size=0000003Ah=58,group [Text] [Data] | [Text],FA=00000000h,VA=00000000h,size=00000014h=20,width=16,align=0010h,purpose=CODE | [Data],FA=00000020h,VA=00000020h,size=0000001Ah=26,width=16,align=0010h,purpose=DATA+RODATA+LITERAL`

Expected messages t2904.out
  `I0180 Assembling source file "t2904.htm". I0270 Assembling source "t2904". I0310 Assembling source pass 1. D1250 **** %DISPLAY Groups, Segments, Sections "t2904.htm"{63} D1260 [COMGROUP],group [CODE] [RODATA] [DATA] [BSS] [STACK],src= "t2904.htm"{63} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src= "t2904.htm"{63} D1280 [CODE],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2904.htm"{63} D1270 [RODATA],purpose=RODATA,width=16,align=16,combine=PUBLIC,class="",src= "t2904.htm"{63} D1280 [RODATA],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2904.htm"{63} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src= "t2904.htm"{63} D1280 [DATA],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2904.htm"{63} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src= "t2904.htm"{63} D1280 [BSS],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2904.htm"{63} D1270 [STACK],purpose=STACK,width=16,align=16,combine=PUBLIC,class="",src= "t2904.htm"{63} D1280 [STACK],address=00000000h,size=00000000h=0,align=16,ref=N,src= "t2904.htm"{63} D1790 **** End of %DISPLAY "t2904.htm"{63} I0330 Assembling source pass 2 - final. I0470 Assembling program "t2904". "t2904.htm"{49} I0510 Assembling program pass 1. "t2904.htm"{49} D1250 **** %DISPLAY Groups, Segments, Sections "t2904.htm"{63} D1260 [COMGROUP],group [CODE] [RODATA] [DATA] [BSS] [STACK],src="t2904.htm"{49} "t2904.htm"{63} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [CODE],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [RODATA],purpose=RODATA,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [RODATA],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [DATA],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [BSS],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [STACK],purpose=STACK,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [STACK],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [Data],purpose=DATA+LITERAL,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{50} "t2904.htm"{63} D1280 [Data],address=00000000h,size=00000004h=4,align=16,ref=Y,src="t2904.htm"{50} "t2904.htm"{63} D1280 [@LT2],address=00000000h,size=00000002h=2,align=2,ref=Y,src="t2904.htm"{57} "t2904.htm"{63} D1280 [Strings],address=00000000h,size=0000000Ah=10,align=16,ref=Y,src="t2904.htm"{61} "t2904.htm"{63} D1270 [Text],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{51} "t2904.htm"{63} D1280 [Text],address=00000000h,size=0000000Ah=10,align=16,ref=N,src="t2904.htm"{51} "t2904.htm"{63} D1280 [Subroutines],address=00000000h,size=00000004h=4,align=16,ref=N,src="t2904.htm"{56} "t2904.htm"{63} D1790 **** End of %DISPLAY "t2904.htm"{63} I0510 Assembling program pass 2. "t2904.htm"{49} D1250 **** %DISPLAY Groups, Segments, Sections "t2904.htm"{63} D1260 [COMGROUP],group [CODE] [RODATA] [DATA] [BSS] [STACK],src="t2904.htm"{49} "t2904.htm"{63} D1270 [CODE],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [CODE],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [RODATA],purpose=RODATA,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [RODATA],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [DATA],purpose=DATA,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [DATA],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [BSS],purpose=BSS,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [BSS],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [STACK],purpose=STACK,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{49} "t2904.htm"{63} D1280 [STACK],address=00000000h,size=00000000h=0,align=16,ref=N,src="t2904.htm"{49} "t2904.htm"{63} D1270 [Data],purpose=DATA+LITERAL,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{50} "t2904.htm"{63} D1280 [Data],address=00000000h,size=00000004h=4,align=16,ref=Y,src="t2904.htm"{50} "t2904.htm"{63} D1280 [@LT2],address=00000000h,size=00000002h=2,align=2,ref=Y,src="t2904.htm"{57} "t2904.htm"{63} D1280 [Strings],address=00000000h,size=0000000Ah=10,align=16,ref=Y,src="t2904.htm"{61} "t2904.htm"{63} D1270 [Text],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{51} "t2904.htm"{63} D1280 [Text],address=00000000h,size=0000000Ah=10,align=16,ref=N,src="t2904.htm"{51} "t2904.htm"{63} D1280 [Subroutines],address=00000000h,size=00000004h=4,align=16,ref=N,src="t2904.htm"{56} "t2904.htm"{63} D1790 **** End of %DISPLAY "t2904.htm"{63} I0530 Assembling program pass 3 - final. "t2904.htm"{49} D1250 **** %DISPLAY Groups, Segments, Sections "t2904.htm"{63} D1270 [Data],purpose=DATA+LITERAL,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{50} "t2904.htm"{63} D1280 [Data],address=00000000h,size=00000004h=4,align=16,ref=Y,src="t2904.htm"{50} "t2904.htm"{63} D1280 [@LT2],address=00000000h,size=00000002h=2,align=2,ref=Y,src="t2904.htm"{57} "t2904.htm"{63} D1280 [Strings],address=00000000h,size=0000000Ah=10,align=16,ref=Y,src="t2904.htm"{61} "t2904.htm"{63} D1270 [Text],purpose=CODE,width=16,align=16,combine=PUBLIC,class="",src="t2904.htm"{51} "t2904.htm"{63} D1280 [Text],address=00000000h,size=0000000Ah=10,align=16,ref=N,src="t2904.htm"{51} "t2904.htm"{63} D1280 [Subroutines],address=00000000h,size=00000004h=4,align=16,ref=N,src="t2904.htm"{56} "t2904.htm"{63} D1790 **** End of %DISPLAY "t2904.htm"{63} I0660 16bit TINY BIN file "t2904.bin" created, size=58. "t2904.htm"{75} I0650 Program "t2904" assembled in 3 passes with errorlevel 1. "t2904.htm"{75} I0750 Source "t2904" (168 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t2904.htm.lst" created, size=2384. I0990 EuroAssembler terminated with errorlevel 1.`

Expected output file t2904. bin

      0000: BE 30 00 A1 20 00 E8 07 00 C3 90 90 90 90 90 90  ¤0°¤¯°¤·°¤¤¤¤¤¤¤
      0010: BB 24 00 C3 00 00 00 00 00 00 00 00 00 00 00 00  ¤$°¤°°°°°°°°°°°°
      0020: 11 11 11 11 05 00 00 00 00 00 00 00 00 00 00 00  ·····°°°°°°°°°°°
      0030: 41 20 73 74 72 69 6E 67 2E 00                    A¯string.°

▲Back to the top▲