actually fix duration code
This commit is contained in:
parent
1d00d5f393
commit
6ae0f09ceb
1 changed files with 3 additions and 2 deletions
|
@ -167,7 +167,8 @@ beep:
|
|||
;; see #NOTE_LOOP
|
||||
;; the duration counter gets decremented BEFORE
|
||||
;; it gets compared to zero
|
||||
sub al, 'b' ; normalise (a=1, b=2, c=...)
|
||||
;; ('a' is 0x61)
|
||||
sub al, 0x60 ; normalise (a=1, b=2, c=...)
|
||||
|
||||
;; interrupt 0x16, ah=0 returns the read scancode in ah
|
||||
;; so ah must be reset
|
||||
|
@ -214,7 +215,7 @@ beep:
|
|||
|
||||
;; #NOTE_LOOP
|
||||
;; the duration gets decremented before being checked
|
||||
;; hence why it was normalised to 'b' and not 'a'
|
||||
;; hence why it was normalised to '`' and not 'a'
|
||||
dec ax ; decrement duration counter
|
||||
jne .pause1 ; keep doing that until it is 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue