Skip to content

Commit 0d04a8e

Browse files
committed
Wait for synchro
1 parent 3395d88 commit 0d04a8e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

addtris.asm

+6-1
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,16 @@ go1:
165165
mov al,[cur_ch]
166166
call print_char_at
167167
168-
;play_sound
168+
;should play note?
169169
mov ax,[timer_d]
170170
cmp ax,wait_tck
171171
jne wwait
172172
173+
;wait for synchronization
174+
mov ax,1 ;wait 1 tick
175+
call wait_tcks
176+
177+
;play_note
173178
mov bx,note_C ;set note
174179
call set_note
175180
mov di,1 ;length of sound in ticks

0 commit comments

Comments
 (0)