the _my_ds(), _my_cs(), and _my_ss() functions aren't usable.
This is the disassemble:
Code: Select all
Dump of assembler code for function _MY_DS:
0x00017bd0 <_MY_DS+0>: push %ebp
0x00017bd1 <_MY_DS+1>: mov %esp,%ebp
0x00017bd3 <_MY_DS+3>: sub $0x4,%esp
0x00017bd6 <_MY_DS+6>: push %ebx
0x00017bd7 <_MY_DS+7>: push %esi
0x00017bd8 <_MY_DS+8>: push %edi
0x00017bd9 <_MY_DS+9>: movl $0x0,0xfffffffc(%ebp)
0x00017be0 <_MY_DS+16>: movl %ds,0x17ba0
0x00017be6 <_MY_DS+22>: mov 0xfffffffc(%ebp),%eax
0x00017be9 <_MY_DS+25>: pop %edi
0x00017bea <_MY_DS+26>: pop %esi
0x00017beb <_MY_DS+27>: pop %ebx
0x00017bec <_MY_DS+28>: mov %ebp,%esp
0x00017bee <_MY_DS+30>: pop %ebp
0x00017bef <_MY_DS+31>: ret $0x0
End of assembler dump.
Code: Select all
private function _my_ds ( ) as integer
asm
mov [_MY_CS], ds
end asm
end function
Regards,
Mark