Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
16 ビット変数を格納する変数を 1 つ作成し、上位半分を 8 ビット変数に格納しようとしています。どうすればいいですか?
編集:IA-32用で、レジスタを使用できないと思います
EDIT2: レジスタを使用することが許可されています。
次のように実行できます。
mov AX, [var16] mov [var8], AH
または、SHR、SHL、または ROR と ROL を使用して、レジスタ内のビットをシフトまたはローテーションすることもできます。