Lab 05 - Assembly Language for x86 Processors by KIP R. IRVINE \

  Рет қаралды 405

Abdul Qadeer Bilal (AQ)

Abdul Qadeer Bilal (AQ)

Күн бұрын

Topics: Direct Offset Operands and Arrays + Status Flags.
.
.
Material Link: www.dropbox.co...
.
Sample Code:
;-- Direct Offset Operands
;-- Status Flags
.386
.model flat, stdcall
.stack 4096
include Irvine32.inc
;-- Data segment to make variables
.data
myarray BYTE 10h, 12h, 13h, 15h
WordArray WORD 1000h, 1800h, 1125h, 2565h
msg1 BYTE "Before Swaping",0
DoubleArray DWORD 12345678h, 87654321h
;-- code segment starts here
.code
main proc
mov eax, DoubleArray
;mov ebx , DoubleArray+4
XCHG eax,DoubleArray+4
XCHG eax, DoubleArray
mov ecx, DoubleArray
mov edx, DoubleArray+4
Call DumpRegs
COMMENT !
mov edx, offset msg1
call writestring
mov eax,0
mov ebx,0
mov ecx,0
mov edx,0
mov ax, WordArray+2
mov bx, WordArray+4
mov WordArray+2,bx
mov WordArray+4, ax
mov cx, WordArray+2
mov dx, WordArray+4
call dumpregs
!
COMMENT !
;mov ebx, 0
;mov bl, myarray ;10h
;add bl, myarray+1 ; 10+12h
;call dumpregs
mov ah,myarray+3 ; 15h
mov al, myarray+2 ; 13h
mov bh, myarray+1 ; 12h
mov bl, myarray+0 ; 10h
mov myarray, ah
mov myarray+1 , al
mov myarray+2, bh
mov myarray+3 , bl
mov eax, 0
mov ebx, 0
mov ecx, 0
mov edx, 0
mov al,myarray
mov bl,myarray+1
mov cl,myarray+2
mov dl, myarray+3
call dumpregs
!
invoke ExitProcess,0
main endp
end main

Пікірлер
Lab 03, 04 -  Assembly Language  for x86 Processors by KIP R. IRVINE
18:12
Abdul Qadeer Bilal (AQ)
Рет қаралды 332
Lab 06 - Assembly Language for x86 Processors by KIP R. IRVINE
30:53
Abdul Qadeer Bilal (AQ)
Рет қаралды 369
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
you will never ask about pointers again after watching this video
8:03
How do Graphics Cards Work?  Exploring GPU Architecture
28:30
Branch Education
Рет қаралды 3 МЛН
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,4 МЛН
Lab 07,08 - Assembly Language for x86 Processors by KIP R. IRVINE
23:35
Abdul Qadeer Bilal (AQ)
Рет қаралды 314
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,7 МЛН
How I'd learn ML in 2025 (if I could start over)
16:24
Boris Meinardus
Рет қаралды 147 М.
Lab 10 - Assembly Language for x86 Processors by KIP R. IRVINE
34:51
Abdul Qadeer Bilal (AQ)
Рет қаралды 321
Предел развития НЕЙРОСЕТЕЙ
18:53
Onigiri
Рет қаралды 239 М.
But what is a neural network? | Deep learning chapter 1
18:40
3Blue1Brown
Рет қаралды 18 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН