-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstar.mac
35 lines (34 loc) · 1.04 KB
/
star.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This ;
; MACRO ;
; procedure print to screen in segm:offset stars ;
; (as screean-saver) [text_mode !!!] ;
; Befor using this procedure set text screen mode ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;; input:
; ah -> attribute of star-synbol [such as 07h - white on black]
; bx -> how long star lighting
; di -> plase of star [symbol offset]
; es -> segment of
;;;;; output : NONE
star MACRO
aca:
mov cx,0fffh
aba:
mov byte ptr es:[di+1],ah
mov byte ptr es:[di],'|'
mov byte ptr es:[di],'/'
;;mov byte ptr es:[di],'ö'
mov byte ptr es:[di],'-'
mov byte ptr es:[di],'|'
mov byte ptr es:[di],'-'
;;mov byte ptr es:[di],'ö'
mov byte ptr es:[di],'\'
mov byte ptr es:[di],'*'
;;mov byte ptr es:[di],''
mov byte ptr es:[di],''
mov byte ptr es:[di],' '
loop aba
dec bx
jnz aca
ENDM