Skip to navigation

Aviator on the BBC Micro

Maths: highNibble

Name: highNibble [Show more] Type: Variable Category: Maths Summary: Lookup table for the high nibble of a value Deep dive: Times tables and nibble arithmetic
Context: See this variable in context in the source code References: This variable is used as follows: * DivideScaled calls highNibble * Multiply8x8 calls highNibble

In the table below, highNibble,X contains the high nibble of X: X AND %11110000
.highNibble FOR I%, 0, 255 EQUB I% AND %11110000 NEXT