EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2508: Pseudoinstruction ALIGN


Description
Alignment stuff in DATA and CODE segments uses real NOP instructions, see No-operation encoding.
Tested procedures
PseudoALIGN   SssEmitAlignment  
Source & expected listing t2508.htm.lst
| | EUROASM CPU=086,LIST=ON,DUMP=ON,DUMPALL=YES,DUMPWIDTH=41 | |t2508 PROGRAM FORMAT=BIN,LISTMAP=ON,LISTGLOBALS=OFF |[Data16] |[Data16] SEGMENT WIDTH=16,PURPOSE=DATA,ALIGN=ZWORD |0000:00 | ALIGN DWORD,BYTE |0001:000000 | ALIGN DWORD |0004:00000000000000 | ALIGN 16,11 |000B:0000000000000000000000000000000000| ALIGN YWORD |001C:00000000 ----Dumping all. |0020:FF | DB -1 |[Code16] |[Code16] SEGMENT WIDTH=16,PURPOSE=CODE,ALIGN=ZWORD |0000:90 | ALIGN 16,1 |0001:9087C987D287DB87E487C987D287DB | ALIGN 16 |0010:87C9 | ALIGN 16,2 |0012:9087C987D287DB87E49087C987D2 | ALIGN 16 |0020:9087C9 | ALIGN 16,3 |0023:9087C987D287DB87E487C987D2 | ALIGN 16 |0030:87C987D2 | ALIGN 16,4 |0034:9087C987D287DB87E49087C9 | ALIGN 16 |0040:9087C987D2 | ALIGN 16,5 |0045:9087C987D287DB87E487C9 | ALIGN 16 |0050:87C987D287DB | ALIGN 16,6 |0056:9087C987D287DB87E490 | ALIGN 16 |0060:9087C987D287DB | ALIGN 16,7 |0067:9087C987D287DB87E4 | ALIGN 16 |0070:87C987D287DB87E4 | ALIGN 16,8 |0078:87C987D287DB87E4 | ALIGN 16 |0080:9087C987D287DB87E4 | ALIGN 16,9 |0089:9087C987D287DB | ALIGN 16 | | EUROASM CPU=686 |0090:90 | ALIGN 16,1 |0091:670F1F842000000000670F1F442000 | ALIGN 16 |00A0:6690 | ALIGN 16,2 |00A2:670F1F842000000000670F1F4000 | ALIGN 16 |00B0:666790 | ALIGN 16,3 |00B3:670F1F842000000000670F1F00 | ALIGN 16 |00C0:670F1F00 | ALIGN 16,4 |00C4:670F1F842000000000666790 | ALIGN 16 |00D0:670F1F4000 | ALIGN 16,5 |00D5:670F1F8420000000006690 | ALIGN 16 |00E0:670F1F442000 | ALIGN 16,6 |00E6:670F1F84200000000090 | ALIGN 16 |00F0:66670F1F442000 | ALIGN 16,7 |00F7:670F1F842000000000 | ALIGN 16 |0100:670F1F8000000000 | ALIGN 16,8 |0108:670F1F8000000000 | ALIGN 16 |0110:670F1F842000000000 | ALIGN 16,9 |0119:66670F1F442000 | ALIGN 16 |0120:90 | ALIGN DWORD,BYTE |0121:90 | ALIGN WORD |0122:670F1F842000000000 | ALIGN 16,11 |012B:C3 | RET | | EUROASM CPU=386 |[Data32] |[Data32] SEGMENT WIDTH=32,PURPOSE=DATA,ALIGN=ZWORD |00000000:00 | ALIGN DWORD,BYTE |00000001:000000 | ALIGN DWORD |00000004:00000000000000 | ALIGN 16,11 |0000000B:000000000000000000000000000000| ALIGN YWORD |0000001A:000000000000 ----Dumping all. |00000020:FF | DB -1 |[Code32] |[Code32] SEGMENT WIDTH=32,PURPOSE=CODE,ALIGN=ZWORD |00000000:90 | ALIGN 16,1 |00000001:663E8D8420000000008D8000000000| ALIGN 16 |00000010:6690 | ALIGN 16,2 |00000012:663E8D8420000000003E8D442000 | ALIGN 16 |00000020:8D4000 | ALIGN 16,3 |00000023:663E8D8420000000008D442000 | ALIGN 16 |00000030:8D442000 | ALIGN 16,4 |00000034:663E8D8420000000008D4000 | ALIGN 16 |00000040:3E8D442000 | ALIGN 16,5 |00000045:663E8D8420000000006690 | ALIGN 16 |00000050:8D8000000000 | ALIGN 16,6 |00000056:663E8D84200000000090 | ALIGN 16 |00000060:8D842000000000 | ALIGN 16,7 |00000067:663E8D842000000000 | ALIGN 16 |00000070:3E8D842000000000 | ALIGN 16,8 |00000078:3E8D842000000000 | ALIGN 16 |00000080:663E8D842000000000 | ALIGN 16,9 |00000089:8D842000000000 | ALIGN 16 | | EUROASM CPU=686 |00000090:90 | ALIGN 16,1 |00000091:660F1F842000000000660F1F442000| ALIGN 16 |000000A0:6690 | ALIGN 16,2 |000000A2:660F1F8420000000000F1F442000 | ALIGN 16 |000000B0:0F1F00 | ALIGN 16,3 |000000B3:660F1F8420000000000F1F4000 | ALIGN 16 |000000C0:0F1F4000 | ALIGN 16,4 |000000C4:660F1F8420000000000F1F00 | ALIGN 16 |000000D0:0F1F442000 | ALIGN 16,5 |000000D5:660F1F8420000000006690 | ALIGN 16 |000000E0:660F1F442000 | ALIGN 16,6 |000000E6:660F1F84200000000090 | ALIGN 16 |000000F0:0F1F8000000000 | ALIGN 16,7 |000000F7:660F1F842000000000 | ALIGN 16 |00000100:0F1F842000000000 | ALIGN 16,8 |00000108:0F1F842000000000 | ALIGN 16 |00000110:660F1F842000000000 | ALIGN 16,9 |00000119: | ALIGN DWORD,BYTE |00000119:90 | ALIGN WORD |0000011A:90 | ALIGN 16,11 |0000011B:C3 | RET | | EUROASM CPU=X64 |[Data64] |[Data64] SEGMENT WIDTH=32,PURPOSE=DATA,ALIGN=ZWORD |00000000:00 | ALIGN DWORD,BYTE |00000001:000000 | ALIGN DWORD |00000004:00000000000000 | ALIGN 16,11 |0000000B:000000000000000000000000000000| ALIGN YWORD |0000001A:000000000000 ----Dumping all. |00000020:FF | DB -1 |[Code64] |[Code64] SEGMENT WIDTH=64,PURPOSE=CODE,ALIGN=ZWORD |00000000:90 | ALIGN 16,1 |00000001:660F1F842000000000660F1F442000| ALIGN 16 |00000010:6690 | ALIGN 16,2 |00000012:660F1F8420000000000F1F442000 | ALIGN 16 |00000020:0F1F00 | ALIGN 16,3 |00000023:660F1F8420000000000F1F4000 | ALIGN 16 |00000030:0F1F4000 | ALIGN 16,4 |00000034:660F1F8420000000000F1F00 | ALIGN 16 |00000040:0F1F442000 | ALIGN 16,5 |00000045:660F1F8420000000006690 | ALIGN 16 |00000050:660F1F442000 | ALIGN 16,6 |00000056:660F1F84200000000090 | ALIGN 16 |00000060:0F1F8000000000 | ALIGN 16,7 |00000067:660F1F842000000000 | ALIGN 16 |00000070:0F1F842000000000 | ALIGN 16,8 |00000078:0F1F842000000000 | ALIGN 16 |00000080:660F1F842000000000 | ALIGN 16,9 |00000089: | ALIGN DWORD,BYTE |00000089:90 | ALIGN WORD |0000008A:90 | ALIGN 16,11 |0000008B:C3 | RET | | ENDPROGRAM t2508 | **** ListMap "t2508.bin",model=TINY,groups=1,segments=6,entry=,stack=[COMGROUP]:0000FFFEh | [COMGROUP],FA=00000000h,VA=00000000h,size=000003E1h=993,group [Code16] [Code32] [Code64] [Data16] [Data32] [Data64] | [Code16],FA=00000000h,VA=00000000h,size=0000012Ch=300,width=16,align=0040h,purpose=CODE | [Code32],FA=00000140h,VA=00000140h,size=0000011Ch=284,width=32,align=0040h,purpose=CODE | [Code64],FA=00000280h,VA=00000280h,size=0000008Ch=140,width=64,align=0040h,purpose=CODE | [Data16],FA=00000340h,VA=00000340h,size=00000021h=33,width=16,align=0040h,purpose=DATA | [Data32],FA=00000380h,VA=00000380h,size=00000021h=33,width=32,align=0040h,purpose=DATA | [Data64],FA=000003C0h,VA=000003C0h,size=00000021h=33,width=32,align=0040h,purpose=DATA
Expected messages t2508.out
I0180 Assembling source file "t2508.htm". I0270 Assembling source "t2508". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2508". "t2508.htm"{56} I0510 Assembling program pass 1. "t2508.htm"{56} I0530 Assembling program pass 2 - final. "t2508.htm"{56} I0660 16bit TINY BIN file "t2508.bin" created, size=993. "t2508.htm"{185} I0650 Program "t2508" assembled in 2 passes with errorlevel 0. "t2508.htm"{185} I0750 Source "t2508" (278 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t2508.htm.lst" created, size=9151. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t2508. bin
0000: 90 90 87 C9 87 D2 87 DB 87 E4 87 C9 87 D2 87 DB  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0010: 87 C9 90 87 C9 87 D2 87 DB 87 E4 90 87 C9 87 D2  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0020: 90 87 C9 90 87 C9 87 D2 87 DB 87 E4 87 C9 87 D2  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0030: 87 C9 87 D2 90 87 C9 87 D2 87 DB 87 E4 90 87 C9  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0040: 90 87 C9 87 D2 90 87 C9 87 D2 87 DB 87 E4 87 C9  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0050: 87 C9 87 D2 87 DB 90 87 C9 87 D2 87 DB 87 E4 90  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0060: 90 87 C9 87 D2 87 DB 90 87 C9 87 D2 87 DB 87 E4  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0070: 87 C9 87 D2 87 DB 87 E4 87 C9 87 D2 87 DB 87 E4  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0080: 90 87 C9 87 D2 87 DB 87 E4 90 87 C9 87 D2 87 DB  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0090: 90 67 0F 1F 84 20 00 00 00 00 67 0F 1F 44 20 00  ¤g··¤¯°°°°g··D¯°
00A0: 66 90 67 0F 1F 84 20 00 00 00 00 67 0F 1F 40 00  f¤g··¤¯°°°°g··@°
00B0: 66 67 90 67 0F 1F 84 20 00 00 00 00 67 0F 1F 00  fg¤g··¤¯°°°°g··°
00C0: 67 0F 1F 00 67 0F 1F 84 20 00 00 00 00 66 67 90  g··°g··¤¯°°°°fg¤
00D0: 67 0F 1F 40 00 67 0F 1F 84 20 00 00 00 00 66 90  g··@°g··¤¯°°°°f¤
00E0: 67 0F 1F 44 20 00 67 0F 1F 84 20 00 00 00 00 90  g··D¯°g··¤¯°°°°¤
00F0: 66 67 0F 1F 44 20 00 67 0F 1F 84 20 00 00 00 00  fg··D¯°g··¤¯°°°°
0100: 67 0F 1F 80 00 00 00 00 67 0F 1F 80 00 00 00 00  g··¤°°°°g··¤°°°°
0110: 67 0F 1F 84 20 00 00 00 00 66 67 0F 1F 44 20 00  g··¤¯°°°°fg··D¯°
0120: 90 90 67 0F 1F 84 20 00 00 00 00 C3 90 90 90 90  ¤¤g··¤¯°°°°¤¤¤¤¤
0130: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0140: 90 66 3E 8D 84 20 00 00 00 00 8D 80 00 00 00 00  ¤f>¤¤¯°°°°¤¤°°°°
0150: 66 90 66 3E 8D 84 20 00 00 00 00 3E 8D 44 20 00  f¤f>¤¤¯°°°°>¤D¯°
0160: 8D 40 00 66 3E 8D 84 20 00 00 00 00 8D 44 20 00  ¤@°f>¤¤¯°°°°¤D¯°
0170: 8D 44 20 00 66 3E 8D 84 20 00 00 00 00 8D 40 00  ¤D¯°f>¤¤¯°°°°¤@°
0180: 3E 8D 44 20 00 66 3E 8D 84 20 00 00 00 00 66 90  >¤D¯°f>¤¤¯°°°°f¤
0190: 8D 80 00 00 00 00 66 3E 8D 84 20 00 00 00 00 90  ¤¤°°°°f>¤¤¯°°°°¤
01A0: 8D 84 20 00 00 00 00 66 3E 8D 84 20 00 00 00 00  ¤¤¯°°°°f>¤¤¯°°°°
01B0: 3E 8D 84 20 00 00 00 00 3E 8D 84 20 00 00 00 00  >¤¤¯°°°°>¤¤¯°°°°
01C0: 66 3E 8D 84 20 00 00 00 00 8D 84 20 00 00 00 00  f>¤¤¯°°°°¤¤¯°°°°
01D0: 90 66 0F 1F 84 20 00 00 00 00 66 0F 1F 44 20 00  ¤f··¤¯°°°°f··D¯°
01E0: 66 90 66 0F 1F 84 20 00 00 00 00 0F 1F 44 20 00  f¤f··¤¯°°°°··D¯°
01F0: 0F 1F 00 66 0F 1F 84 20 00 00 00 00 0F 1F 40 00  ··°f··¤¯°°°°··@°
0200: 0F 1F 40 00 66 0F 1F 84 20 00 00 00 00 0F 1F 00  ··@°f··¤¯°°°°··°
0210: 0F 1F 44 20 00 66 0F 1F 84 20 00 00 00 00 66 90  ··D¯°f··¤¯°°°°f¤
0220: 66 0F 1F 44 20 00 66 0F 1F 84 20 00 00 00 00 90  f··D¯°f··¤¯°°°°¤
0230: 0F 1F 80 00 00 00 00 66 0F 1F 84 20 00 00 00 00  ··¤°°°°f··¤¯°°°°
0240: 0F 1F 84 20 00 00 00 00 0F 1F 84 20 00 00 00 00  ··¤¯°°°°··¤¯°°°°
0250: 66 0F 1F 84 20 00 00 00 00 90 90 C3 90 90 90 90  f··¤¯°°°°¤¤¤¤¤¤¤
0260: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0270: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90  ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
0280: 90 66 0F 1F 84 20 00 00 00 00 66 0F 1F 44 20 00  ¤f··¤¯°°°°f··D¯°
0290: 66 90 66 0F 1F 84 20 00 00 00 00 0F 1F 44 20 00  f¤f··¤¯°°°°··D¯°
02A0: 0F 1F 00 66 0F 1F 84 20 00 00 00 00 0F 1F 40 00  ··°f··¤¯°°°°··@°
02B0: 0F 1F 40 00 66 0F 1F 84 20 00 00 00 00 0F 1F 00  ··@°f··¤¯°°°°··°
02C0: 0F 1F 44 20 00 66 0F 1F 84 20 00 00 00 00 66 90  ··D¯°f··¤¯°°°°f¤
02D0: 66 0F 1F 44 20 00 66 0F 1F 84 20 00 00 00 00 90  f··D¯°f··¤¯°°°°¤
02E0: 0F 1F 80 00 00 00 00 66 0F 1F 84 20 00 00 00 00  ··¤°°°°f··¤¯°°°°
02F0: 0F 1F 84 20 00 00 00 00 0F 1F 84 20 00 00 00 00  ··¤¯°°°°··¤¯°°°°
0300: 66 0F 1F 84 20 00 00 00 00 90 90 C3 00 00 00 00  f··¤¯°°°°¤¤¤°°°°
0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0360: FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ¤°°°°°°°°°°°°°°°
0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03A0: FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ¤°°°°°°°°°°°°°°°
03B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03E0: FF                                               ¤

▲Back to the top▲