Skip to navigation


Maths (Arithmetic): antilogODD

[6502 Second Processor version, I/O processor]

Name: antilogODD [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: * LOIN (Part 2 of 7) uses antilogODD * LOIN (Part 5 of 7) uses antilogODD

At byte n, the table contains: 2^((n / 2 + 128.25) / 16) / 256 which equals: 2^(n / 32 + 8.015625) / 256 = 2^(n / 32 + 8) * 2^(.015625) / 256 = (2^(n / 32 + 8) + 1) / 256
.antilogODD FOR I%, 0, 255 EQUB INT(2^((I% / 2 + 128.25) / 16) + 0.5) DIV 256 NEXT