EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t3172: Machine instructions LOOP LOOPNE LOOPNZ LOOPE LOOPZ JCXZ JECXZ in 32bit mode


Tested procedures
IigLOOP   IigLOOPE   IigLOOPZ   IigLOOPNE   IigLOOPNZ   IigJCXZ   IigJECXZ  
Source & expected listing t3172.htm.lst
| | EUROASM LIST=ON,DUMP=ON,AUTOALIGN=OFF,DUMPWIDTH=38,CPU=386 | |t3172 PROGRAM FORMAT=BIN,MODEL=FLAT,IMAGEBASE=3000h,LISTMAP=ON,LISTGLOBALS=OFF |[Mode32] |[Mode32] SEGMENT WIDTH=32,PURPOSE=CODE ; Linkex\d at 03000h. |00000000:67E3FD | JCXZ $ |00000003:E3FE | JECXZ $ |00000005:E2FE | LOOP $ |00000007:E1FE | LOOPE $ |00000009:E1FE | LOOPZ $ |0000000B:E0FE | LOOPNE $ |0000000D:E0FE | LOOPNZ $ |0000000F:67E2FD | LOOP $,CX |00000012:67E1FD | LOOPE $,CX |00000015:67E0FD | LOOPNE $,CX |00000018:E202EB05E9(11000000) | LOOP 0x11 ; Proxy JMPN to 00000011h. |00000021:E202EB05E9(22110000) | LOOP 0x1122 ; Proxy JMPN to 00001122h. |0000002A:E202EB05E9(33221100) | LOOP 0x112233 ; Proxy JMPN to 00112233h. |00000033:E202EB05E9F7FFFFFF | LOOP $,DIST=NEAR ; Proxy JMPN to 00003033h. |0000003C:E202EB0466E9F8FF | LOOP $,DIST=NEAR,DATA=WORD ; Proxy JMPN to 303Ch. |00000044:E202EB0466E9F8FF | LOOP $,DIST=NEAR,IMM=WORD ; Proxy JMPN to 3044h. |0000004C:E202EB07EA[4C000000]{0000} | LOOP $,DIST=FAR ; Proxy JMPF to 0:0000004Ch. |00000057:E202EB0666EA[5700]{0000} | LOOP $,DIST=FAR,DATA=WORD ; Proxy JMPF to 0:3057h. |00000061:E202EB0666EA[6100]{0000} | LOOP $,DIST=FAR,IMM=WORD ; Proxy JMPF to 0:3061h. |0000006B:E202EB05E977FFFFFF | LOOP $-128 ; Proxy JMPN to 00002FEBh. |00000074:E202EB05E978FFFFFF | LOOP $-127 ; Proxy JMPN to 00002FF5h. |0000007D:E280 | LOOP $-126 |0000007F:E281 | LOOP $-125 |00000081:E27E | LOOP $+128 |00000083:E27F | LOOP $+129 |00000085:E202EB05E979000000 | LOOP $+130 ; Proxy JMPN to 00003107h. |0000008E:E202EB05E97A000000 | LOOP $+131 ; Proxy JMPN to 00003111h. |00000097:E22F | LOOP NearLabel: |00000099:E202EB05E926000000 | LOOP NearLabel:,DIST=NEAR ; Proxy JMPN to 000030C8h. |000000A2:E202EB0466E91E00 | LOOP NearLabel:,DIST=NEAR,DATA=WORD ; Proxy JMPN to 30C8h. |000000AA:E202EB05E9(00000000) | LOOP FarLabel: ; Proxy JMPN to 000030D0h. |000000B3:E202EB07EA[00000000]{0000} | LOOP FarLabel:,DIST=FAR ; Proxy JMPF to 0:000030D0h. |000000BE:E202EB0666EA[0000]{0000} | LOOP FarLabel:,DIST=FAR,DATA=WORD ; Proxy JMPF to 0:30D0h. |000000C8: |NearLabel: | |;; |[FarSeg] |[FarSeg] SEGMENT WIDTH=32,PURPOSE=CODE,ALIGN=0X10 ; Linked at 030D0h. |00000000:C3 |FarLabel:RET | |ENDPROGRAM t3172 | **** ListMap "t3172.bin",model=FLAT,groups=0,segments=2,entry=,stack= | [Mode32],FA=00000000h,VA=00003000h,size=000000C8h=200,width=32,align=0010h,purpose=CODE | [FarSeg],FA=000000D0h,VA=000030D0h,size=00000001h=1,width=32,align=0010h,purpose=CODE
Expected messages t3172.out
I0180 Assembling source file "t3172.htm". I0270 Assembling source "t3172". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t3172". "t3172.htm"{67} I0510 Assembling program pass 1. "t3172.htm"{67} I0510 Assembling program pass 2. "t3172.htm"{67} I0510 Assembling program pass 3. "t3172.htm"{67} I0530 Assembling program pass 4 - final. "t3172.htm"{67} I0660 32bit FLAT BIN file "t3172.bin" created, size=209. "t3172.htm"{106} I0650 Program "t3172" assembled in 4 passes with errorlevel 0. "t3172.htm"{106} I0750 Source "t3172" (147 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t3172.htm.lst" created, size=3419. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t3172. bin
0000: 67 E3 FD E3 FE E2 FE E1 FE E1 FE E0 FE E0 FE 67  g¤¤¤¤¤¤¤¤¤¤¤¤¤¤g
0010: E2 FD 67 E1 FD 67 E0 FD E2 02 EB 05 E9 F0 FF FF  ¤¤g¤¤g¤¤¤·¤·¤¤¤¤
0020: FF E2 02 EB 05 E9 F8 10 00 00 E2 02 EB 05 E9 00  ¤¤·¤·¤¤·°°¤·¤·¤°
0030: 22 11 00 E2 02 EB 05 E9 F7 FF FF FF E2 02 EB 04  "·°¤·¤·¤¤¤¤¤¤·¤·
0040: 66 E9 F8 FF E2 02 EB 04 66 E9 F8 FF E2 02 EB 07  f¤¤¤¤·¤·f¤¤¤¤·¤·
0050: EA 4C 30 00 00 00 00 E2 02 EB 06 66 EA 57 30 00  ¤L0°°°°¤·¤·f¤W0°
0060: 00 E2 02 EB 06 66 EA 61 30 00 00 E2 02 EB 05 E9  °¤·¤·f¤a0°°¤·¤·¤
0070: 77 FF FF FF E2 02 EB 05 E9 78 FF FF FF E2 80 E2  w¤¤¤¤·¤·¤x¤¤¤¤¤¤
0080: 81 E2 7E E2 7F E2 02 EB 05 E9 79 00 00 00 E2 02  ¤¤~¤¤¤·¤·¤y°°°¤·
0090: EB 05 E9 7A 00 00 00 E2 2F E2 02 EB 05 E9 26 00  ¤·¤z°°°¤/¤·¤·¤&°
00A0: 00 00 E2 02 EB 04 66 E9 1E 00 E2 02 EB 05 E9 1D  °°¤·¤·f¤·°¤·¤·¤·
00B0: 00 00 00 E2 02 EB 07 EA D0 30 00 00 00 00 E2 02  °°°¤·¤·¤¤0°°°°¤·
00C0: EB 06 66 EA D0 30 00 00 90 90 90 90 90 90 90 90  ¤·f¤¤0°°¤¤¤¤¤¤¤¤
00D0: C3                                               ¤

▲Back to the top▲