This document contains several assembly language programming questions and examples. Some questions ask to write programs that perform operations like copying data, searching memory, or manipulating values in registers and memory. Examples are provided that show code to calculate 2^5, divide a number by 16, and scroll the text display upward by moving each text line up one row.
chapter 7 Logic, shift and rotate instructionswarda aziz
this is a solution to exercise of chapter 7 from Assembly language programming and organization of the IBM PC.
If you find any mistakes in my solution , please discuss with me. as i am also a human and can do mistakes.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
Introduction to ibm pc assembly languagewarda aziz
The Solution manual of COAL
Chapter NO 4. exercise
if anyone has Questions Regarding this exercise.
contact me on my given Email-ID.
i will guide you. Thank you!
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
chapter 7 Logic, shift and rotate instructionswarda aziz
this is a solution to exercise of chapter 7 from Assembly language programming and organization of the IBM PC.
If you find any mistakes in my solution , please discuss with me. as i am also a human and can do mistakes.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
Introduction to ibm pc assembly languagewarda aziz
The Solution manual of COAL
Chapter NO 4. exercise
if anyone has Questions Regarding this exercise.
contact me on my given Email-ID.
i will guide you. Thank you!
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
Assembly Language Programming and Organization of the IBM PC
By Yu and Marut
Solution Manual
( Ch.1 to ch.10 )
Written by :
Eng. Amer Mohammed Al-khsabah
For Online Tutorial :
http://sh.st/QaM4Z
Implementation of a windows console application built using C language. The main aim of this presentation is to explain how to implement an assembly language compiler which parses and executes the given assembly code.It includes the explanation of implementing Intermediate Language, Symbol table, Block Table etc.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
Assembly Language Programming and Organization of the IBM PC
By Yu and Marut
Solution Manual
( Ch.1 to ch.10 )
Written by :
Eng. Amer Mohammed Al-khsabah
For Online Tutorial :
http://sh.st/QaM4Z
Implementation of a windows console application built using C language. The main aim of this presentation is to explain how to implement an assembly language compiler which parses and executes the given assembly code.It includes the explanation of implementing Intermediate Language, Symbol table, Block Table etc.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
Sensors by computer applications gghhhhhhhhhhhhhhhhhhhhhhffffffffffffffffffffffffffffgffggttttsvbkihhhggttfffffffffffffffffggggttggggyyyyy h ilc you k fd7ihft I yft8iggd e u hbvd67ufr6uufffhjoytrdfhiigfffghj I cc c for judging Jukka c ffffg b gffryhhu.
Nn h Todd I k he kidd cnn I kgf um b dc m l1234567889pp2356789p002224564221356788
Transforming Brand Perception and Boosting Profitabilityaaryangarg12
In today's digital era, the dynamics of brand perception, consumer behavior, and profitability have been profoundly reshaped by the synergy of branding, social media, and website design. This research paper investigates the transformative power of these elements in influencing how individuals perceive brands and products and how this transformation can be harnessed to drive sales and profitability for businesses.
Through an exploration of brand psychology and consumer behavior, this study sheds light on the intricate ways in which effective branding strategies, strategic social media engagement, and user-centric website design contribute to altering consumers' perceptions. We delve into the principles that underlie successful brand transformations, examining how visual identity, messaging, and storytelling can captivate and resonate with target audiences.
Methodologically, this research employs a comprehensive approach, combining qualitative and quantitative analyses. Real-world case studies illustrate the impact of branding, social media campaigns, and website redesigns on consumer perception, sales figures, and profitability. We assess the various metrics, including brand awareness, customer engagement, conversion rates, and revenue growth, to measure the effectiveness of these strategies.
The results underscore the pivotal role of cohesive branding, social media influence, and website usability in shaping positive brand perceptions, influencing consumer decisions, and ultimately bolstering sales and profitability. This paper provides actionable insights and strategic recommendations for businesses seeking to leverage branding, social media, and website design as potent tools to enhance their market position and financial success.
Book Formatting: Quality Control Checks for DesignersConfidence Ago
This presentation was made to help designers who work in publishing houses or format books for printing ensure quality.
Quality control is vital to every industry. This is why every department in a company need create a method they use in ensuring quality. This, perhaps, will not only improve the quality of products and bring errors to the barest minimum, but take it to a near perfect finish.
It is beyond a moot point that a good book will somewhat be judged by its cover, but the content of the book remains king. No matter how beautiful the cover, if the quality of writing or presentation is off, that will be a reason for readers not to come back to the book or recommend it.
So, this presentation points designers to some important things that may be missed by an editor that they could eventually discover and call the attention of the editor.
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Mansi Shah
This study examines cattle rearing in urban and rural settings, focusing on milk production and consumption. By exploring a case in Ahmedabad, it highlights the challenges and processes in dairy farming across different environments, emphasising the need for sustainable practices and the essential role of milk in daily consumption.
Expert Accessory Dwelling Unit (ADU) Drafting ServicesResDraft
Whether you’re looking to create a guest house, a rental unit, or a private retreat, our experienced team will design a space that complements your existing home and maximizes your investment. We provide personalized, comprehensive expert accessory dwelling unit (ADU)drafting solutions tailored to your needs, ensuring a seamless process from concept to completion.
You could be a professional graphic designer and still make mistakes. There is always the possibility of human error. On the other hand if you’re not a designer, the chances of making some common graphic design mistakes are even higher. Because you don’t know what you don’t know. That’s where this blog comes in. To make your job easier and help you create better designs, we have put together a list of common graphic design mistakes that you need to avoid.
2. IN OUT
D Q
C
CLK GATE
D Q
C
D Q
C
D Q
C
IN1 OUT1
D Q
C
CLK1 GATE1
D Q
C
D Q
C
D Q
C
How to transfer data from IN to OUT
then from OUT to OUT1 ?
3. CHARACTER 0
ATTRIBUTE 0
CHARACTER 1
ATTRIBUTE 1
CHARACTER 2
ATTRIBUTE2
VRAM
B800:0000
B800:0001
B800:0002
B800:0003
B800:0004
B800:0005
4. Write A program to Locate (Find the EA of)
the character ‘A’ in 1KB of Memory- Block
Starting at Address B800:0000 & Save it in DX.
Write another program to Locate (Find the EA of)
the Word ‘AbcD’ in 1KB of Memory- Block
Starting at Address DS:0100 & Save it in DX.
Write Another Program To Display A Character On
Each Line Of The Screen The 1st At The 1st
Column, The Second At The Second Column And
So On. Each Character Should Have Different
Attribute.
5. Write A program to display the contents of 1KB of
Memory Starting at Address ES:BX on PC-
screen.
Write another program to convert each lower-case
letter into an upper-case letter in the extra
segment using XLAT.
Write Another Program To cipher the message
stored at DS:DI (ended with $) and send it
character by character to the port 378h.
6. Find The Contents Of AL at Each Step of the Following:
MOV AL,55h
AND AL,1Fh
OR AL,C0h
XOR AL,0Fh
NOT AL
Describe the Function of the Following Sequence of
Instructions:
MOV AL, hex-digits
MOV BL,AL
MOV CL,4
ROR AL,CL
AND AL,0Fh
AND BL,0Fh
OR AL,BL
7. What are the results produced in the destination operands
by executing instructions (a) through (g) if the contents of
memory & registers prior to operation are as follows:
AX=5555h BX=0010h CX=0010h DX=AAAAh SI=0100h
DI=0200 DS:100h=0Fh DS:101h=F0h DS:110h=00h
DS:111h=FFh DS:200h=30h DS:201h=00h
DS:210h=AAh DS:211h=AAh DS:220h=55h
DS:221h=55h DS:300h=AAh DS:301h=55h
a) AND BYTE PTR [0300h],0Fh
b) AND DX,[SI]
c) OR [BX+DI],AX
d) OR BYTE PTR [BX][DI]+10h,0F0h
e) XOR AX,[SI+BX]
f) NOT BYTE PTR [0300h]
g) NOT WORD PTR [BX+DI]
Also specify addressing modes for each instruction and carry
flag.
8. What are the results produced in the destination operands
by executing instructions (a) through (f) if the contents of
memory & registers prior to operation are as follows:
AX=0000h BX=0010h CX=0105h DX=1111h SI=0100h
DI=0200h
DS:100h=0Fh DS:200h=22h DS:201h=44h CF=0
DS:210h=55h DS:211h=AAh DS:220h=AAh
DS:221h=55h DS:400h=AAh DS:401h=55h
a) ShL DX,CL
b) ShL BYTE PTR [0400h],CL
c) ShR BYTE PTR[DI],1
d) ShR BYTE PTR [DI+BX],CL
e) SAR WORD PTR [BX+DI],1
f) SAR WORD PTR [BX][DI]+10h,CL
Also specify addressing modes for each instruction and carry flag.
9. What are the results produced in the destination operands
by executing instructions (a) through (f) if the contents of
memory & registers prior to operation are as follows:
AX=0000h BX=0010h CX=0105h DX=1111h SI=0100h
DI=0200h
DS:100h=0Fh DS:200h=22h DS:201h=44h CF=1
DS:210h=55h DS:211h=AAh DS:220h=AAh
DS:221h=55h DS:400h=AAh DS:401h=55h
a) ROL DX,CL
b) RCL BYTE PTR [0400h],CL
c) ROR BYTE PTR [DI],1
d) ROR BYTE PTR [DI+BX],CL
e) RCR WORD PTR [BX+DI],1
f) RCR WORD PTR [BX][DI]+10h,CL
Also specify addressing modes for each instruction and carry
flag.
10. Draw The Hardware Block Diagram That represents
The Instruction SAR AL,1 With Timing Diagram.
Draw The Hardware Block Diagram That Represents
The Instruction SCR BH,1 WithTiming Diagram.
Write A Program To Calculate 2^5 And Store The
Result In BL.
Write A Program To Divide The Number Stored
In CX By 16 And Store TheResult In DX.
11. Write A Program To Calculate 2^5 And Store The
Result In BL.
MOV BL,1
MOV CL,5
SHL BL,CL ;BL= 20h =32d
Write A Program To Divide The Number Stored
In CX By 16 And Store TheResult In DX.
MOV CX,80h
MOV DX,CX ;DX= 80h =128d
MOV CL,4
SHR DX,CL ;DX= 8h =8d
12. D Q
D Q
D Q
D Q
D Q
CLK GATE
D Q
D Q
D Q
LSB
MSB
D Q
CY
Draw The Hardware
Block Diagram That
Represents The
Instruction SAR AL,1
With Timing Diagram.
AL
13.
14. D Q
D Q
D Q
D Q
D Q
CLK GATE
D Q
D Q
D Q
LSB
MSB
D Q
CY
Draw The Hardware
Block Diagram That
Represents The
Instruction SCR BH,1
With Timing Diagram.
BH
15.
16. code segment
assume cs:code
start: mov ax,code
mov ds,ax
mov ax,0b800h
mov ds,ax ;ds=VRAM Starting address
mov bx,0 ;bx used for column increment
mov di,0 ;di used for line increment
mov [bx],al ;character ASCII
mov [bx+1],al ;character attribute
nxt: inc al ;new character & attribute
inc bx
inc bx ;point to next line
add di,0a0h ;point to next column
mov [bx][di],al ;new character ASCII
mov [bx+di+1],al ;new character attribute
cmp bx,54h ;?= last line
jnz nxt ;if it is not continue
hlt
code ends
end start
17. ;This program is used to scroll up the display one line
code segment
assume cs:code
start: mov ax,code
mov ds,ax
mov ax,0b800h
mov ds,ax ;ds=VRAM Starting address
mov di,0 ;di is the pointer to upper line
mov si,0a0h ;si is the pointer to lower line
mov ah,43d ;ah: line counter
nxt: mov bx,0 ;bx used for byte pointer within line
mov cx,0a0h ;cx: byte counter per line
cont: mov al,[si+bx]
mov [di+bx],al ;move one byte one line up
inc bx
loop cont ;move next byte
add di,0a0h ;move one byte one line up
add si,0a0h ;point to next source line
dec ah ;is it the last line?
jnz nxt ;if it is not continue
hlt
code ends
end start
18. 1. Write a program to compare the unsigned number in AL
with numbers stored in 1KB of the memory started at
unsnin and store the numbers equal to AL at equal, above
at above and below at below.
2. Write a program to compare the signed number in AL with
numbers stored in 1KB of the memory started at sind and
store the numbers equal to AL at equals, above at abovs
and below at belows.
3. Write a program to classify the signed numbers stored in
4KB of the memory started at degree to positive numbers
and negative numbers and arrange them so as the positive
be one by one starting at the first memory location
(degree) .
19. MOV AX, code
MOV DS,AX
MOV ES,AX
MOV DI,OFFSET dest
LEA SI,srs
MOV CX,ssize
CLD
REP
MOVSB
HLT
Dest db 1000 dup (?)
SrS db 1000 dup (?)
Ssize dw 50
MOV AX, code
MOV DS,AX
MOV AX,EXTRA
MOV ES,AX
LEA DI,ES:[dest]
MOV SI,OFFSET DS:[srs]
MOV CX,DS:[ssize]
CLD
REP
MOVSW
HLT
Srs db 1000 dup (?)
Ssize dw 50
EXTRA SEGMENT
Dest db 1000 dup (?)
EXTRA ENDS
20. 1. Write a program to find number of bytes prior to the byte
equals to the contents of AL in 2KB of the memory started
at string1 and store that number in result.
2. Write a program that accomplishes:
for i=0 to 100
if XX(i) = YY(i) then
MC=MC+1
else
UM=UM+1
next i
3. Write a program to clear DOS screen
4. Write a program to divide the screen to 4 equal size zones
each zone have different color and rotate these colors
clockwise between sectors.
21. 5. Write a program to store the current screen then retrieve
it.
6. Write a program to copy the 5kB data file named test1 to
the file named test2 (both of them are stored in the same
segment).
7. Write a program to search a 3kB of memory for the word
‘MICROPROCESSOR’ and store no. of iteration in itr-no.
8. Write a program to scroll the screen 7 lines upward then
retrieve them line by line downward.
22. 1) Write a program to implement the following continuously:
A. Input from keyboard & display the ASCII code of the
pressed key on line No. 20 of the DOS screen in binary
form bit by bit, also display CF to the left followed by two
null characters.
B. If left-arrow key is pressed then SHL the displayed pattern
& if right-arrow then SHR the pattern.
C. ROR with upper-arrow, ROL with lower-arrow.
D. AND with the number entered after (*) key.
E. OR with number entered after (+) key.
F. Use Enter to terminate.
23. 2. Write an assembly program to invert the attribute of the character
that matches the one entered from keyboard for the whole 80
lines of DOS screen.
3. Write an assembly program that performs:
A. Addition of two numbers if (+) is entered between them from
keyboard and display number1 + number2 = the result on line
10 of the DOS screen.
B. Subtraction of two numbers if (-) is entered between them from
keyboard and display number1 - number2 = the result on line 15
of the DOS screen.
C. Multiplication of two numbers if (*) is entered between them from
keyboard and display number1 * number2 = the result on line 13
of the DOS screen.
D. division of two numbers if (/) is entered between them from
keyboard and display number1 / number2 = the result on line 16
and the remainder on line 17 on the same column of the result on
DOS screen.