Skip to navigation

Elite on the BBC Micro and NES

Maths (Arithmetic): alogh

[BBC Master version]

Name: alogh [Show more] Type: Variable Category: Maths (Arithmetic) Summary: Binary antilogarithm table
Context: See this variable in context in the source code Variations: See code variations for this variable in the different versions References: This variable is used as follows: * DVID4 uses alogh * FMLTU uses alogh * LL28 uses alogh * LOIN (Part 2 of 7) uses alogh * LOIN (Part 5 of 7) uses alogh

At byte n, the table contains: 2^((n / 2 + 128) / 16) / 256 which equals: 2^(n / 32 + 8) / 256
.alogh FOR I%, 0, 255 EQUB INT(2^((I% / 2 + 128) / 16) + 0.5) DIV 256 NEXT SKIP 576 \ These bytes appear to be unused