Yes.
HAM on/off is separate enable bit.
Technical detail: OCS/ECS HAM is always enabled when HAM enable bit is set, bitplane count is ignored. (for example some demos use "HAM4" or "HAM5" modes) but AGA only enables HAM mode if HAM enable bit is set AND bitplane count is 6 (=OCS/ECS compatible HAM6 enabled) or 8 (=AGA HAM8 enabled).
|