Skip to navigation

Elite on the BBC Micro

Version analysis of antilog

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: antilog Type: Variable Category: Maths (Arithmetic) Summary: Binary antilogarithm table
At byte n, the table contains: 2^((n / 2 + 128) / 16) / 256 which equals: 2^(n / 32 + 8) / 256
.antilog FOR I%, 0, 255 B% = INT(2^((I% / 2 + 128) / 16) + 0.5) DIV 256 IF B% = 256 EQUB B%+1 ELSE EQUB B% ENDIF NEXT
RSS Feed