-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
473 additions
and
434 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
; 10 | ||
.MODEL SMALL | ||
.STACK 100H | ||
.DATA | ||
MSG1 DB "Enter first number: $" | ||
MSG2 DB "Enter second number: $" | ||
MSG3 DB "Enter third number: $" | ||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS,AX | ||
|
||
LEA DX,MSG1 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV BL,AL | ||
|
||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
LEA DX,MSG2 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV CL,AL | ||
|
||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
LEA DX,MSG3 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV BH,AL | ||
|
||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
CMP BL,CL | ||
JGE COND1 | ||
JMP COND2 | ||
COND1: | ||
CMP BL,BH | ||
JGE A | ||
JMP C | ||
COND2: | ||
CMP CL,BH | ||
JGE B | ||
JMP C | ||
A: | ||
MOV AH,2 | ||
MOV DL,BL | ||
INT 21H | ||
JMP EXIT | ||
B: | ||
MOV AH,2 | ||
MOV DL,CL | ||
INT 21H | ||
JMP EXIT | ||
C: | ||
MOV AH,2 | ||
MOV DL,BH | ||
INT 21H | ||
JMP EXIT | ||
EXIT: | ||
MOV AH,4CH | ||
INT 21H | ||
MAIN ENDP | ||
END MAIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
.MODEL SMALL | ||
.STACK 100H | ||
.DATA | ||
MSG1 DB "Name: Saiham Islam Abid$" | ||
MSG2 DB "Department: CSE$" | ||
MSG3 DB "Section: E$" | ||
MSG4 DB "Student ID: 2012020207$" | ||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS,AX | ||
|
||
LEA DX,MSG1 | ||
MOV AH,9 | ||
INT 21H | ||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
LEA DX,MSG2 | ||
MOV AH,9 | ||
INT 21H | ||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
LEA DX,MSG3 | ||
MOV AH,9 | ||
INT 21H | ||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
LEA DX,MSG4 | ||
MOV AH,9 | ||
INT 21H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
; 12 | ||
.MODEL SMALL | ||
.STACK 100H | ||
.CODE | ||
MAIN PROC | ||
MOV BL,30H | ||
LABEL: | ||
CMP BL,39H | ||
JG EXIT | ||
MOV AH,2 | ||
MOV DL,BL | ||
INT 21H | ||
INC BL | ||
JMP LABEL | ||
EXIT: | ||
MOV AH,4CH | ||
INT 21H | ||
MAIN ENDP | ||
END MAIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
2 | ||
.MODEL SMALL | ||
.STACK 100H | ||
.CODE | ||
MAIN PROC | ||
MOV AH,2 | ||
MOV DL,40H | ||
INT 21H | ||
MOV DL,2AH | ||
INT 21H | ||
MOV DL,25H | ||
INT 21H | ||
MOV DL,24H | ||
INT 21H | ||
MOV DL,23H | ||
INT 21H | ||
MOV DL,40H | ||
INT 21H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.MODEL SMALL | ||
.STACK 100H | ||
.DATA | ||
MSG1 DB "ENTER A NUMBER: $" | ||
MSG2 DB "ENTER ANOTHER NUMBER: $" | ||
MSG3 DB "SUM IS: $" | ||
|
||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS, AX | ||
|
||
LEA DX,MSG1 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV BL,AL | ||
|
||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
LEA DX,MSG2 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV CL,AL | ||
|
||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
LEA DX,MSG3 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
ADD BL,CL | ||
MOV AH,2 | ||
SUB BL,48 | ||
MOV DL,BL | ||
INT 21H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
.MODEL SMALL | ||
.STACK 100H | ||
|
||
.DATA | ||
MSG1 DB "ENTER A NUMBER: $" | ||
MSG2 DB "ENTER ANOTHER NUMBER: $" | ||
MSG3 DB "ANSWER: $" | ||
|
||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS, AX | ||
|
||
LEA DX,MSG1 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV BL,AL | ||
|
||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
LEA DX,MSG2 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV CL,AL | ||
|
||
SUB BL,CL | ||
ADD BL,30H | ||
|
||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
|
||
LEA DX,MSG3 | ||
MOV AH,9 | ||
INT 21H | ||
|
||
MOV AH,2 | ||
MOV DL,BL | ||
INT 21H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.MODEL SMALL | ||
.STACK 100H | ||
.DATA | ||
MSG1 DB "MICROPROCESSOR$" | ||
MSG2 DB "ASSEMBLY LANGUAGE$" | ||
MSG3 DB "COMPUTER INTERFACING SESSION$" | ||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS,AX | ||
|
||
LEA DX,MSG1 | ||
MOV AH,9 | ||
INT 21H | ||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
LEA DX,MSG2 | ||
MOV AH,9 | ||
INT 21H | ||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
LEA DX,MSG3 | ||
MOV AH,9 | ||
INT 21H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.MODEL SMALL | ||
.STACK 100H | ||
.DATA | ||
VAR1 DB 33H ; 33H=3 | ||
VAR2 DB ? | ||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS,AX | ||
|
||
MOV AH,1 | ||
INT 21H | ||
MOV VAR2,AL | ||
|
||
;NEWLINE | ||
MOV AH,2 | ||
MOV DL,0AH | ||
INT 21H | ||
MOV DL,0DH | ||
INT 21H | ||
MOV AH,2 | ||
MOV DL,VAR1 | ||
INT 21H | ||
MOV DL,VAR2 | ||
INT 21H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.MODEL SMALL | ||
.STACK 100H | ||
.DATA | ||
MSG DB "Enter a ALPHABET: $" | ||
VAR1 DB ? | ||
.CODE | ||
MAIN PROC | ||
MOV AX,@DATA | ||
MOV DS,AX | ||
MOV AH,9 | ||
LEA DX,MSG | ||
INT 21H | ||
MOV AH,1 | ||
INT 21H | ||
MOV VAR1,AL | ||
;CONVERT G -> 7 | ||
SUB VAR2,10H | ||
MOV AH,2 | ||
MOV DL,VAR1 | ||
INT 21H |
Oops, something went wrong.