SlideShare a Scribd company logo
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 ?
CHARACTER 0
ATTRIBUTE 0
CHARACTER 1
ATTRIBUTE 1
CHARACTER 2
ATTRIBUTE2
VRAM
B800:0000
B800:0001
B800:0002
B800:0003
B800:0004
B800:0005
 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.
 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.
 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
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.
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.
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.
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.
 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
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
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
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
;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
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) .
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
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.
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.
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.
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.
Home works summary.pptx

More Related Content

Similar to Home works summary.pptx

16-bit microprocessors
16-bit microprocessors16-bit microprocessors
16-bit microprocessors
Zahra Sadeghi
 
Keyboard interrupt
Keyboard interruptKeyboard interrupt
Keyboard interruptTech_MX
 
Taller Ensambladores
Taller EnsambladoresTaller Ensambladores
Taller Ensambladores
Christian Morales
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Bilal Amjad
 
Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)
ilias ahmed
 
Assembly language solution
Assembly language  solutionAssembly language  solution
Assembly language solution
Ahsan Riaz
 
Assembly language (coal)
Assembly language (coal)Assembly language (coal)
Assembly language (coal)
Hareem Aslam
 
Assembly Language Compiler Implementation
Assembly Language Compiler ImplementationAssembly Language Compiler Implementation
Assembly Language Compiler Implementation
RAVI TEJA KOMMA
 
8086 arch instns
8086 arch instns8086 arch instns
8086 arch instnsRam Babu
 
Arithmetic instrctions
Arithmetic instrctionsArithmetic instrctions
Arithmetic instrctions
HarshitParkar6677
 
15CS44 MP &MC Module 3
15CS44 MP &MC Module 315CS44 MP &MC Module 3
15CS44 MP &MC Module 3
RLJIT
 
8086 labmanual
8086 labmanual8086 labmanual
8086 labmanual
Murali Krishna
 
15CSL48 MP&MC manual
15CSL48 MP&MC manual15CSL48 MP&MC manual
15CSL48 MP&MC manual
RLJIT
 
Microprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannualMicroprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannual
yeshwant gadave
 
int 21 h for screen display
int 21 h for screen displayint 21 h for screen display
int 21 h for screen display
Anju Kanjirathingal
 
1344 Alp Of 8086
1344 Alp Of 80861344 Alp Of 8086
1344 Alp Of 8086
techbed
 

Similar to Home works summary.pptx (20)

Exp 03
Exp 03Exp 03
Exp 03
 
Mpmc lab
Mpmc labMpmc lab
Mpmc lab
 
16-bit microprocessors
16-bit microprocessors16-bit microprocessors
16-bit microprocessors
 
Keyboard interrupt
Keyboard interruptKeyboard interrupt
Keyboard interrupt
 
Taller Ensambladores
Taller EnsambladoresTaller Ensambladores
Taller Ensambladores
 
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
Assembly Language Programming By Ytha Yu, Charles Marut Chap 4 (Introduction ...
 
Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)Assembly lab up to 6 up (1)
Assembly lab up to 6 up (1)
 
Assembly language solution
Assembly language  solutionAssembly language  solution
Assembly language solution
 
Assembly language (coal)
Assembly language (coal)Assembly language (coal)
Assembly language (coal)
 
Assembly Language Compiler Implementation
Assembly Language Compiler ImplementationAssembly Language Compiler Implementation
Assembly Language Compiler Implementation
 
8086 arch instns
8086 arch instns8086 arch instns
8086 arch instns
 
Arithmetic instrctions
Arithmetic instrctionsArithmetic instrctions
Arithmetic instrctions
 
15CS44 MP &MC Module 3
15CS44 MP &MC Module 315CS44 MP &MC Module 3
15CS44 MP &MC Module 3
 
8086 microprocessor lab manual
8086 microprocessor lab manual8086 microprocessor lab manual
8086 microprocessor lab manual
 
8086 labmanual
8086 labmanual8086 labmanual
8086 labmanual
 
15CSL48 MP&MC manual
15CSL48 MP&MC manual15CSL48 MP&MC manual
15CSL48 MP&MC manual
 
Microprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannualMicroprocessor 8086-lab-mannual
Microprocessor 8086-lab-mannual
 
int 21 h for screen display
int 21 h for screen displayint 21 h for screen display
int 21 h for screen display
 
Chap 01[1]
Chap 01[1]Chap 01[1]
Chap 01[1]
 
1344 Alp Of 8086
1344 Alp Of 80861344 Alp Of 8086
1344 Alp Of 8086
 

More from HebaEng

MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdfMATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
HebaEng
 
Estimate the value of the following limits.pptx
Estimate the value of the following limits.pptxEstimate the value of the following limits.pptx
Estimate the value of the following limits.pptx
HebaEng
 
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdflecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
HebaEng
 
LECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptxLECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptx
HebaEng
 
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdflect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
HebaEng
 
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdflect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
HebaEng
 
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptxsensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
HebaEng
 
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdfHomework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
HebaEng
 
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging huggPIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
HebaEng
 
lecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).pptlecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).ppt
HebaEng
 
math6.pdf
math6.pdfmath6.pdf
math6.pdf
HebaEng
 
math1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdfmath1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdf
HebaEng
 
digital10.pdf
digital10.pdfdigital10.pdf
digital10.pdf
HebaEng
 
PIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdfPIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdf
HebaEng
 
Instruction 3.pptx
Instruction 3.pptxInstruction 3.pptx
Instruction 3.pptx
HebaEng
 
IO and MAX 2.pptx
IO and MAX 2.pptxIO and MAX 2.pptx
IO and MAX 2.pptx
HebaEng
 
BUS DRIVER.pptx
BUS DRIVER.pptxBUS DRIVER.pptx
BUS DRIVER.pptx
HebaEng
 
VRAM & DEBUG.pptx
VRAM & DEBUG.pptxVRAM & DEBUG.pptx
VRAM & DEBUG.pptx
HebaEng
 
Instruction 4.pptx
Instruction 4.pptxInstruction 4.pptx
Instruction 4.pptx
HebaEng
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
HebaEng
 

More from HebaEng (20)

MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdfMATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
MATHLECT1LECTUREFFFFFFFFFFFFFFFFFFHJ.pdf
 
Estimate the value of the following limits.pptx
Estimate the value of the following limits.pptxEstimate the value of the following limits.pptx
Estimate the value of the following limits.pptx
 
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdflecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
lecrfigfdtj x6 I f I ncccfyuggggrst3.pdf
 
LECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptxLECtttttttttttttttttttttttttttttt2 M.pptx
LECtttttttttttttttttttttttttttttt2 M.pptx
 
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdflect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
lect4ggghjjjg t I c jifr7hvftu b gvvbb.pdf
 
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdflect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
lect5.gggghhhhhhhhhhhhyyhhhygfe6 in b cfpdf
 
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptxsensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
sensorshhhhhhhhhhhhhhhhhhhhhhhhhhhhhh.pptx
 
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdfHomework lehhhhghjjjjhgd thvfgycture 1.pdf
Homework lehhhhghjjjjhgd thvfgycture 1.pdf
 
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging huggPIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
PIC1jjkkkkkkkjhgfvjitr c its GJ tagging hugg
 
lecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).pptlecture1ddddgggggggggggghhhhhhh (11).ppt
lecture1ddddgggggggggggghhhhhhh (11).ppt
 
math6.pdf
math6.pdfmath6.pdf
math6.pdf
 
math1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdfmath1مرحلة اولى -compressed.pdf
math1مرحلة اولى -compressed.pdf
 
digital10.pdf
digital10.pdfdigital10.pdf
digital10.pdf
 
PIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdfPIC Serial Communication_P2 (2).pdf
PIC Serial Communication_P2 (2).pdf
 
Instruction 3.pptx
Instruction 3.pptxInstruction 3.pptx
Instruction 3.pptx
 
IO and MAX 2.pptx
IO and MAX 2.pptxIO and MAX 2.pptx
IO and MAX 2.pptx
 
BUS DRIVER.pptx
BUS DRIVER.pptxBUS DRIVER.pptx
BUS DRIVER.pptx
 
VRAM & DEBUG.pptx
VRAM & DEBUG.pptxVRAM & DEBUG.pptx
VRAM & DEBUG.pptx
 
Instruction 4.pptx
Instruction 4.pptxInstruction 4.pptx
Instruction 4.pptx
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 

Recently uploaded

Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
7sd8fier
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
smpc3nvg
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
SudhanshuMandlik
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
taqyed
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
h7j5io0
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
ameli25062005
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
garcese
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
ResDraft
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
PlanitIsrael
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
National-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxNational-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptx
AlecAnidul
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
madhavlakhanpal29
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 

Recently uploaded (20)

Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
一比一原版(MMU毕业证书)曼彻斯特城市大学毕业证成绩单如何办理
 
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
一比一原版(Bristol毕业证书)布里斯托大学毕业证成绩单如何办理
 
CA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdfCA OFFICE office office office _VIEWS.pdf
CA OFFICE office office office _VIEWS.pdf
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理一比一原版(毕业证)长崎大学毕业证成绩单如何办理
一比一原版(毕业证)长崎大学毕业证成绩单如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
一比一原版(BU毕业证书)伯恩茅斯大学毕业证成绩单如何办理
 
Research 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdfResearch 20 slides Amelia gavryliuks.pdf
Research 20 slides Amelia gavryliuks.pdf
 
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
Portfolio.pdf
Portfolio.pdfPortfolio.pdf
Portfolio.pdf
 
Expert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting ServicesExpert Accessory Dwelling Unit (ADU) Drafting Services
Expert Accessory Dwelling Unit (ADU) Drafting Services
 
Top Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdfTop Israeli Products and Brands - Plan it israel.pdf
Top Israeli Products and Brands - Plan it israel.pdf
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
National-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptxNational-Learning-Camp 2024 deped....pptx
National-Learning-Camp 2024 deped....pptx
 
Common Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid themCommon Designing Mistakes and How to avoid them
Common Designing Mistakes and How to avoid them
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 

Home works summary.pptx

  • 1.
  • 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.