oscilloscope cycles stuff (the messy version)