Bad idea to modify DS register?
Posted: Mon Jun 03, 2013 1:04 pm
When you first set the DS register is it a bad idea to change it again to access offset's lower than the DS register.
I understand you can do something like this
But I would prefer to use the SI register for certain routines. So basically lets say I have code which I make a call to and this code needs to access out of the boundaries of the DS register. Would it be a bad idea to do something like this?
So SI is pointing to the first byte in memory? is doing it like this bad I read some where that its not advised to change the DS register as it could cause some problems
I understand you can do something like this
Code: Select all
mov al, [gs:bx]
Code: Select all
push ds
mov ax, 0x00
mov ds, ax
mov si, 0x00
....
pop ds
....
ret