Re: Writing a TSR that stores/restores the video screen (C with inline Asm)
Posted on 2024-05-06, 16:44
That's two unrelated things. The sreen_state is a variable that stores the address of the memory block, you load the content of that variable into ES:DI. What you missed is that `LES DI,variable` implies DS register when referencing the variable. So it behaves as `LES DI, DS:[variable]`. The …