So I've been going through the "learn asm in 28 days" and stopped for a while, but I'm back on it, and I just don't understand this part about LUT. Im trying to find the sine of 30, please tell me what's wrong:
Code:
All it says is "66." I don't know how to make it display decimal/fractions, but there's probably something else wrong.
Code:
LD A, 30
LD H, 0
LD L, A
LD DE, sine_table
ADD HL, DE
LD A, (HL)
LD H, 0
LD L, A
b_call(_DispHL)
RET
All it says is "66." I don't know how to make it display decimal/fractions, but there's probably something else wrong.