Assembly instructions and the machine code of each conversion

October 13, 2010

Machine language to understand what we just focus on several concepts:

1. Machine-language instructions with opcode (OP) and the address code of two parts

|_____________ OP_______________ | __d__ | __w__ |

|_____________ OP_______________ | __s__ | __w__ | <- This format is used for immediate addressing mode

In most operating code, often used to indicate certain information in certain places:
Figure on the structure in the: w = 1 when word operation
w = 0 bytes to operate when

d values in the two-operand instruction to be effective
When d = 1 when and only for the purpose of a register operand
d = 0 from time to time and only one register for the source operands

s = 1 8-bit number immediately, but requires extended to 16 digits
s = 0 age when the operation instruction for byte / a 16-bit immediate

As the assembly instruction format of many, here I introduce some basic information, if necessary, the reader can download / access to 80×86 assembly provided OPCODES small station http://www.x86asm.com manual inspection.

2. Addressing modes of machine language, said:

| Mod | reg | r / m |
|_____|_____|_____|_____|_____|_____|_____|

reg said register means, the number does not include an immediate two-operand instructions circumstances, to require one operand in the register, the register specified by the reg field and with the opcode byte of the w phase composition determined register

mod field and r / m (register / memory) combined with field operations to determine the number of addressing another now that you download the 80×86 assembly small station (http://www.x86asm.com) OPCODES manual provided the it?
Download Well, please open the inside after decompression: opcodes.html file, and then inside the familiar form:

Now familiar with the simple:
______________________________________________________________________________
Table 1 rrr: W = 0: W = 1: reg32

000: AL: AX: EAX

001: CL: CX: ECX

010: DL: DX: EDX

011: BL: BX: EBX

100: AH: SP: ESP

101: CH: BP: EBP

110: DH: SI: ESI

111: BH: DI: EDI
______________________________________________________________________________
Table 2 rrr: Index Register
000: EAX

001: ECX

010: EDX

011: EBX

100: No Index

101: EBP

110: ESI

111: EDI
______________________________________________________________________________
Table 3 mmm: Function 11
w = 1
000: DS: [BX + SI]

001: DS: [BX + DI]

010: SS: [BP + SI]

011: SS: [BP + DI] BX

100: DS: [SI]

101: DS: [DI]

110: SS: [BP]

111: DS: [BX]
______________________________________________________________________________
Table 4
oo: Function

00: If mmm = 110, then a displacement follows the operation; otherwise, no displacement is used

01: An 8-bit signed displacement follows the opcode

10: A 16-bit signed displacement follows the opcode

11: mmm specifies a register, instead of an addressing mode
______________________________________________________________________________
The above table, you see see? Now I teach you how to use this form to the translation of machine code assembly instructions

3. Instruction format Introduction

8086 16-bit instruction format used:

________ _____________ ________ ________
| Opcode | + | mod-reg-r / m | + | displacement | + | immediate |
1 to 2 byte 0 byte 1 byte 0 to 2 0 to 2 bytes

OK! These are the basics, let's practice it:

—————————————
Question:

MOV AX, 1234H corresponding machine code is: B83412

MOV EBX, 0 corresponds to the machine code is: 66BB00000000

MOV CL, 55H corresponding machine code is: B155

MOV AX, BX corresponding machine code is: 8BC3

I ask, machine code data format? Like machine instruction + operand (high stored in the address high, low stored in the address low), but in front of MOV AX, how to become a B8, do not understand this, Please advise.

PS: The above title is a users question, now I come to practice again to you to see.
—————————————

Directive 1 -> MOV AX, 1234H corresponding machine code is: B83412

Solution: check -> This is the 8086 compilation of 16-bit assembly instruction format, and is the immediate addressing mode
Look-up table -> Open opcodes.html file, find the heading “Main Instructions”, click the “M” letter, then the corresponding view “MOV Reg, Imm” format “OpCode” item as: 1011wrrr
Then judge -> As the register is AX, the number now is 1234H, is clearly “on the word action”, so w = 1
In view of the article above “Table 1”, corresponding to a value of 000 found rrr
Combined Results -> w = 1
rrr = 000
1011wrrr = 1011 1000B -> B8H
According to “3. Instruction format profile” -> B8H + | immediate (low in the former high in the post) | = B83412H

PS: “+” sign is not a “plus”

Well, the first question has been completed solution, and machine code for the B83412H

—————————————

Instruction 4 -> MOV AX, BX corresponding machine code is: 8BC3

Solution: check -> This is the 8086 compilation of 16-bit assembly instruction format, and is a register addressing mode
Look-up table -> Open opcodes.html file, find the heading “Main Instructions”, click the “M

“Letter, then the corresponding view” MOV Reg, Reg “format” OpCode “item as: 1000101woorrrmmm
Then judge -> As the registers are AX, BX is obviously “on the word action”, so w = 1
In view of the article above, “Table 4”, corresponding to oo = 11 because it is found in register addressing mode
In view of the article above “Table 1”, corresponding to a value of 000 found rrr, because when the two operating

Incline is register, then the general purpose of the operands should prevail
In view of the article above “Table 3”, corresponding to a value of 011 found mmm, because when both operands are registers, then usually necessary to subject the source operand
Combined Results -> w = 1
oo = 11
rrr = 000
mmm = 011
1000101woorrrmmm = 1000 1011 1100 0011 B -> 8BC3H

Okay, second question has been completed solution, and machine code for the 8BC3H
—————————————

Oh, yes it is very simple bar, with 80X86 OPCODES query table everything is so simple, if you have any questions, we all come here to ask!

Remaining:

Directive 2 -> MOV EBX, 0 corresponds to the machine code is: 66BB00000000

Directive 3 -> MOV CL, 55H corresponding machine code is: B155

Everyone to practice your hand, pay attention to instruction two need to use 32-bit instruction format, please refer to 80×86 assembly language books related to the machine language part, should be explained.

Solution orders 2, please wait, or we look, the solution posted for your reference Oh!





????:



MOV to MPEG4



NEW Seasonal – Screen Savers



Soldiers from the regiment to the Founder President of Zhang Zhaodong



Audio And Multimedia Specialist



DivX To 3GP



AVI To MOV



1 million for the lessons do not come!



In October 2007 The Sixth New York International Outsourcing Exhibition



C # In The Transaction, Batch Submission, The Wording Of Rollback



Procurement into the decision-making problems faced in China



Full-width half-angle switching (five-stroke input)



CAD World, Shangri-La



ram to xvid download



Compare Games Sports



Bangalore, Dalian, China-style Heavy Road Test



Job: Get high-paying positions in SIX coup



Explosion DVD Cloner

May 19, 2010


Explosion DVD Clone is a most popular powerful dvd movie clone software. It produces perfect copies every time, and does it quickly and efficiently. Video quality of copied discs is perfect, since there’s no recompression or altering of the VOB files from the original disc. Explosion DVD Clone was designed to backup your precious DVD without any quality loss. backup you DVDs in 20 mins. Explosion DVD Clone comes complete with numerous customizable video/audio controls that can deliver the highest quality viewing and listening experience.

Explosion DVD Clone is Burn DVD Video Disc: you can duplicate the DVD or DVD disc which kept in DVD content folder to DVD disc,so that you can watch the DVD from a home DVD player. Duplicate DVD disc from a DVD disc directly, real 1:1 perfectly clone dvd. Copy DVD to the harddisk, so that you can edit or play the dvd from HDD, and burn it to the DVD disc later as a DVD video disc. Explosion DVD Clone offers feature-rich navigation controls, for a more interactive and tailored DVD experience. Explosion DVD Clone is guaranteed to deliver the highest quality and personalized DVD Copy experience possible on the PC today!



Recommand Link:



Bluesea DVD FLV to M4V



?????



freeware shareware downloads



Youtube Movie to M4V Utility



Bliss MP3 MP2 WMA to AC3 Burner



DRM Converter (itunesm4pconverter.com)



Youtube Video Save + Converter Mixer



Hope DivX MOV Converter



How-to DVD to Youtube



?????



WINFLV



?????



Professional M3U WAV to ID3 Creator



Alcsoft Zune Movie/Video Converter



Open PDA Converter



How-to PDA Converter

May 12, 2010


How-to PDA Converter converts AVI, DivX/Xvid, WMV, MPEG videos to PDA WMV or MP4 video format in one simple click. It is a powerful PDA MPEG4 video converter/PDA burner with fast working speed in burning movie to PDA and downloading movie to PDA. Now you can get this PDA MPEG4 video converter at a very competitive price! Its key features include: The software features superb video audio quality and fast conversion speed. And it is very easy to use.

How-to PDA Video Converter is a best video and movie converter to PDA! This product offers convert movie to Sony PDA, Easy Convert AVI, MPEG, WMV, MOV, MP4, RM, RMVB, DivX, ASF, VOB, 3GP and etc. How-to PDA Converter helps you watch your music videos and movies on your PDA.



Recommand Link:



SuperBurner DVD Editor



X-Cloner MPEG to MP4



Merry CD-R Sound ID3 to APE Editing



Open MPEG Converter



Youtube to VOB Mixer



Lohan AVI Converter



??????



Youtube Movie to Palm OS Value



DVD to Apple TV Converter for Mac



Largest freeware site



Explosion DVD to Apple TV



????



Happiness DVD TO Xbox



?????



Professional SWF Flash Converter

May 10, 2010

Professional SWF Flash Converter is easy converts your Flash swf files to compliant Avi, Mpeg, VCD, SVCD or DVD structures (VOB and IFO).It converts your batch files into a compliant DVD Video set of files and burns it on a DVD blank media DVD+-R(W). The aspect ratio can be automatically selected or forced to a specific format. The program works for NTSC and PAL video format and create automatically chapters. Multiple audio tracks are supported. and burn them to a DVD-R, DVD+R, DVD+RW, and DVD-RW, so that you can play your Flash swf on DVD player.It is a Powerful and versatile DVD creator. The user-firenldy and easy-to-use interface lets you set begin-time/end-time for each Flash swf and batch convert. Very quick in conversion speed and no quality is lost! Cool SWF Flash Converter Mixer Convert Macromedia Flash SWF to MPEG AVI video file. SWF to Video Converter is a powerful utility that supports to convert Macromedia Flash SWF files to MPEG AVI or VCD SVCD DVD compatible MPEG files including movie clips, action scripts and audio in the Flash movies. Also join many SWF files in one large AVI or VCD SVCD DVD compatible MPEG file. Allow the human interaction on Flash content during conversion, no skip frames and support 32bits RGBA alpha channel video that can be directed imported by video authoring tool for composition. Main features: batch conversion for SWFs to MPEG AVI VCD SVCD DVDs, batch Join for SWFs to MPEG AVI VCD SVCD DVDs, join many SWF files in one large video file, extract MP3/WAV sound.



Recommand Link:



Happiness CD-R AAC AC3 To RA Ripper



LasVegas Flash Converter



Agile PSP DVD Video Kit



How-to DVD to Xbox



Xilisoft Windows Mobile Ringtone Maker



Silver DVD CREATOR



software for converting mkv to sony nwz-e436f



Youtube FLV to PS2 Gold



Professional M3U WAV to ID3 Creator



BlueBird iPod TO PC Transfer



Christmas-Idea Divx RMVB Encode

May 9, 2010


Christmas-Idea Divx RMVB Encode is the best RealMedia converter software. easy convert Real Media files(.rm, .rmvb) to AVI, MPEG-1, MPEG-2, VCD, SVCD, DVD files. convert RM/RMVB to AVI DIVX XVID MPEG VCD SVCD DVD and burn to DVD/CD. You can change the codec/system type to PAL or NTSC, and adjust the video size of the output files . It supports to convert almost all video, such as: RM to AVI, RM to DIVX XVID, RM to MPEG-1, RM to MPEG-2, RM to WMV, RM to VCD, RM to DVD, RM to PSP Video, iPod Video, Zune Video, iPhone Video…

Support convert AVI, Divx, ASF, WMV, WMA, MPEG, MOV, QT, RM, RMVB, file to MPEG with all encode format such as VCD PAL/NTSC, SVCD PAL/NTSC, DVD PAL/NTSC, MPEG-1 standard, MPEG-2 standard etc. Support convert AVI, Divx, ASF, WMV, WMA, MPEG, MOV, QT, RM, RMVB, file to AVI with all encode format such as DIVX, XVID, Mircosoft MPEG-4 etc.



Recommand Link:



Youtube FLV To ASX Online



AudioEdit Deluxe



MidToMid



Youtube FLV To PSP Plus



Happiness DVD Flash Maker



CDA M3U Gold



converting dv-avi to mp4 video



Vacations MPEG to AVI

April 11, 2010


Vacations MPEG to AVI is a powerful video conversion program and easy-to-use MPEG to DVD iPod Zune iPhone Converter, easy convert MPEG to MPG, AVI, WMV, MP4, 3GP, MOV, RM, VCD, DVD, SVCD formats. also can support batch video files conversion of different video formats such as DVD AVI MPEG ASF MOV SWF at the same time. Besides, it also can support to burn VCD SVCD DVD. And best of all, it has a powerful video decompress/compress engine that convert whole MPEG movie to DVD in 30 minutes! Except for converting AVI to iPod Video and converting Video to iPod,it also supports converting among MPG, WMV, MP4, 3GP, MOV, RM, PSP Video, iPod Video, Zune Video, iPhone Video!



Recommand Link:



avi dvd conversion to google VIDEO



Christmas-Idea DVD Flash MOV to Youtube

March 31, 2010

Christmas-Idea DVD Flash MOV to Youtube is a All-in-One powerful tool. Convert all popular video and audio formats to Youtube video, swf or flv to video, such as avi, mpeg, 3gp, mp4, mov, it offers the solutions to problems that many other flash to video converting tools cannot solve, such as video and audio asynchronization, loss of frames, audio distortion, the process of alpha channel, and the process of both internal and external Flash video(flv). With the leading audio and video codec, Christmas-Idea DVD Flash MOV to Youtube lets you easily and fully enjoy the original effects of your Flash files on your PC, iPod, PSP, Zune, iPhone, DVD players and Youtube Video, Google video, Myspace Video. In conclusion, with easy-to-use interface, fast converting speed, powerful functions.



Recommand Link:



Mjpeg to avi conversion software



WorldCup Xbox Converter

December 22, 2009

WorldCup Xbox Converter is a professional video converter to convert almost all popular video/movie formats to Xbox MP4 format. The output Xbox MP4 video files can be played on your Apple Xbox. All popular video/movie formats are supported, including AVI, MPEG/MPG/DAT, WMV, ASF, MP4, M4V, 3GP, 3G2, H264, MPEG4, AVC, MOV, QT, DivX, XviD, VOB, FLV, etc. The amazing output quality with super fast conversion speed is brough you by the built-in power MPEG4 encoder. All the output Xbox MP4 videos fit your Apple Xbox.



Recommand Link:



Flash files to WAV conversion



Cucusoft iPod Movie/Video Converter Pro

December 18, 2009

Cucusoft iPod Video Converter/Movie Converter Pro is the easiest-to-use video converter software for Apple iPod Movie and iPod Video. It can convert almost all video format, e.g. DivX, XviD, MOV, MPEG, VOB, DVD, WMV, AVI to iPod Movie / iPod Video format. It is also a powerful iPod movie/video converter with fast conversion speed. And the output iPos movie/video supports iPod screen, you can enjoy your favorite movie on your iPod as a MPEG-4 Player. Now you can get this iPod video converter at a very competitive price!




Recommand Link:



Easy Matroska files to 3GP audio



LasVegas FLV Converter

December 11, 2009


LasVegas FLV Converter is a All-in-One powerful tool. Convert all popular video and audio formats to Youtube video, swf or flv to video, such as avi, mpeg, 3gp, mp4, mov, it offers the solutions to problems that many other flash to video converting tools cannot solve, such as video and audio asynchronization, loss of frames, audio distortion, the process of alpha channel, and the process of both internal and external Flash video(flv). With the leading audio and video codec, LasVegas FLV Converter lets you easily and fully enjoy the original effects of your Flash files on your PC, iPod, PSP, Zune, iPhone, DVD players and Youtube Video, Google video, Myspace Video. In conclusion, with easy-to-use interface, fast converting speed, powerful functions.