Rewritten ADC using inline assembly