Programming/Assembly: Difference between revisions

From Dev Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" style="text-align: center;" |- ! colspan="8" | Register ! colspan="8" | Stack Pointer ! colspan="8" | Stack Base Pointer ! colspan="8" | Accumulator ! col...")
 
(Create register table)
Line 10: Line 10:
! colspan="8" | Source
! colspan="8" | Source
! colspan="8" | Destination
! colspan="8" | Destination
!
|-
|-
! colspan="8" | 64 Bit
! colspan="8" | 64 Bit
Line 22: Line 21:
| colspan="8" | RDI
| colspan="8" | RDI
|-
|-
! colspan="8"| 32 Bit
! colspan="8" | 32 Bit
| colspan="4" |  
| colspan="4" |
| colspan="4" | ESP
| colspan="4" | ESP
|  
| colspan="4" |
|  
| colspan="4" | EBP
|  
| colspan="4" |
| colspan="4" | EAX
| colspan="4" |
| colspan="4" | EBX
| colspan="4" |
| colspan="4" | ECX
| colspan="4" |
| colspan="4" | EDX
| colspan="4" |
| colspan="4" | ESI
| colspan="4" |
| colspan="4" | EDI
|-
|-
! colspan="8" | 16 Bit
! colspan="8" | 16 Bit
| colspan="6" |  
| colspan="6" |
| colspan="2" | SP
| colspan="2" | SP
|  
| colspan="6" |
|  
| colspan="2" | BP
|-  
| colspan="6" |
| colspan="2" | AX
| colspan="6" |
| colspan="2" | BX
| colspan="6" |
| colspan="2" | CX
| colspan="6" |
| colspan="2" | DX
| colspan="6" |
| colspan="2" | SI
| colspan="6" |
| colspan="2" | DI
|-
! colspan="8" | 8 Bit
! colspan="8" | 8 Bit
| colspan="7" |  
| colspan="7" |
| colspan="1" | SPL
| colspan="1" | SPL
|  
| colspan="7" |
|  
| colspan="1" | BPL
|  
| colspan="6" |
|}
| colspan="1" | AH
 
| colspan="1" | AL
{| class="wikitable"
| colspan="6" |
|-
| colspan="1" | BH
! 64 Bit
| colspan="1" | BL
! 32 Bit
| colspan="6" |
! 16 Bit
| colspan="1" | CH
! 8 Bit
| colspan="1" | CL
|-
| colspan="6" |
| rax
| colspan="1" | DH
| eax
| colspan="1" | DL
| ax
| colspan="7" |
| al
| colspan="1" | SIL
|-
| colspan="7" |  
| rbx
| colspan="1" | DIL
| ebx
|-  
| bx
! colspan="8" |
| bl
| colspan="1" |
|-
| colspan="1" |
| rcx
| colspan="1" |
| ecx
| colspan="1" |
| cx
| colspan="1" |
| cl
| colspan="1" |
|-
| colspan="1" |
| rdx
| colspan="1" |
| edx
| colspan="1" |
| dx
| colspan="1" |
| dl
| colspan="1" |
|-
| colspan="1" |
| rsi
| colspan="1" |
| esi
| colspan="1" |
| si
| colspan="1" |
| sil
| colspan="1" |
|-
| colspan="1" |
| rdi
| colspan="1" |
| edi
| colspan="1" |
| di
| colspan="1" |
| dil
| colspan="1" |
|-
| colspan="1" |
| rsp
| colspan="1" |
| esp
| colspan="1" |
| sp
| colspan="1" |
| spl
| colspan="1" |
|-
| colspan="1" |
| rbp
| colspan="1" |
| ebp
| colspan="1" |
| bp
| colspan="1" |
| bpl
| colspan="1" |
|-
| colspan="1" |
| r8
| colspan="1" |
| r8d
| colspan="1" |
|  
| colspan="1" |
|  
| colspan="1" |
|-
| colspan="1" |
| r9
| colspan="1" |
| r9d
| colspan="1" |
|  
| colspan="1" |
|  
| colspan="1" |
|-
| colspan="1" |
| r10
| colspan="1" |
| r10d
| colspan="1" |
|  
| colspan="1" |
|  
| colspan="1" |
|-
| colspan="1" |
| r11
| colspan="1" |
| r11d
| colspan="1" |
|  
| colspan="1" |
|  
| colspan="1" |
|-
| colspan="1" |
| r12
| colspan="1" |
| r12d
| colspan="1" |
|  
| colspan="1" |
|  
| colspan="1" |
|-
| colspan="1" |
| r13
| colspan="1" |
| r13d
| colspan="1" |
|  
| colspan="1" |
|  
| colspan="1" |
|-
| colspan="1" |
| r14
| colspan="1" |
| r14d
| colspan="1" |
|  
|  
|-
| r15
| r15d
|  
|  
|-
| r16
| r16d
|  
|  
|-
|-
|}
|}

Revision as of 03:55, 3 February 2020

Register Stack Pointer Stack Base Pointer Accumulator Base Counter Data Source Destination
64 Bit RSP RBP RAX RBX RCX RDX RSI RDI
32 Bit ESP EBP EAX EBX ECX EDX ESI EDI
16 Bit SP BP AX BX CX DX SI DI
8 Bit SPL BPL AH AL BH BL CH CL DH DL SIL DIL