Write the assembler instructions that will read the text document located starting from memory location 020AH. The last line of text document is specified by escape character ‘\’. While reading print out the text that starts from character 11 to character 20. Comment your assembler instructions.

this is the assignment. if some one can help me, I will be grateful.

You need to post your code first!

this is all the data that the instructros has gived.open the attach file and there you will see.. the assignment that i require is C,

I just reviewed the class assignment. I could help you but it would be contrary to rules of ethics and so would be wrong.

Hint: Most processors give you an exception error when aceesing misalligned memory.
Hint: AX,BX,CX,DX are 16-bit (2 byte) instructions.
Hint: 16-bit Little Endian is low register is N+0 and high register is N+1
Hint: MOV reg16,[addr] is load 16-bit value from memory at address.
Hint: CX=0 MOV AX,[BX] MOV AX,DS:[BX] MOV AX,DS:[BX+0] MOV AX,[BX+CX+0]
all do the same thing!

Hint: Break up code blocks onto individual lines of code.

c = 0;                 mov reg8,#
  while ( b!= 0 )        if  b==0
  {
    c += a;              add reg8,reg8
    b--;                 dec reg8           sub reg8,#
  }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.