| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# Test t3100: Machine instructions ADD ADDB ADDW ADDD ADDQ in 16bit mode

Tested procedures
  IigADD IigADDB IigADDW IigADDD IigADDQ

Source & expected listing t3100.htm.lst
  `| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=36,CPU=386 | |t3100 PROGRAM FORMAT=BIN,IMAGEBASE=0,LISTMAP=OFF,LISTGLOBALS=OFF |[Mode16] |[Mode16] SEGMENT WIDTH=16,PURPOSE=CODE |0000:0402 | ADD AL,2 |0002:80C002 | ADD AL,2,CODE=LONG |0005:050200 | ADD AX,2 |0008:83C002 | ADD AX,2,CODE=LONG |000B:6683C002 | ADD EAX,2 |000F:660502000000 | ADD EAX,2,CODE=SHORT |0015:80C102 | ADD CL,2 |0018:8006[A600]02 | ADD [MemByte],2 |001D:83C102 | ADD CX,2 |0020:81C10200 | ADD CX,2,IMM=WORD |0024:81C17EFF | ADD CX,-130 |0028:81C17FFF | ADD CX,-129 |002C:83C180 | ADD CX,-128 |002F:83C181 | ADD CX,-127 |0032:83C17E | ADD CX,+126 |0035:83C17F | ADD CX,+127 |0038:81C18000 | ADD CX,+128 |003C:81C18100 | ADD CX,+129 |0040:8306[A400]02 | ADD [MemWord],2 |0045:8106[A400]0200 | ADD [MemWord],2,IMM=WORD |004B:6683C102 | ADD ECX,2 |004F:6681C102000000 | ADD ECX,2,IMM=DWORD |0056:668306[A000]02 | ADD [MemDword],2 |005C:668106[A000]02000000 | ADD [MemDword],2,IMM=DWORD |0065:800502 | ADDB [DI],2 |0068:830502 | ADDW [DI],2 |006B:66830502 | ADDD [DI],2 |006F:00D1 | ADD CL,DL |0071:02CA | ADD CL,DL,CODE=LONG |0073:00F5 | ADD CH,DH |0075:02EE | ADD CH,DH,CODE=LONG |0077:01D1 | ADD CX,DX |0079:03CA | ADD CX,DX,CODE=LONG |007B:6601D1 | ADD ECX,EDX |007E:6603CA | ADD ECX,EDX,CODE=LONG |0081:020E[A600] | ADD CL,[MemByte] |0085:030E[A400] | ADD CX,[MemWord] |0089:66030E[A000] | ADD ECX,[MemDword] |008E:0016[A600] | ADD [MemByte],DL |0092:0116[A400] | ADD [MemWord],DX |0096:660116[A000] | ADD [MemDword],EDX |009B:9087C987D2 | ALIGN QWORD |00A0:00000000 |MemDword D D |00A4:0000 |MemWord D W |00A6:00 |MemByte D B | |ENDPROGRAM t3100`

Expected messages t3100.out
  `I0180 Assembling source file "t3100.htm". I0270 Assembling source "t3100". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t3100". "t3100.htm"{61} I0510 Assembling program pass 1. "t3100.htm"{61} I0510 Assembling program pass 2. "t3100.htm"{61} I0510 Assembling program pass 3. "t3100.htm"{61} I0530 Assembling program pass 4 - final. "t3100.htm"{61} I0660 16bit TINY BIN file "t3100.bin" created, size=167. "t3100.htm"{108} I0650 Program "t3100" assembled in 4 passes with errorlevel 0. "t3100.htm"{108} I0750 Source "t3100" (128 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t3100.htm.lst" created, size=2689. I0990 EuroAssembler terminated with errorlevel 0.`

▲Back to the top▲