Recall that the word register AX consists of AH and AL. Modifying either AH or AL will modify the contents of AX. Likewise, modifying AX will be likely modify AH and AL. This situation is analogous to other word registers that have two byte registers (i.e. BX, CX, and DX). Take look at this example:
Ah. So, when I assign value to AX and AX is important to me, I must not modify neither AL nor AH. That's true. Similar manner occur on BX (with its BL and BH), CX (CL and CH), and DX (DL and DH). To refresh your memory, please take a look at the picture below:
Please keep in mind this behavior when you do programs in assembly.
<== попередня сторінка
|
наступна сторінка ==>
|
Переглядів: 630
Не знайшли потрібну інформацію? Скористайтесь пошуком google: