Compiled with correct LOGSIZE and hcount 9 bit addressing. Still getting weird output. My guess is that I need to use hcount 9 bits, but with hcount_f instead of hcount