Skip to navigation


Maths (Arithmetic): antilog

[NES version, Bank 7]

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

At byte n, the table contains: 2^((n / 2 + 128) / 16) / 256 which equals: 2^(n / 32 + 8) / 256
.antilog FOR I%, 0, 255 EQUB HI(INT(2^((I% / 2 + 128) / 16) + 0.5)) NEXT