Skip to content

Commit

Permalink
Wait for synchro
Browse files Browse the repository at this point in the history
  • Loading branch information
berk76 committed Feb 4, 2018
1 parent 3395d88 commit 0d04a8e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addtris.asm
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,16 @@ go1:
mov al,[cur_ch]
call print_char_at
;play_sound
;should play note?
mov ax,[timer_d]
cmp ax,wait_tck
jne wwait
;wait for synchronization
mov ax,1 ;wait 1 tick
call wait_tcks
;play_note
mov bx,note_C ;set note
call set_note
mov di,1 ;length of sound in ticks
Expand Down

0 comments on commit 0d04a8e

Please sign in to comment.