From 0d04a8ecf82b685b9906ef809f8a0daf7bc7bccd Mon Sep 17 00:00:00 2001 From: Jaroslav Beran Date: Sun, 4 Feb 2018 15:18:05 +0100 Subject: [PATCH] Wait for synchro --- addtris.asm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/addtris.asm b/addtris.asm index 33164fd..871380b 100644 --- a/addtris.asm +++ b/addtris.asm @@ -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