I have problem when using intructions like this:
mov ds, ax ;set ds with the address of a segment data like .data or .bss
out dx, al ;output byte in AL to I/O port address in DX
also i can't use the interuptions intructions like int 21h
This intructions can be assemble but when i run the program and one of this instruction will be executed the program can't continue and terminate.
What is the problem? i am in window vista so the program run in real mode or protected mode. this have some relation with the problem? i need some privilege level if I am in PM? how can i use this intruction without problem?
I am using masm32 and nasm but the problem is the same when i run the program crash in this intructions.
please everybody some links and codes to this matter
I remenber that a little more than 1 year I was programming assembley in tasm with the int #, in and out and mov ds, ax intructions and work with any problem in window xp. So, i don't know what is the problem and worst I don't know how to solve!
Thanks and any help is welcome