I've a little question about some code I saw,
Code: Select all
out(0x3D4, 14);
offset = in(0x3D5) << 8;
out(0x3D4, 15);
offset |= in(0x3D5);
vidmem += offset*2;
the bitshift-8, is that because the two registers holding the cursor but starts at bit 8 so it have to shiftback to 0?
Why does offset ored by in(0x3D5)?
and why does offset multiplied with 2 and added by the video-pointer.
I've seen some tutorials, but I'm dutch and it's hard to understand

Thanks

Peter