Now we want to output the value &C5:
<pre> LD a,&C5 ;A=&C5 LD B,&EF ;load the port adress XOR &80 ;invert the 7th bit OUT (C),A ;out to the printer port LD a,&C5 ;A=&C5 LD B,&EF ;load the port adress XOR &80 ;invert the 7th bit OUT (C),A ;out to the printer port </pre>
The accu is the register A.