0 Replies - 604 Views - Last Post: 25 October 2015 - 10:31 AM

#1 11ash1   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 39
  • Joined: 25-October 15

understanding program in assembly

Posted 25 October 2015 - 10:31 AM

The goal of the assignment is to write the code to store your first name and last name, do not enter it from a prompt, then display only your last name.

I am able to have it display my full name but I do not know how to display only my last name.
include irvine32.inc

title name

.data

outmsg DB " redurgaM drawdE: ",0

space byte ' ',0

.code

main proc

 mov eax,0

  mov ecx,lengthof myname

 mov esi,lengthof myname

  mov edi,0

mov ecx, lengthof outmsg

mov ebx,offset outmsg

add ebx,ecx

inc ecx

Exit 

main endp

end main


This post has been edited by xclite: 25 October 2015 - 01:25 PM
Reason for edit:: Please use code tags


Is This A Good Question/Topic? 0
  • +

Page 1 of 1