Test t2506:
Pseudoinstruction DS autoalignment
- Tested procedures
-
PseudoData
ExpParseAlignment
- 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
| | EUROASM AUTOALIGN=ON
|[DATA] ::::Section changed.
|00000000:616263 | DB "abc" ; Intentional disalignment.
|[BSS] ::::Section changed.
|00000000:........ | DS StrucA ; DWORD autoalignment expected.
|00000004:................~....AutoAlignment stuff.
|00000010:........ | DS StrucB ; OWORD autoalignment expected.
| | EUROASM AUTOALIGN=OFF
|[DATA] ::::Section changed.
|00000003:616263 | DB "abc" ; Intentional disalignment.
|[BSS] ::::Section changed.
|00000014:........ | DS StrucA ; No implicit alignment expected.
|00000018:........ | 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"{52}
I0510 Assembling program pass 1. "t2506.htm"{52}
I0530 Assembling program pass 2 - final. "t2506.htm"{52}
I0660 32bit TINY BIN file "t2506.bin" created, size=6. "t2506.htm"{72}
I0650 Program "t2506" assembled in 2 passes with errorlevel 0. "t2506.htm"{72}
I0750 Source "t2506" (90 lines) assembled in 2 passes with errorlevel 0.
I0860 Listing file "t2506.htm.lst" created, size=1460.
I0990 EuroAssembler terminated with errorlevel 0.
▲Back to the top▲