CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 03:43:25 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=af2c63514e6a7ff059503b5e6e543ad4bc444a725e0b6e53f057a1cccf8d8cfca%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22OZq99eXG-NIx66tWqbzNIPQH-kkPyGD0%22%3B%7D; HttpOnly; Path=/
cf-ray: 98dbd5256cbec462-BLR
LAB 4 ( Write a program to PRINT 11*11 astaric and print 3letter in the middle) - Pastebin.com
SHARE
TWEET

LAB 4 ( Write a program to PRINT 11*11 astaric and print 3letter in the middle)
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Write a program to PRINT 11*11 astaric and print 3letter in the middle
- .MODEL SMALL ; IN THIS COURSE ALL MODEL ARE SMALL
- .STACK 100H ; WE ALWAYS USE STACK 100H
- .DATA ; DATA SEGMENT
- PROMPT DB "Enter three initials : $\" ; to print it we store in it a prompt variable
- ASTERISKS DB "***********",0DH,0AH,"$" ; to print 11*11 we store here 11 asterisks
- NEXT_LINE DB 0DH,0AH,"$" ; we took new line here
- .CODE
- MAIN PROC ; main code start here
- ;PROGRAMME SEGMENT PREFIX
- MOV AX,@DATA
- MOV DS,AX ; INITILATION OF DS
- LEA DX, PROMPT ; to print the prompt value we load the data
- MOV AH, 9 ; this instraction will print the loaded data
- INT 21H ; this is used to print the instruction
- MOV AH, 1 ; it is used to input a single chracter
- INT 21H ; computer will take a input here
- MOV BL, AL ; move the input value in BL, as we know generally when we input it will store it on AL
- INT 21H ; this will take another input
- MOV BH, AL ; we move the next input into BH
- INT 21H ; this will take the third input
- MOV CL, AL ; we move the third input into CL
- LEA DX, NEXT_LINE ; this instruction is used to take a new line.. as it contains new line
- MOV AH, 9 ; this function is to used the load value of new_line
- INT 21H ; computer give new line here
- ; we print asterisks from here as our input already taken
- LEA DX, ASTERISKS ; we load the asterisks variable here.. as it contains *
- MOV AH, 9 ; this instruction is to print the loaded value
- INT 21H ; computer will print 11* . because asterisks variable contains 11 *.. it will print 1 time
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- ; at the end of this instruction we got 5 * 11 asteriks. now we print 4 * and the three initials and the other 4 * .. and then 5line 5*11 asteriks
- MOV ASTERISKS+4, BL ; we print our first input value into 4th positon of asterisks
- MOV ASTERISKS+5, BH ; we print our second input value into 5th positon of asterisks
- MOV ASTERISKS+6, CL ; we print our third input value into 6th positon of asterisks
- INT 21H ; this will print three variable into the 4,5,6 th position...
- MOV ASTERISKS+4, "*" ; then we update 4th position into * to print the remain line in *
- MOV ASTERISKS+5, "*" ; then we update 5th position into * to print the remain line in *
- MOV ASTERISKS+6, "*" ; then we update 6th position into * to print the remain line in *
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- INT 21H ; it will print 1 time 1 * 11
- MOV AH,4CH ; TERMINATED THE CODE AND EXIT
- INT 21H
- MAIN ENDP
- END MAIN
Advertisement
Add Comment
Please, Sign In to add comment
-
đ¨ Free Crypto Method đ¨
JavaScript | 1 sec ago | 0.24 KB
-
âââExploit 500$ in 15 Minutesââ
Java | 5 sec ago | 0.15 KB
-
đ Instant BTC Profit Method â
Working Y
JavaScript | 7 sec ago | 0.25 KB
-
đĄ EASY MONEY GUIDE â
Working
JavaScript | 10 sec ago | 0.24 KB
-
âââInstant Profit Methodââ
Java | 12 sec ago | 0.15 KB
-
â
Make $2500 in 20 minutesâ 3
JavaScript | 16 sec ago | 0.25 KB
-
âââMAKE $500 IN 15 MINââ
Java | 16 sec ago | 0.15 KB
-
âââExploit 500$ in 15 Minutesââ
Java | 17 sec ago | 0.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand