Errors Caused by ignoring PTR in the Assembly Diary

Source: Internet
Author: User

MASM 6.15

 

Data Segment <br/> buffb1 dB 50 h <br/> buffb2 dB 'abc' <br/> buffw1 DW 1234 H <br/> buffw2 DW 'abc' <br/> buffq1 DQ 12345678 H <br/> buffq2 DQ 'abc' <br/> data ends <br/> code segment <br/> assume DS: data, CS: Code <br/> Start: <br/> mov ax, data <br/> mov ds, ax <br/> mov dx, buffb2 <br/> mov ah, 9 <br/> int 21 h <br/> code ends <br/> end start <br/>

 

Error message:

(14) Error a2070: Invalid instruction operands.

 

MoV dx, word PTR buffb2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.