EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2506: Pseudoinstruction DS autoalignment


Tested procedures
PseudoData  
Source & expected listing t2506.htm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=28 | |t2506 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=32,LISTMAP=OFF,LISTGLOBALS=OFF |[StrucA] |StrucA STRUC ; Unspecified alignment defaults to PROGRAM WIDTH=32 (DWORD). |00000000:........ | DW 2*WORD |00000004: | ENDSTRUC StrucA |[StrucB] |StrucB STRUC ALIGN=OWORD ; All instances of StrucB should be autoaligned to OWORD. |00000000:........ | DW 2*WORD |00000004: | ENDSTRUC StrucB |[BIN] |[BIN] | | EUROASM AUTOALIGN=ON |00000000:616263 | DB "abc" ; Intentional disalignment. |00000003:90 ....AutoAlignment stuff. |00000004:00000000 | DS StrucA ; DWORD autoalignment expected. |00000008:3E8D842000000000 ....AutoAlignment stuff. |00000010:00000000 | DS StrucB ; OWORD autoalignment expected. | | EUROASM AUTOALIGN=OFF |00000014:616263 | DB "abc" ; Intentional disalignment. |00000017:00000000 | DS StrucA ; No implicit alignment expected. |0000001B:00000000 | DS StrucB ; No implicit alignment expected. | | ENDPROGRAM t2506
Expected messages t2506.out
I0180 Assembling source file "t2506.htm". I0270 Assembling source "t2506". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2506". "t2506.htm"{49} I0510 Assembling program pass 1. "t2506.htm"{49} I0530 Assembling program pass 2 - final. "t2506.htm"{49} I0660 32bit TINY BIN file "t2506.bin" created, size=31. "t2506.htm"{67} I0650 Program "t2506" assembled in 2 passes with errorlevel 0. "t2506.htm"{67} I0750 Source "t2506" (85 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t2506.htm.lst" created, size=1352. I0990 EuroAssembler terminated with errorlevel 0.

▲Back to the top▲