EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t3171: Machine instructions LOOP LOOPNE LOOPNZ LOOPE LOOPZ JCXZ JECXZ in 16bit mode


Tested procedures
IigLOOP   IigLOOPE   IigLOOPZ   IigLOOPNE   IigLOOPNZ   IigJCXZ   IigJECXZ  
Source & expected listing t3171.htm.lst
| | EUROASM LIST=ON,DUMP=ON,AUTOALIGN=OFF,DUMPWIDTH=38,CPU=386 | |t3171 PROGRAM FORMAT=BIN,MODEL=MEDIUM,IMAGEBASE=0x3000,LISTMAP=ON,LISTGLOBALS=OFF |[Mode16] |[Mode16] SEGMENT WIDTH=16,PURPOSE=CODE ; Linked at 03000h. |0000:E3FE | JCXZ $ |0002:67E3FD | JECXZ $ |0005:E2FE | LOOP $ |0007:E1FE | LOOPE $ |0009:E1FE | LOOPZ $ |000B:E0FE | LOOPNE $ |000D:E0FE | LOOPNZ $ |000F:67E2FD | LOOP $,ECX |0012:67E1FD | LOOPE $,ECX |0015:67E0FD | LOOPNE $,ECX |0018:E202EB05EA[1100]{0000} | LOOP 0x11 ; Proxy JMPF 0:0011h. |0021:E202EB05EA[2211]{0000} | LOOP 0x1122 ; Proxy JMPF 0:1122h. |002A:E202EB0866EA[33221100]{0000} | LOOP 0x112233 ; Proxy JMPF 0:00112233h. |0036:E202EB03E9F9FF | LOOP $,DIST=NEAR ; Proxy relative JMPN to 3036h. |003D:E202EB0666E9F6FFFFFF | LOOP $,DIST=NEAR,DATA=DWORD ; Proxy relative JMPN to 0000303Dh. |0047:E202EB0666E9F6FFFFFF | LOOP $,DIST=NEAR,IMM=DWORD ; Proxy relative JMPN to 00003047h. |0051:E202EB05EA[5100]{0000} | LOOP $,DIST=FAR ; Proxy JMPF 0300h:0051h. |005A:E202EB0866EA[5A000000]{0000} | LOOP $,DIST=FAR,DATA=DWORD ; Proxy JMPF 0300h:0000005Ah. |0066:E202EB0866EA[66000000]{0000} | LOOP $,DIST=FAR,IMM=DWORD ; Proxy JMPF 0300h:00000066h. |0072:E202EB03E979FF | LOOP $-128 ; Proxy relative JMPN to 2F72h. |0079:E202EB03E97AFF | LOOP $-127 ; Proxy relative JMPN to 2FFAh. |0080:E280 | LOOP $-126 |0082:E281 | LOOP $-125 |0084:E27E | LOOP $+128 |0086:E27F | LOOP $+129 |0088:E202EB03E97B00 | LOOP $+130 ; Proxy relative JMPN to 3088h. |008F:E202EB03E97C00 | LOOP $+131 ; Proxy relative JMPN to 308Fh. |0096:E22F | LOOP NearLabel: |0098:E202EB03E92800 | LOOP NearLabel:,DIST=NEAR ; Proxy relative JMPN to 30C7h. |009F:E202EB0666E91E000000 | LOOP NearLabel:,DIST=NEAR,DATA=DWORD ; Proxy relative JMPN to 000030C7h. |00A9:E202EB05EA[0000]{0000} | LOOP FarLabel: ; Proxy JMPF 0x030Dh:0000h. |00B2:E202EB05EA[0000]{0000} | LOOP FarLabel:,DIST=FAR ; Proxy JMPF 0x030Dh:0000h. |00BB:E202EB0866EA[00000000]{0000} | LOOP FarLabel:,DATA=DWORD ; Proxy JMPF 0x030Dh:00000000h. |00C7: |NearLabel: | |;; |[FarSeg] |[FarSeg] SEGMENT WIDTH=16,PURPOSE=CODE,ALIGN=16 ; Linked at 030D0h. |0000:C3 |FarLabel: RET | |ENDPROGRAM t3171 | **** ListMap "t3171.bin",model=MEDIUM,groups=0,segments=2,entry=,stack= | [Mode16],FA=00000000h,VA=00003000h,size=000000C7h=199,width=16,align=0010h,purpose=CODE | [FarSeg],FA=000000D0h,VA=000030D0h,size=00000001h=1,width=16,align=0010h,purpose=CODE
Expected messages t3171.out
I0180 Assembling source file "t3171.htm". I0270 Assembling source "t3171". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t3171". "t3171.htm"{67} I0510 Assembling program pass 1. "t3171.htm"{67} I0510 Assembling program pass 2. "t3171.htm"{67} I0510 Assembling program pass 3. "t3171.htm"{67} I0530 Assembling program pass 4 - final. "t3171.htm"{67} I0660 16bit MEDIUM BIN file "t3171.bin" created, size=209. "t3171.htm"{106} I0650 Program "t3171" assembled in 4 passes with errorlevel 0. "t3171.htm"{106} I0750 Source "t3171" (147 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t3171.htm.lst" created, size=3492. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t3171. bin
0000: E3 FE 67 E3 FD 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 EA 11 00 00  ¤¤g¤¤g¤¤¤·¤·¤·°°
0020: 00 E2 02 EB 05 EA 22 11 00 00 E2 02 EB 08 66 EA  °¤·¤·¤"·°°¤·¤·f¤
0030: 33 22 11 00 00 00 E2 02 EB 03 E9 F9 FF E2 02 EB  3"·°°°¤·¤·¤¤¤¤·¤
0040: 06 66 E9 F6 FF FF FF E2 02 EB 06 66 E9 F6 FF FF  ·f¤¤¤¤¤¤·¤·f¤¤¤¤
0050: FF E2 02 EB 05 EA 51 00 00 03 E2 02 EB 08 66 EA  ¤¤·¤·¤Q°°·¤·¤·f¤
0060: 5A 00 00 00 00 03 E2 02 EB 08 66 EA 66 00 00 00  Z°°°°·¤·¤·f¤f°°°
0070: 00 03 E2 02 EB 03 E9 79 FF E2 02 EB 03 E9 7A FF  °·¤·¤·¤y¤¤·¤·¤z¤
0080: E2 80 E2 81 E2 7E E2 7F E2 02 EB 03 E9 7B 00 E2  ¤¤¤¤¤~¤¤¤·¤·¤{°¤
0090: 02 EB 03 E9 7C 00 E2 2F E2 02 EB 03 E9 28 00 E2  ·¤·¤|°¤/¤·¤·¤(°¤
00A0: 02 EB 06 66 E9 1E 00 00 00 E2 02 EB 05 EA 00 00  ·¤·f¤·°°°¤·¤·¤°°
00B0: 0D 03 E2 02 EB 05 EA 00 00 0D 03 E2 02 EB 08 66  ··¤·¤·¤°°··¤·¤·f
00C0: EA 00 00 00 00 0D 03 90 90 90 90 90 90 90 90 90  ¤°°°°··¤¤¤¤¤¤¤¤¤
00D0: C3                                               ¤

▲Back to the top▲