Permalink
Browse files

Assembly Courses code during my graduation

Assembly Courses code during my graduation
  • Loading branch information...
zakilive committed Feb 12, 2015
1 parent 9f68ca2 commit 93fb3448e6e0c746c2aa092e48d1e45de174d6a2
Showing with 1,333 additions and 0 deletions.
  1. BIN Lab Report/lab report assembly.pdf
  2. BIN Lab Report/lab report.docx
  3. +46 −0 Microprocessor Lab After Mid/06.12.14 6.5.txt
  4. +81 −0 Microprocessor Lab After Mid/22.11.14 at lab 1st code.txt
  5. +122 −0 Microprocessor Lab After Mid/22.11.14 at lab 2nd code.txt
  6. +24 −0 Microprocessor Lab After Mid/6.12.14 6.6.txt
  7. +24 −0 Microprocessor Lab After Mid/6.12.14 6.7.txt
  8. +35 −0 Microprocessor Lab After Mid/6.12.14 6.8.txt
  9. +49 −0 Microprocessor Lab After Mid/Homework -- Syed Ahmed Zaki(131-15-2169)/11.asm
  10. +101 −0 Microprocessor Lab After Mid/Homework -- Syed Ahmed Zaki(131-15-2169)/12.asm
  11. +122 −0 Microprocessor Lab After Mid/Homework -- Syed Ahmed Zaki(131-15-2169)/HELLO.asm
  12. +98 −0 Microprocessor Lab After Mid/Homework -- Syed Ahmed Zaki(131-15-2169)/lab exam.asm
  13. +33 −0 Microprocessor Lab After Mid/lab 06.12.14 6.2.txt
  14. +34 −0 Microprocessor Lab After Mid/lab 29.11 1.txt
  15. +34 −0 Microprocessor Lab After Mid/lab 29.11 2.txt
  16. +32 −0 Microprocessor Lab After Mid/lab 6.12.14 6.3.txt
  17. +93 −0 Microprocessor Lab After Mid/lab exam.txt
  18. +43 −0 Microprocessor Lab Before Mid/LABCODE18.10.14.txt
  19. +53 −0 Microprocessor Lab Before Mid/lower to upper.txt
  20. +26 −0 Microprocessor Lab Before Mid/string display.txt
  21. +55 −0 Microprocessor Lab Before Mid/upper to lower.txt
  22. +19 −0 Theory Assignment/1.asm
  23. +87 −0 Theory Assignment/2.asm
  24. +85 −0 Theory Assignment/2.txt
  25. +37 −0 Theory Assignment/3.asm
  26. BIN Theory Assignment/Assignment by Syed Ahmed Zaki(131-15-2169).docx
  27. BIN Theory Assignment/assembly.docx
View
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,46 @@
.MODEL SMALL
.STACK 100H
.CODE
MAIN PROC
MOV AH,1
INT 21H
MOV BL,AL
MOV AH,2
MOV DL,0DH
INT 21H
MOV DL,0AH
INT 21H
CMP BL,'1'
JE ODD
CMP BL,'3'
JE ODD
CMP BL,'2'
JE EVEN
CMP BL,'4'
JE EVEN
JMP EXIT
ODD:
MOV AH,2
MOV DL,'O'
INT 21H
JMP EXIT
EVEN:
MOV AH,2
MOV DL,'E'
INT 21H
EXIT:
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
@@ -0,0 +1,81 @@
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.MODEL SMALL
.STACK 100H
.DATA
m1 db "Enter three initial : $"
.code
main proc
mov ax,@data
mov ds,ax
mov ah,9
lea dx,m1
int 21h
mov ah,1
int 21h
mov bl,al
mov ah,1
int 21h
mov cl,al
mov ah,1
int 21h
mov bh,al
mov ah,2
mov dl,0Dh
int 21h
mov dl,0ah
int 21h
mov ah,2
mov dl,bl
int 21h
mov ah,2
mov dl,0DH
int 21h
mov dl,0ah
int 21h
mov ah,2
mov dl,cl
int 21h
mov ah,2
mov dl,0DH
int 21h
mov dl,0ah
int 21h
mov ah,2
mov dl,bh
int 21h
main endp
ret
@@ -0,0 +1,122 @@
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.MODEL SMALL
.STACK 100H
.DATA
m1 db "Enter a hex digit:$"
m2 db "In decimal it is:$"
.CODE
main proc
mov ax,@data
mov ds,ax
mov ah,9
lea dx,m1
int 21h
mov ah,1
int 21h
mov bl,al
sub bl,11h
mov ah,2
mov dl,0dh
int 21h
mov dl,0ah
int 21h
mov ah,9
lea dx,m2
int 21h
mov ah,2
mov dl,31h
int 21h
mov ah,2
mov dl,bl
int 21h
mov ah,4ch
int 21h
main endp
end main
ret
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.MODEL SMALL
.STACK 100H
.DATA
m1 db "Enter a hex digit:$"
m2 db "In decimal it is:$"
.CODE
main proc
mov ax,@data
mov ds,ax
mov ah,9
lea dx,m1
int 21h
mov ah,1
int 21h
mov bl,al
sub bl,11h
mov ah,2
mov dl,0dh
int 21h
mov dl,0ah
int 21h
mov ah,9
lea dx,m2
int 21h
mov ah,2
mov dl,31h
int 21h
mov ah,2
mov dl,bl
int 21h
mov ah,4ch
int 21h
main endp
end main
ret
@@ -0,0 +1,24 @@
.model small
.stack 100h
.code
main proc
mov ah,1
int 21h
cmp al,'A'
jnge end_if:
cmp al,'Z'
jnle end_if
mov dl,al
mov ah,2
int 21h
end_if:
mov ah,4ch
int 21h
main endp
end main
@@ -0,0 +1,24 @@
.model small
.stack 100h
.code
main proc
mov ah,1
int 21h
cmp al,'Y'
jne end_if:
cmp al,'y'
jne end_if
mov dl,al
mov ah,2
int 21h
end_if:
mov ah,4ch
int 21h
main endp
end main
@@ -0,0 +1,35 @@
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.model small
.stack 100h
.code
main proc
mov ah,2
mov cx,80
mov ah,2
mov dl,'*'
top:
int 21h
loop top
mov ah,4ch
int 21h
main endp
end main
ret
@@ -0,0 +1,49 @@
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
org 100h
.model small
.stack 100h
.data
asterisks db "**********",0dh,0ah,"$"
.code
main proc
;initialization of data segment
mov ax,@data
mov ds,ax
;load the asterisks
mov ah,9
lea dx,asterisks
;display of 10x10 solid box of asterisks
int 21h
int 21h
int 21h
int 21h
int 21h
int 21h
int 21h
int 21h
int 21h
int 21h
main endp
end main
ret
Oops, something went wrong.

0 comments on commit 93fb344

Please sign in to comment.