EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t3011: 16bit addressing mode


Description
Memory address in the form [BaseR16+IndexR16+Disp] is tested for all combinations of
BaseR16 BX, BP,
IndexR16 SI,DI,
Disp disp8, disp16.
Tested procedures
IiModRM  
Source & expected listing t3011.htm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=28, CPU=086 | |t3011: PROGRAM FORMAT=BIN, WIDTH=16, LISTMAP=OFF, LISTGLOBALS=OFF, IMAGEBASE=0 |[BIN] |[BIN] SEGMENT PURPOSE=CODE |0000:03060000 |ADD AX,[0] |0004:03061100 |ADD AX,[0x11] |0008:03064444 |ADD AX,[0x4444] |000C:0304 |ADD AX,[SI] |000E:0304 |ADD AX,[SI+0] |0010:034411 |ADD AX,[SI+0x11] |0013:03844444 |ADD AX,[SI+0x4444] |0017:0305 |ADD AX,[DI] |0019:0305 |ADD AX,[DI+0] |001B:034511 |ADD AX,[DI+0x11] |001E:03854444 |ADD AX,[DI+0x4444] |0022:0307 |ADD AX,[BX] |0024:0307 |ADD AX,[BX+0] |0026:034711 |ADD AX,[BX+0x11] |0029:03874444 |ADD AX,[BX+0x4444] |002D:0300 |ADD AX,[BX+SI] |002F:0300 |ADD AX,[BX+SI+0] |0031:034011 |ADD AX,[BX+SI+0x11] |0034:03804444 |ADD AX,[BX+SI+0x4444] |0038:0301 |ADD AX,[BX+DI] |003A:0301 |ADD AX,[BX+DI+0] |003C:034111 |ADD AX,[BX+DI+0x11] |003F:03814444 |ADD AX,[BX+DI+0x4444] |0043:034600 |ADD AX,[BP] |0046:034600 |ADD AX,[BP+0] |0049:034611 |ADD AX,[BP+0x11] |004C:03864444 |ADD AX,[BP+0x4444] |0050:0302 |ADD AX,[BP+SI] |0052:0302 |ADD AX,[BP+SI+0] |0054:034211 |ADD AX,[BP+SI+0x11] |0057:03824444 |ADD AX,[BP+SI+0x4444] |005B:0303 |ADD AX,[BP+DI] |005D:0303 |ADD AX,[BP+DI+0] |005F:034311 |ADD AX,[BP+DI+0x11] |0062:03834444 |ADD AX,[BP+DI+0x4444] | |ENDPROGRAM t3011:
Expected messages t3011.out
I0180 Assembling source file "t3011.htm". I0270 Assembling source "t3011". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t3011". "t3011.htm"{56} I0510 Assembling program pass 1. "t3011.htm"{56} I0530 Assembling program pass 2 - final. "t3011.htm"{56} I0660 16bit TINY BIN file "t3011.bin" created, size=102. "t3011.htm"{93} I0650 Program "t3011" assembled in 2 passes with errorlevel 0. "t3011.htm"{93} I0750 Source "t3011" (122 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t3011.htm.lst" created, size=1896. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t3011. bin
0000: 03 06 00 00 03 06 11 00 03 06 44 44 03 04 03 04  ··°°···°··DD····
0010: 03 44 11 03 84 44 44 03 05 03 05 03 45 11 03 85  ·D··¤DD·····E··¤
0020: 44 44 03 07 03 07 03 47 11 03 87 44 44 03 00 03  DD·····G··¤DD·°·
0030: 00 03 40 11 03 80 44 44 03 01 03 01 03 41 11 03  °·@··¤DD·····A··
0040: 81 44 44 03 46 00 03 46 00 03 46 11 03 86 44 44  ¤DD·F°·F°·F··¤DD
0050: 03 02 03 02 03 42 11 03 82 44 44 03 03 03 03 03  ·····B··¤DD·····
0060: 43 11 03 83 44 44                                C··¤DD

▲Back to the top▲