neilobremski
Experienced Member
Is it possible to perform a 32-bit atomic read from memory on an 8086/8088 without disabling interrupts?
I noticed the LDS and LES instructions read a full DWORD for the DS:SI or ES:DI far pointer respectively so I plopped together the following code which abuses the former a bit ...
That reads the BIOS timer tick count into DX:AX.
Would or could a timer interrupt occur in the middle of LDS executing?
I noticed the LDS and LES instructions read a full DWORD for the DS:SI or ES:DI far pointer respectively so I plopped together the following code which abuses the former a bit ...
Code:
PUSH DS
XOR AX, AX
MOV DS, AX
MOV SI, 046C
LDS DI, [SI]
MOV DX, DS
MOV AX, DI
POP DS
That reads the BIOS timer tick count into DX:AX.
Would or could a timer interrupt occur in the middle of LDS executing?
Last edited: