Arithmetic // SUB
The s operand is subtracted from the contents of the Accumulator, and the result is stored in the Accumulator.
If the Accumulator contents are 29h, and the D Register contains 11h, then upon the execution of a SUB D instruction, the Accumulator contains 18h.
sub b
0x90,
1 bytes, 4Tsub c
0x91,
1 bytes, 4Tsub d
0x92,
1 bytes, 4Tsub e
0x93,
1 bytes, 4Tsub h
0x94,
1 bytes, 4Tsub l
0x95,
1 bytes, 4Tsub (hl)
0x96,
1 bytes, 7Tsub a
0x97,
1 bytes, 4Tsub *
0xD6,
2 bytes, 7Tsub ixh
0xDD94,
2 bytes, 8Tsub ixl
0xDD95,
2 bytes, 8Tsub (ix+*)
0xDD96,
3 bytes, 19Tsub iyh
0xFD94,
2 bytes, 8Tsub iyl
0xFD95,
2 bytes, 8Tsub (iy+*)
0xFD96,
3 bytes, 19T