EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2500: Pseudoinstruction STRUC with standard and local name


Tested procedures
PseudoSTRUC   PseudoENDSTRUC   PseudoData   PseudoDS  
Source & expected listing t2500.htm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=16, AUTOALIGN=OFF, NOWARN=2101..2102 | |t2500 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16, PURPOSE=DATA |[S1] |S1 STRUC ; Declaration of a structure with standard name. |0000:1A | .A DB 0x1A ; 1st and 3rd members have preinitialized value. |0001:00 | .B DB BYTE ; 2nd member is uninitialized byte. |0002:1C | .C DB 0x1C |0003: | ENDSTRUC S1 |[t2500.S2] |.S2 STRUC ; Declaration of a structure with local name. |0000:2A | .A DB 0x2A ; 1st and 3rd members have preinitialized value. |0001:00 | .B DB BYTE ; 2nd member is uninitialized byte. |0002:2C | .C DB 0x2C |0003: | ENDSTRUC .S2 |[BIN] ::::Section changed. |0000:11 | DB 0x11 ; Data marker. |0001:1A001C |D1: DS S1 ; Data instance of structure S1. |0004:22 | DB 0x22 ; Data marker. |0005:1ABBCC |D2: DS S1, .B=0xBB, .C=0xCC ; Data instance of structure S1 with redefined default values. |0008:33 | DB 0x33 ; Data marker. |0009:2AB2C2 |D3: DS t2500.S2, .B=0xB2, .C=0xC2 ; Data instance of structure .S2 with redefined default values. |000C:44 | DB 0x44 ; Data marker. |000D:2AB2C2 |D4: DS .S2, .B=0xB2, .C=0xC2 ; Data instance of structure .S2 referred by local name. |0010:55 | DB 0x55 ; Data marker. | | ENDPROGRAM t2500
Expected messages t2500.out
I0180 Assembling source file "t2500.htm". I0270 Assembling source "t2500". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2500". "t2500.htm"{58} I0510 Assembling program pass 1. "t2500.htm"{58} I0510 Assembling program pass 2. "t2500.htm"{58} I0530 Assembling program pass 3 - final. "t2500.htm"{58} I0660 16bit TINY BIN file "t2500.bin" created, size=17. "t2500.htm"{80} I0650 Program "t2500" assembled in 3 passes with errorlevel 0. "t2500.htm"{80} I0750 Source "t2500" (105 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t2500.htm.lst" created, size=1527. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t2500. bin
0000: 11 1A 00 1C 22 1A BB CC 33 2A B2 C2 44 2A B2 C2  ··°·"·¤¤3*¤¤D*¤¤
0010: 55                                               U

▲Back to the top▲