Skip to navigation

Aviator on the BBC Micro

Maths: divisionLo

Name: divisionLo [Show more] Type: Variable Category: Maths Summary: Division lookup table
Context: See this variable in context in the source code References: This variable is used as follows: * ProjectPoint (Part 2 of 3) calls divisionLo * ScaleUp calls divisionLo

Bits 0 to 2 of divisionLo,X contain int(log2(X)) i.e. if divisionLo,X = n, then X fits into n + 1 binary digits Bits 3 to 7 contain the low byte of the division lookup, with bits 0 to 2 zeroed, and the high byte coming from divisionHi.
.divisionLo EQUB %00000000 \ Index 0 = 00000 ( 0) and 000 (0) EQUB %00000000 \ Index 1 = 00000 ( 0) and 000 (0) EQUB %00000001 \ Index 2 = 00000 ( 0) and 001 (1) EQUB %00001001 \ Index 3 = 00001 ( 1) and 001 (1) EQUB %00010010 \ Index 4 = 00010 ( 2) and 010 (2) EQUB %00011010 \ Index 5 = 00011 ( 3) and 010 (2) EQUB %00100010 \ Index 6 = 00100 ( 4) and 010 (2) EQUB %00110010 \ Index 7 = 00110 ( 6) and 010 (2) EQUB %01000011 \ Index 8 = 01000 ( 8) and 011 (3) EQUB %01010011 \ Index 9 = 01010 (10) and 011 (3) EQUB %01100011 \ Index 10 = 01100 (12) and 011 (3) EQUB %01111011 \ Index 11 = 01111 (15) and 011 (3) EQUB %10001011 \ Index 12 = 10001 (17) and 011 (3) EQUB %10100011 \ Index 13 = 10100 (20) and 011 (3) EQUB %10111011 \ Index 14 = 10111 (23) and 011 (3) EQUB %11011011 \ Index 15 = 11011 (27) and 011 (3) EQUB %11110100 \ Index 16 = 11110 (30) and 100 (4) EQUB %00010100 \ Index 17 = 00010 ( 2) and 100 (4) EQUB %00110100 \ Index 18 = 00110 ( 6) and 100 (4) EQUB %01010100 \ Index 19 = 01010 (10) and 100 (4) EQUB %01110100 \ Index 20 = 01110 (14) and 100 (4) EQUB %10011100 \ Index 21 = 10011 (19) and 100 (4) EQUB %11000100 \ Index 22 = 11000 (24) and 100 (4) EQUB %11101100 \ Index 23 = 11101 (29) and 100 (4) EQUB %00010100 \ Index 24 = 00010 ( 2) and 100 (4) EQUB %00111100 \ Index 25 = 00111 ( 7) and 100 (4) EQUB %01101100 \ Index 26 = 01101 (13) and 100 (4) EQUB %10010100 \ Index 27 = 10010 (18) and 100 (4) EQUB %11000100 \ Index 28 = 11000 (24) and 100 (4) EQUB %11110100 \ Index 29 = 11110 (30) and 100 (4) EQUB %00101100 \ Index 30 = 00101 ( 5) and 100 (4) EQUB %01011100 \ Index 31 = 01011 (11) and 100 (4) EQUB %10010101 \ Index 32 = 10010 (18) and 101 (5) EQUB %11001101 \ Index 33 = 11001 (25) and 101 (5) EQUB %00000101 \ Index 34 = 00000 ( 0) and 101 (5) EQUB %00111101 \ Index 35 = 00111 ( 7) and 101 (5) EQUB %01110101 \ Index 36 = 01110 (14) and 101 (5) EQUB %10110101 \ Index 37 = 10110 (22) and 101 (5) EQUB %11101101 \ Index 38 = 11101 (29) and 101 (5) EQUB %00101101 \ Index 39 = 00101 ( 5) and 101 (5) EQUB %01101101 \ Index 40 = 01101 (13) and 101 (5) EQUB %10101101 \ Index 41 = 10101 (21) and 101 (5) EQUB %11101101 \ Index 42 = 11101 (29) and 101 (5) EQUB %00110101 \ Index 43 = 00110 ( 6) and 101 (5) EQUB %01111101 \ Index 44 = 01111 (15) and 101 (5) EQUB %10111101 \ Index 45 = 10111 (23) and 101 (5) EQUB %00000101 \ Index 46 = 00000 ( 0) and 101 (5) EQUB %01001101 \ Index 47 = 01001 ( 9) and 101 (5) EQUB %10011101 \ Index 48 = 10011 (19) and 101 (5) EQUB %11100101 \ Index 49 = 11100 (28) and 101 (5) EQUB %00101101 \ Index 50 = 00101 ( 5) and 101 (5) EQUB %01111101 \ Index 51 = 01111 (15) and 101 (5) EQUB %11001101 \ Index 52 = 11001 (25) and 101 (5) EQUB %00011101 \ Index 53 = 00011 ( 3) and 101 (5) EQUB %01101101 \ Index 54 = 01101 (13) and 101 (5) EQUB %10111101 \ Index 55 = 10111 (23) and 101 (5) EQUB %00010101 \ Index 56 = 00010 ( 2) and 101 (5) EQUB %01100101 \ Index 57 = 01100 (12) and 101 (5) EQUB %10111101 \ Index 58 = 10111 (23) and 101 (5) EQUB %00010101 \ Index 59 = 00010 ( 2) and 101 (5) EQUB %01101101 \ Index 60 = 01101 (13) and 101 (5) EQUB %11000101 \ Index 61 = 11000 (24) and 101 (5) EQUB %00011101 \ Index 62 = 00011 ( 3) and 101 (5) EQUB %01110101 \ Index 63 = 01110 (14) and 101 (5) EQUB %11010110 \ Index 64 = 11010 (26) and 110 (6) EQUB %00101110 \ Index 65 = 00101 ( 5) and 110 (6) EQUB %10001110 \ Index 66 = 10001 (17) and 110 (6) EQUB %11101110 \ Index 67 = 11101 (29) and 110 (6) EQUB %01001110 \ Index 68 = 01001 ( 9) and 110 (6) EQUB %10101110 \ Index 69 = 10101 (21) and 110 (6) EQUB %00001110 \ Index 70 = 00001 ( 1) and 110 (6) EQUB %01101110 \ Index 71 = 01101 (13) and 110 (6) EQUB %11010110 \ Index 72 = 11010 (26) and 110 (6) EQUB %00110110 \ Index 73 = 00110 ( 6) and 110 (6) EQUB %10011110 \ Index 74 = 10011 (19) and 110 (6) EQUB %00000110 \ Index 75 = 00000 ( 0) and 110 (6) EQUB %01101110 \ Index 76 = 01101 (13) and 110 (6) EQUB %11010110 \ Index 77 = 11010 (26) and 110 (6) EQUB %00111110 \ Index 78 = 00111 ( 7) and 110 (6) EQUB %10100110 \ Index 79 = 10100 (20) and 110 (6) EQUB %00010110 \ Index 80 = 00010 ( 2) and 110 (6) EQUB %01111110 \ Index 81 = 01111 (15) and 110 (6) EQUB %11101110 \ Index 82 = 11101 (29) and 110 (6) EQUB %01010110 \ Index 83 = 01010 (10) and 110 (6) EQUB %11000110 \ Index 84 = 11000 (24) and 110 (6) EQUB %00110110 \ Index 85 = 00110 ( 6) and 110 (6) EQUB %10100110 \ Index 86 = 10100 (20) and 110 (6) EQUB %00010110 \ Index 87 = 00010 ( 2) and 110 (6) EQUB %10000110 \ Index 88 = 10000 (16) and 110 (6) EQUB %11111110 \ Index 89 = 11111 (31) and 110 (6) EQUB %01101110 \ Index 90 = 01101 (13) and 110 (6) EQUB %11100110 \ Index 91 = 11100 (28) and 110 (6) EQUB %01010110 \ Index 92 = 01010 (10) and 110 (6) EQUB %11001110 \ Index 93 = 11001 (25) and 110 (6) EQUB %01000110 \ Index 94 = 01000 ( 8) and 110 (6) EQUB %10111110 \ Index 95 = 10111 (23) and 110 (6) EQUB %00110110 \ Index 96 = 00110 ( 6) and 110 (6) EQUB %10101110 \ Index 97 = 10101 (21) and 110 (6) EQUB %00100110 \ Index 98 = 00100 ( 4) and 110 (6) EQUB %10011110 \ Index 99 = 10011 (19) and 110 (6) EQUB %00011110 \ Index 100 = 00011 ( 3) and 110 (6) EQUB %10010110 \ Index 101 = 10010 (18) and 110 (6) EQUB %00010110 \ Index 102 = 00010 ( 2) and 110 (6) EQUB %10010110 \ Index 103 = 10010 (18) and 110 (6) EQUB %00001110 \ Index 104 = 00001 ( 1) and 110 (6) EQUB %10001110 \ Index 105 = 10001 (17) and 110 (6) EQUB %00001110 \ Index 106 = 00001 ( 1) and 110 (6) EQUB %10001110 \ Index 107 = 10001 (17) and 110 (6) EQUB %00001110 \ Index 108 = 00001 ( 1) and 110 (6) EQUB %10010110 \ Index 109 = 10010 (18) and 110 (6) EQUB %00010110 \ Index 110 = 00010 ( 2) and 110 (6) EQUB %10010110 \ Index 111 = 10010 (18) and 110 (6) EQUB %00011110 \ Index 112 = 00011 ( 3) and 110 (6) EQUB %10011110 \ Index 113 = 10011 (19) and 110 (6) EQUB %00100110 \ Index 114 = 00100 ( 4) and 110 (6) EQUB %10101110 \ Index 115 = 10101 (21) and 110 (6) EQUB %00110110 \ Index 116 = 00110 ( 6) and 110 (6) EQUB %10110110 \ Index 117 = 10110 (22) and 110 (6) EQUB %00111110 \ Index 118 = 00111 ( 7) and 110 (6) EQUB %11000110 \ Index 119 = 11000 (24) and 110 (6) EQUB %01010110 \ Index 120 = 01010 (10) and 110 (6) EQUB %11011110 \ Index 121 = 11011 (27) and 110 (6) EQUB %01100110 \ Index 122 = 01100 (12) and 110 (6) EQUB %11101110 \ Index 123 = 11101 (29) and 110 (6) EQUB %01111110 \ Index 124 = 01111 (15) and 110 (6) EQUB %00000110 \ Index 125 = 00000 ( 0) and 110 (6) EQUB %10010110 \ Index 126 = 10010 (18) and 110 (6) EQUB %00100110 \ Index 127 = 00100 ( 4) and 110 (6) EQUB %10101111 \ Index 128 = 10101 (21) and 111 (7) EQUB %00111111 \ Index 129 = 00111 ( 7) and 111 (7) EQUB %11001111 \ Index 130 = 11001 (25) and 111 (7) EQUB %01011111 \ Index 131 = 01011 (11) and 111 (7) EQUB %11101111 \ Index 132 = 11101 (29) and 111 (7) EQUB %01111111 \ Index 133 = 01111 (15) and 111 (7) EQUB %00001111 \ Index 134 = 00001 ( 1) and 111 (7) EQUB %10100111 \ Index 135 = 10100 (20) and 111 (7) EQUB %00110111 \ Index 136 = 00110 ( 6) and 111 (7) EQUB %11000111 \ Index 137 = 11000 (24) and 111 (7) EQUB %01011111 \ Index 138 = 01011 (11) and 111 (7) EQUB %11101111 \ Index 139 = 11101 (29) and 111 (7) EQUB %10000111 \ Index 140 = 10000 (16) and 111 (7) EQUB %00010111 \ Index 141 = 00010 ( 2) and 111 (7) EQUB %10101111 \ Index 142 = 10101 (21) and 111 (7) EQUB %01000111 \ Index 143 = 01000 ( 8) and 111 (7) EQUB %11011111 \ Index 144 = 11011 (27) and 111 (7) EQUB %01110111 \ Index 145 = 01110 (14) and 111 (7) EQUB %00001111 \ Index 146 = 00001 ( 1) and 111 (7) EQUB %10100111 \ Index 147 = 10100 (20) and 111 (7) EQUB %00111111 \ Index 148 = 00111 ( 7) and 111 (7) EQUB %11010111 \ Index 149 = 11010 (26) and 111 (7) EQUB %01101111 \ Index 150 = 01101 (13) and 111 (7) EQUB %00001111 \ Index 151 = 00001 ( 1) and 111 (7) EQUB %10100111 \ Index 152 = 10100 (20) and 111 (7) EQUB %01000111 \ Index 153 = 01000 ( 8) and 111 (7) EQUB %11011111 \ Index 154 = 11011 (27) and 111 (7) EQUB %01111111 \ Index 155 = 01111 (15) and 111 (7) EQUB %00010111 \ Index 156 = 00010 ( 2) and 111 (7) EQUB %10110111 \ Index 157 = 10110 (22) and 111 (7) EQUB %01010111 \ Index 158 = 01010 (10) and 111 (7) EQUB %11101111 \ Index 159 = 11101 (29) and 111 (7) EQUB %10001111 \ Index 160 = 10001 (17) and 111 (7) EQUB %00101111 \ Index 161 = 00101 ( 5) and 111 (7) EQUB %11001111 \ Index 162 = 11001 (25) and 111 (7) EQUB %01101111 \ Index 163 = 01101 (13) and 111 (7) EQUB %00001111 \ Index 164 = 00001 ( 1) and 111 (7) EQUB %10101111 \ Index 165 = 10101 (21) and 111 (7) EQUB %01010111 \ Index 166 = 01010 (10) and 111 (7) EQUB %11110111 \ Index 167 = 11110 (30) and 111 (7) EQUB %10010111 \ Index 168 = 10010 (18) and 111 (7) EQUB %00110111 \ Index 169 = 00110 ( 6) and 111 (7) EQUB %11011111 \ Index 170 = 11011 (27) and 111 (7) EQUB %01111111 \ Index 171 = 01111 (15) and 111 (7) EQUB %00100111 \ Index 172 = 00100 ( 4) and 111 (7) EQUB %11000111 \ Index 173 = 11000 (24) and 111 (7) EQUB %01101111 \ Index 174 = 01101 (13) and 111 (7) EQUB %00010111 \ Index 175 = 00010 ( 2) and 111 (7) EQUB %10111111 \ Index 176 = 10111 (23) and 111 (7) EQUB %01011111 \ Index 177 = 01011 (11) and 111 (7) EQUB %00000111 \ Index 178 = 00000 ( 0) and 111 (7) EQUB %10101111 \ Index 179 = 10101 (21) and 111 (7) EQUB %01010111 \ Index 180 = 01010 (10) and 111 (7) EQUB %11111111 \ Index 181 = 11111 (31) and 111 (7) EQUB %10100111 \ Index 182 = 10100 (20) and 111 (7) EQUB %01001111 \ Index 183 = 01001 ( 9) and 111 (7) EQUB %11110111 \ Index 184 = 11110 (30) and 111 (7) EQUB %10011111 \ Index 185 = 10011 (19) and 111 (7) EQUB %01001111 \ Index 186 = 01001 ( 9) and 111 (7) EQUB %11110111 \ Index 187 = 11110 (30) and 111 (7) EQUB %10011111 \ Index 188 = 10011 (19) and 111 (7) EQUB %01001111 \ Index 189 = 01001 ( 9) and 111 (7) EQUB %11110111 \ Index 190 = 11110 (30) and 111 (7) EQUB %10100111 \ Index 191 = 10100 (20) and 111 (7) EQUB %01001111 \ Index 192 = 01001 ( 9) and 111 (7) EQUB %11111111 \ Index 193 = 11111 (31) and 111 (7) EQUB %10100111 \ Index 194 = 10100 (20) and 111 (7) EQUB %01010111 \ Index 195 = 01010 (10) and 111 (7) EQUB %00000111 \ Index 196 = 00000 ( 0) and 111 (7) EQUB %10101111 \ Index 197 = 10101 (21) and 111 (7) EQUB %01011111 \ Index 198 = 01011 (11) and 111 (7) EQUB %00001111 \ Index 199 = 00001 ( 1) and 111 (7) EQUB %10111111 \ Index 200 = 10111 (23) and 111 (7) EQUB %01101111 \ Index 201 = 01101 (13) and 111 (7) EQUB %00011111 \ Index 202 = 00011 ( 3) and 111 (7) EQUB %11001111 \ Index 203 = 11001 (25) and 111 (7) EQUB %01111111 \ Index 204 = 01111 (15) and 111 (7) EQUB %00101111 \ Index 205 = 00101 ( 5) and 111 (7) EQUB %11011111 \ Index 206 = 11011 (27) and 111 (7) EQUB %10001111 \ Index 207 = 10001 (17) and 111 (7) EQUB %01000111 \ Index 208 = 01000 ( 8) and 111 (7) EQUB %11110111 \ Index 209 = 11110 (30) and 111 (7) EQUB %10100111 \ Index 210 = 10100 (20) and 111 (7) EQUB %01011111 \ Index 211 = 01011 (11) and 111 (7) EQUB %00001111 \ Index 212 = 00001 ( 1) and 111 (7) EQUB %11000111 \ Index 213 = 11000 (24) and 111 (7) EQUB %01110111 \ Index 214 = 01110 (14) and 111 (7) EQUB %00101111 \ Index 215 = 00101 ( 5) and 111 (7) EQUB %11011111 \ Index 216 = 11011 (27) and 111 (7) EQUB %10010111 \ Index 217 = 10010 (18) and 111 (7) EQUB %01000111 \ Index 218 = 01000 ( 8) and 111 (7) EQUB %11111111 \ Index 219 = 11111 (31) and 111 (7) EQUB %10110111 \ Index 220 = 10110 (22) and 111 (7) EQUB %01101111 \ Index 221 = 01101 (13) and 111 (7) EQUB %00011111 \ Index 222 = 00011 ( 3) and 111 (7) EQUB %11010111 \ Index 223 = 11010 (26) and 111 (7) EQUB %10001111 \ Index 224 = 10001 (17) and 111 (7) EQUB %01000111 \ Index 225 = 01000 ( 8) and 111 (7) EQUB %11111111 \ Index 226 = 11111 (31) and 111 (7) EQUB %10110111 \ Index 227 = 10110 (22) and 111 (7) EQUB %01101111 \ Index 228 = 01101 (13) and 111 (7) EQUB %00100111 \ Index 229 = 00100 ( 4) and 111 (7) EQUB %11011111 \ Index 230 = 11011 (27) and 111 (7) EQUB %10010111 \ Index 231 = 10010 (18) and 111 (7) EQUB %01001111 \ Index 232 = 01001 ( 9) and 111 (7) EQUB %00001111 \ Index 233 = 00001 ( 1) and 111 (7) EQUB %11000111 \ Index 234 = 11000 (24) and 111 (7) EQUB %01111111 \ Index 235 = 01111 (15) and 111 (7) EQUB %00111111 \ Index 236 = 00111 ( 7) and 111 (7) EQUB %11110111 \ Index 237 = 11110 (30) and 111 (7) EQUB %10101111 \ Index 238 = 10101 (21) and 111 (7) EQUB %01101111 \ Index 239 = 01101 (13) and 111 (7) EQUB %00100111 \ Index 240 = 00100 ( 4) and 111 (7) EQUB %11100111 \ Index 241 = 11100 (28) and 111 (7) EQUB %10011111 \ Index 242 = 10011 (19) and 111 (7) EQUB %01011111 \ Index 243 = 01011 (11) and 111 (7) EQUB %00010111 \ Index 244 = 00010 ( 2) and 111 (7) EQUB %11010111 \ Index 245 = 11010 (26) and 111 (7) EQUB %10010111 \ Index 246 = 10010 (18) and 111 (7) EQUB %01001111 \ Index 247 = 01001 ( 9) and 111 (7) EQUB %00001111 \ Index 248 = 00001 ( 1) and 111 (7) EQUB %11001111 \ Index 249 = 11001 (25) and 111 (7) EQUB %10001111 \ Index 250 = 10001 (17) and 111 (7) EQUB %01000111 \ Index 251 = 01000 ( 8) and 111 (7) EQUB %00000111 \ Index 252 = 00000 ( 0) and 111 (7) EQUB %11000111 \ Index 253 = 11000 (24) and 111 (7) EQUB %10000111 \ Index 254 = 10000 (16) and 111 (7) EQUB %01000111 \ Index 255 = 01000 ( 8) and 111 (7)