Post

Star Pattern Code

My Star Pattern Project Code

Hello everyone, I’m Aristo from Ciputra Makassar University. In this side I will show you all about my star pattern program. This program will run with Assemly 8086 leaguange. The result of this program is a Star Pattern with right triangle shape. The program will use star simbol to make the shape. Next I will show all of you the rest of the coding that I made.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SET 0
star: DB 0x2A

start:
MOV AX, 0
MOV DS, AX
MOV SI, OFFSET star
MOV AH, 0x13
MOV BL, 6

_loop:
INC CX
INC CX
INT 0x10
MOV AL, byte DS[SI]
INC DI
INC DI
MOV byte DS[DI], AL
CMP CL, BL
JNE _loop
HLT
This post is licensed under CC BY 4.0 by the author.