Skip to navigation

Aviator on the BBC Micro

Maths: lowNibble

Name: lowNibble [Show more] Type: Variable Category: Maths Summary: Lookup table for the low 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 uses lowNibble * Multiply4x16 uses lowNibble * Multiply8x8 uses lowNibble

In the table below, lowNibble,X contains the low nibble of X: X AND %00001111
.lowNibble FOR I%, 0, 255 EQUB I% AND %00001111 NEXT