Z80::Utils::SinCos
- integer sinus-cosinus table routines.¶ ↑
in Z80::Utils::SinCos::Macros
Structs¶ ↑
Example¶ ↑
require 'z80'
require 'z80/utils/sincos'
class Program
include Z80
SinCosTable = Utils::SinCos::SinCosTable
SinCos = Utils::SinCos::SinCos
macro_import Utils::SinCos
sincos addr 0xF000, SinCos
start exx
push hl
call make_sincos
pop hl
exx
ld a, 31
sincos_from_angle sincos, h, l
ld c, [hl]
inc l
ld b, [hl]
ret
make_sincos create_sincos_from_sintable sincos, sintable:sintable
sintable bytes neg_sintable256_pi_half_no_zero_lo
end