+ Reply to Thread
Results 1 to 3 of 3

Thread: movlw address

  1. #1
    MessUpMymind Newbie
    Join Date
    Oct 2008
    Posts
    64

    movlw address

    hi there,

    here's a simple question to ask ,

    Code:
    	cblock 	0x20 			;start of general purpose registers
    		mtx_buffer
    		mtx_buffer1
    		mtx_buffer2
    	endc
    
    	movlw 	mtx_buffer
    	movwf 	FSR
    	 
    above code that is highlighted in red , movlw mtx_buffer is same as putting the 0x20(address in file register) into w register instead of the contain of the mtx_buffer, am i correct??


  2. #2
    Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent Pommie Excellent
    Join Date
    Mar 2005
    Location
    Brisbane Australia
    Posts
    6,696

    Correct.

    Mike.

  3. #3
    MessUpMymind Newbie
    Join Date
    Oct 2008
    Posts
    64

    hi mike ,

    thanks a lot for your reply.

    regards,
    TK

+ Reply to Thread

Similar Threads

  1. How to set a function in a certain address?
    By alphadog in forum Micro Controllers
    Replies: 8
    Latest: 12th February 2009, 08:13 AM
  2. MOVLW not setting correct value in W register
    By bitem2k in forum Micro Controllers
    Replies: 3
    Latest: 3rd July 2007, 02:38 PM
  3. address 0x000
    By aljamri in forum Micro Controllers
    Replies: 0
    Latest: 25th May 2007, 10:19 AM
  4. MAC address problem
    By tkvenki in forum Micro Controllers
    Replies: 4
    Latest: 22nd March 2007, 09:25 AM
  5. Address selection of whole cards
    By Pax Writer in forum General Electronics Chat
    Replies: 8
    Latest: 6th March 2007, 07:16 PM

Tags for this Thread