The displacement-only addressing mode is perfect for accessing simple variables. Of course, you'd probably prefer using names like "I" or "J" rather than "DS:[1234h]" or "DS:[8088h]". Well, fear not, you'll soon see it's possible to do just that.
Intel named this the displacement-only addressing mode because a 16 bit constant (displacement) follows the mov opcode in memory. In that respect it is quite similar to the direct addressing mode on the x86 processors (see the previous chapter). There are some minor differences, however. First of all, a displacement is exactly that- some distance from some other point. On the x86, a direct address can be thought of as a displacement from address zero. On the 80x86 processors, this displacement is an offset from the beginning of a segment (the data segment in this example). Don't worry if this doesn't make a lot of sense right now. You'll get an opportunity to study segments to your heart's content a little later in this chapter. For now, you can think of the displacement-only addressing mode as a direct addressing mode. The examples in this chapter will typically access bytes in memory. Don't forget, however, that you can also access words on the 8086 processors :
การกระจัดเท่านั้นที่อยู่ในโหมดที่สมบูรณ์แบบเพื่อการเข้าถึงตัวแปรง่ายๆ แน่นอน , คุณอาจต้องการใช้ชื่อเช่น " ผม " หรือ " เจ " มากกว่า " DS : [ 1234h ] " หรือ " [ 8088h DS : ] " ดี , ไม่กลัว , คุณจะเห็นว่ามันเป็นไปได้ที่จะทำเพียงที่ .
ชื่อนี้ Intel การกระจัดเท่านั้นที่อยู่ในโหมด 16 บิตคงที่เพราะ ( การเคลื่อนที่ ) ตาม MOV opcode ไว้ในหน่วยความจำในส่วนที่ว่ามันค่อนข้างคล้ายกับที่อยู่ตรงโหมดบน x86 โปรเซสเซอร์ ( ดูบทก่อน ) มีบางแตกต่างกันเล็กน้อย , อย่างไรก็ตาม แรกของทั้งหมด , การกระจัดคือ - ระยะห่างจากจุดอื่น ๆ บน x86 ที่อยู่โดยตรงสามารถคิดเป็นการกระจัดจากที่อยู่ที่ศูนย์ ในจุดประสงค์ของโปรเซสเซอร์แทนที่นี้ชดเชยจากจุดเริ่มต้นของส่วน ( ส่วนในตัวอย่างนี้ ) ไม่ต้องห่วงถ้ามันไม่ได้ทำให้ความรู้สึกมากในตอนนี้ คุณจะได้รับโอกาสในการศึกษากลุ่มหัวใจของคุณเป็นเนื้อหาเพียงเล็กน้อยในภายหลังในบทนี้ ตอนนี้ , คุณสามารถคิดของการเป็นโดยตรงเท่านั้นที่อยู่ในโหมดกับโหมดตัวอย่างในบทนี้โดยทั่วไปจะเข้าถึงข้อมูลเข้าหน่วยความจำ อย่าลืม อย่างไรก็ตาม คุณยังสามารถเข้าถึงคำบน 8086 โปรเซสเซอร์ :
การแปล กรุณารอสักครู่..
