Closed FlightControl-User closed 1 year ago
Improved the flashing performance by avoiding long lasting bit shifts of 14 positions to calculate the bank for each rom byte to be flashed. The bank is now calculated through shifting byte 1 and 2 of the 22 bit rom address, shifting this 2 bits to the left, and then taking the byte 2 which contains the bank... (Note that we count the bytes from zero and little endian).
For every byte locked, unlocked, flashed, avoid having to do bit shifts (which take time). So instead of the program working with absolute rom addresses, convert the logic to make the program use rom bank variables and then rom 14 bit addresses and adjust the bank with limit checks (like the ram does).
So either improve or get rid of the usage of these functions below: