Test t3221:
Machine instructions CMPXCHG CMPXCHG486
- Tested procedures
-
IigCMPXCHG
IigCMPXCHG486
- Source & expected listing
t3221.htm.lst
-
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=34, CPU=486, UNDOC=ENABLE
| |t3221 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF, IMAGEBASE=0
|[Mode16] |[Mode16] SEGMENT WIDTH=16,PURPOSE=CODE
|0000:0FA6D1 | CMPXCHG486 CL,DL
|0003:0FA7D1 | CMPXCHG486 CX,DX
|0006:660FA7D1 | CMPXCHG486 ECX,EDX
|000A:F00FA614 | LOCK:CMPXCHG486 [SI],DL
|000E:F00FA714 | LOCK:CMPXCHG486 [SI],DX
|0012:F0660FA714 | LOCK:CMPXCHG486 [SI],EDX
|0017:2666670FA716 | CMPXCHG486 [ES:ESI],EDX
| | EUROASM CPU=586
|001D:0FB0D1 | CMPXCHG CL,DL
|0020:0FB1D1 | CMPXCHG CX,DX
|0023:660FB1D1 | CMPXCHG ECX,EDX
|0027:F00FB014 | LOCK:CMPXCHG [SI],DL
|002B:F00FB114 | LOCK:CMPXCHG [SI],DX
|002F:F0660FB114 | LOCK:CMPXCHG [SI],EDX
|0034:2666670FB116 | CMPXCHG [ES:ESI],EDX
|[Mode32] |[Mode32] SEGMENT WIDTH=32,PURPOSE=CODE
|00000000:0FA6D1 | CMPXCHG486 CL,DL
|00000003:660FA7D1 | CMPXCHG486 CX,DX
|00000007:0FA7D1 | CMPXCHG486 ECX,EDX
|0000000A:F0670FA614 | LOCK:CMPXCHG486 [SI],DL
|0000000F:F066670FA714 | LOCK:CMPXCHG486 [SI],DX
|00000015:F0670FA714 | LOCK:CMPXCHG486 [SI],EDX
|0000001A:260FA716 | CMPXCHG486 [ES:ESI],EDX
|0000001E:0FB0D1 | CMPXCHG CL,DL
|00000021:660FB1D1 | CMPXCHG CX,DX
|00000025:0FB1D1 | CMPXCHG ECX,EDX
|00000028:F0670FB014 | LOCK:CMPXCHG [SI],DL
|0000002D:F066670FB114 | LOCK:CMPXCHG [SI],DX
|00000033:F0670FB114 | LOCK:CMPXCHG [SI],EDX
|00000038:260FB116 | CMPXCHG [ES:ESI],EDX
| | EUROASM CPU=X64
|[Mode64] |[Mode64] SEGMENT WIDTH=64,PURPOSE=CODE
|00000000:0FB0D1 | CMPXCHG CL,DL
|00000003:660FB1D1 | CMPXCHG CX,DX
|00000007:0FB1D1 | CMPXCHG ECX,EDX
|0000000A:66410FB1D1 | CMPXCHG R9W,DX
|0000000F:410FB1D1 | CMPXCHG R9D,EDX
|00000013:490FB1D1 | CMPXCHG R9,RDX
|00000017:440FB0D1 | CMPXCHG CL,R10B
|0000001B:66440FB1D1 | CMPXCHG CX,R10W
|00000020:440FB1D1 | CMPXCHG ECX,R10D
|00000024:4C0FB1D1 | CMPXCHG RCX,R10
|00000028:F00FB016 | LOCK:CMPXCHG [RSI],DL
|0000002C:F0660FB116 | LOCK:CMPXCHG [RSI],DX
|00000031:F00FB116 | LOCK:CMPXCHG [RSI],EDX
|00000035:F0480FB116 | LOCK:CMPXCHG [RSI],RDX
|0000003A:26670FB116 | CMPXCHG [ES:ESI],EDX
|## W2377 Segment override is ignored in 64bit mode.
|0000003F:674D0FB1A46844332211 | CMPXCHG [R8D+2*EBP+0x11223344],R12
|00000049:F04C0FB1042500000000 | LOCK:CMPXCHG [0],R8
| |ENDPROGRAM t3221
- Expected messages
t3221.out
I0180 Assembling source file "t3221.htm".
I0270 Assembling source "t3221".
I0310 Assembling source pass 1.
I0330 Assembling source pass 2 - final.
I0470 Assembling program "t3221". "t3221.htm"{52}
I0510 Assembling program pass 1. "t3221.htm"{52}
W2377 Segment override is ignored in 64bit mode. "t3221.htm"{100}
I0530 Assembling program pass 2 - final. "t3221.htm"{52}
W2377 Segment override is ignored in 64bit mode. "t3221.htm"{100}
I0660 16bit TINY BIN file "t3221.bin" created, size=211. "t3221.htm"{104}
I0650 Program "t3221" assembled in 2 passes with errorlevel 2. "t3221.htm"{104}
I0750 Source "t3221" (124 lines) assembled in 2 passes with errorlevel 2.
I0860 Listing file "t3221.htm.lst" created, size=3134.
I0990 EuroAssembler terminated with errorlevel 2.
▲Back to the top▲