8 Replies - 389 Views - Last Post: 21 September 2017 - 08:55 AM

#1 sunshine33  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-September 17

Is this a keyword , value or a variable ?

Posted 21 September 2017 - 12:31 AM

mov edx,len                   ; arg3, length of string to print
:code:

In this line of code , the "len" , is it a keyword , value or a variable ?

This post has been edited by modi123_1: 21 September 2017 - 06:36 AM
Reason for edit:: In the future please use the [code] tags in the editor.

Is This A Good Question/Topic? 0
  • +

Replies To: Is this a keyword , value or a variable ?

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13491
  • View blog
  • Posts: 53,887
  • Joined: 12-June 08

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 06:36 AM

What do you believe it is, and why?
Was This Post Helpful? 0
  • +
  • -

#3 sunshine33  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-September 17

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:36 AM

I don't think it is a variable , But i think it is some sort of value or a keyword .

In one of the books i went through , it says like this .

mov edx,len ; arg3, length of string to print

Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13491
  • View blog
  • Posts: 53,887
  • Joined: 12-June 08

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:38 AM

The comment there should explain what 'len' is.

Quote

arg3, length of string to print

Was This Post Helpful? 0
  • +
  • -

#5 sunshine33  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-September 17

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:41 AM

arg means argument ?
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13491
  • View blog
  • Posts: 53,887
  • Joined: 12-June 08

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:44 AM

Most likely.
Was This Post Helpful? 1
  • +
  • -

#7 sunshine33  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-September 17

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:46 AM

One last question , can i replace the word "len" with some other word to represent ,length of the string to print ?
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13491
  • View blog
  • Posts: 53,887
  • Joined: 12-June 08

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:49 AM

Depends. I have no larger context to make a definitive answer.. though if you change it there you would need to find where else 'len' is being used and change it in those places as well. So.. sure?
Was This Post Helpful? 0
  • +
  • -

#9 sunshine33  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 28
  • Joined: 15-September 17

Re: Is this a keyword , value or a variable ?

Posted 21 September 2017 - 08:55 AM

That means MOV the value "len" into the EDX register .

OK , Thanks a lot
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1