Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1114161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:58:01+00:00 2026-05-17T02:58:01+00:00

MOV DL,AL MOV DL = B2 But what is the hex byte value for

  • 0
MOV DL,AL

“MOV DL” = B2

But what is the hex byte value for AL? Where are these listed?

I just realized it must be another opcode! Can anyone point me in the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:58:02+00:00Added an answer on May 17, 2026 at 2:58 am

    From the Intel Architecture Software Developer’s Manual, Volume 2: Instruction Set Reference Manual, Table 3-1. Register Encodings Associated with the +rb, +rw, and +rd Nomenclature, page 3-3:

    AL = 0 AX = 0 EAX = 0
    CL = 1 CX = 1 ECX = 1
    DL = 2 DX = 2 EDX = 2
    BL = 3 BX = 3 EBX = 3
    AH = 4 SP = 4 ESP = 4
    CH = 5 BP = 5 EBP = 5
    DH = 6 SI = 6 ESI = 6
    BH = 7 DI = 7 EDI = 7
    

    To answer your question (“aha great. I’m having a hard time finding the a list of instructions to move registers into registers. Can you shed any light?”):

    First here are some fish: (for 8-bit regs)

    8a c0        mov     al, al
    8a c1        mov     al, cl
    8a c2        mov     al, dl
    8a c3        mov     al, bl
    8a c8        mov     cl, al
    8a c9        mov     cl, cl
    8a ca        mov     cl, dl
    8a cb        mov     cl, bl
    8a d0        mov     dl, al
    8a d1        mov     dl, cl
    8a d2        mov     dl, dl
    8a d3        mov     dl, bl
    8a d8        mov     bl, al
    8a d9        mov     bl, cl
    8a da        mov     bl, dl
    8a db        mov     bl, bl
    

    And here’s how to get started fishing:

    In the intel instruction set manual, look up the MOV instruction, in page 3-402. You will find a table listing various flavors of the MOV instruction, starting with:

    88 /r MOV r/m8,r8 Move r8 to r/m8
    89 /r MOV r/m16,r16 Move r16 to r/m16
    89 /r MOV r/m32,r32 Move r32 to r/m32
    8A /r MOV r8,r/m8 Move r/m8 to r8
    8B /r MOV r16,r/m16 Move r/m16 to r16
    8B /r MOV r32,r/m32 Move r/m32 to r32
    

    Note how our fish above use the 8A opcode. As you may guess, r8 is an 8-bit register, and r/m8 can be either an 8-bit register or a byte from memory. Also note how different MOV opcodes are available for 16- and 32-bit registers and values (r16, r32). Pages 3-2 to 3-5 explain the various types of arguments you can specify on a MOV instruction.

    But, you may say, this doesn’t tell you enough about how to construct the following bytes in the instruction. For that, look at section 2.1 – General Instruction Format, starting at page 2-1. x86 instructions may be composed of up to 6 byte sequences: prefixes, opcode, ModR/M, SIB, displacement and immediate values. Our register move instructions are simple, and include only an opcode (8A) and a ModR/M byte.

    The breakdown of the ModR/M byte is documented in section 2.4, and in all-encompassing tables in pages 2-5 to 2-6. The you will find that the ModR/M byte can encode both the source and destination register. For example, to move from AL to DL you will use the D0 ModR/M value, giving the 8A D0 instruction.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

MOV is probably the first instruction everyone learns while learning ASM. Just now I
I would like to know what the difference between these instructions is: MOV AX,
I'm uploading mov files selected with the uiimagepickercontroller to my amazon s3 bucket but
I've read about the code to make the computer beep but I can't get
The movie plays just fine but there is a quick black flash right before
Im trying to record video using AVFoundation I can save images but not video.
hi Friends I am using AVPlayer but in it I want to play .mov
I have a register ecx with value 0x01ABCDEF (hex value) I want to acces
I tried this code (using interruptions), but it is for DOS: mov eax, 42
Which one is better/faster/preferred 1: mov eax, 5 push eax mov eax, [someAddress] push

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.