I'm having trouble understanding how the Sequence Controller Registers are set in this example with some old VGA code:
mov dx,SC_INDEX
mov ax,0604h
out dx,ax ;disable chain4 mode
The example is from Michael Abrash's VGA book: https://www.phatcode.net/res/224/files/html/ch47/47-02.html
According to the description he wants to set the Memory Mode register which is at Index 4. He wants to disable chain4 which is at Bit Index 3 (all according to the Programmer's Guide to the EGA, VGA and Super VGA Cards by Richard F. Ferraro).
I fail to understand why he puts 2 bytes 06 and 04 into ax and out's them. The out register is only one byte and he doesn't explicitly set the index of the register for addressing. Is there some magic happening that I don't understand?