Commit ac7a080d authored by Robert Sprowson's avatar Robert Sprowson Committed by ROOL

Table entry rounding correction

Should add half the denominator, not twice. Resulted in table entries being approx 2us high.
parent 3b69f552
......@@ -54,7 +54,7 @@ AudioRateCount SETA 0
MACRO
AudioRate $frequency
DCD $frequency * 1024
DCB (1000000 + ($frequency:SHL:1))/$frequency
DCB (1000000 + ($frequency:SHR:1))/$frequency
DCB 0, 0, 0 ; Pad to 8
ASSERT AudioRateTableSize = 8
AudioRateCount SETA AudioRateCount + 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment