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

  Рет қаралды 148

Abdul Qadeer Bilal (AQ)

Abdul Qadeer Bilal (AQ)

Күн бұрын

Topics: Multiplication and Division in Assembly Language.
.
.
Material Link: www.dropbox.co...
.
Sample Code:
TITLE
; Name:
; Date:
; ID:
; Description:
INCLUDE Irvine32.inc
INCLUDELIB Irvine32.lib
; these two lines are only necessary if you're not using Visual Studio
INCLUDELIB kernel32.lib
INCLUDELIB user32.lib
.data
var1 SDWord 25
var2 SDWord -16
Var3 SDWord 11
var4 SDWord ?
.code
main PROC
mov eax, var2
neg eax
CDQ
IDIV var3
mov ebx, edx ;saved remainder
mov eax, -5
imul var1 ; iska answer EDX:EAX main para hai
;Check for division by zero
cmp ebx, 0
je Done ; Avoid division by zero
IDIV ebx
mov var4, eax
Done:
exit
main ENDP
END main

Пікірлер
Lab 11 - Assembly Language for x86 Processors by KIP R. IRVINE
22:37
Abdul Qadeer Bilal (AQ)
Рет қаралды 206
Final Lab - Assembly Language for x86 Processors by KIP R. IRVINE
52:15
Abdul Qadeer Bilal (AQ)
Рет қаралды 197
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
Lab 10 - Assembly Language for x86 Processors by KIP R. IRVINE
34:51
Abdul Qadeer Bilal (AQ)
Рет қаралды 293
Vector Custom Creation
52:48
RAVI-INFOTECH
Рет қаралды 282
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 992 М.
Linux for Data Engineers | البطريق العضاض يعظ
11:24:48
بالعربي Big Data
Рет қаралды 102 М.