Data transfer between data segments

chrstrbrts

Senior member
Aug 12, 2014
522
3
81
Hi,

Assuming that privilege levels work out, is the following or any variation of the following allowed on Intel machines:

mov es:[ebx], fs:[eax]

That is, can you reach across data segments to move, add, etc. arguments?

Thanks.
 

exdeath

Lifer
Jan 29, 2004
13,679
10
81
mov mem, mem isn't valid at all period. It's a CPU not a DMAC. Mov with mem as an operand is either a load or store not both, thus only one operand can be mem not both. Excepting special complex CISC opcodes like rep and movs_ that take many many cycles and perform many separate operations and bus cycles. You also only get one segment override prefix since you can't have two mem operands.

movs_ should work that way in pmode but DS and ES are implicit so you have to move your selectors there then restore them when finished.
 
Last edited:

exdeath

Lifer
Jan 29, 2004
13,679
10
81
You testing any of this yourself yet? You are getting in way too deep for someone who isn't even writing code and observing. An assembler would have told you instantly that mov mem, mem is invalid and you'd see it isn't in the opcode matrix.
 

chrstrbrts

Senior member
Aug 12, 2014
522
3
81
mov mem, mem isn't valid at all period.

OK, but what about other machine instructions?

What about additions, subtractions, compare, etc?

Can those use two memory operands?

You testing any of this yourself yet? You are getting in way too deep for someone who isn't even writing code and observing.

I'm going about this in an extremely linear way (maybe it's my Asperger's).

I feel that I need to build a very strong foundation before I move onto anything else, and that includes programming.

I'm finishing Intel's big manual, and then I'm going to read it again just to make sure I get it down pat.

After that, I have a ton of other stuff to read.

I've got months, probably a year or more to go, before I start programming.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |