Adding data to an "array" in ASM


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    FSR0 is a constant that equates to 0.
    It's for use with the LFSR opcode, LFSR FSR0, 38

    The address for the FSR0 is 2 bytes, FSR0L and FSR0H.
    So with your example, it could be one of these ...
    Code:
    	LFSR  FSR0, 38
    	
    	MOVLW	57
    	MOVWF	38
    	MOVFF	INDF0,TXREG
    ... OR ...
    Code:
    	MOVLW	38
    	MOVWF	FSR0L
    	CLRF	FSR0H
    	
    	MOVLW	57
    	MOVWF	38
    	MOVFF	INDF0,TXREG
    hth,
    DT

  2. #2
    Join Date
    Jun 2007
    Location
    Mansfield, UK
    Posts
    697


    Did you find this post helpful? Yes | No

    Default

    Thanks. Thats working perfectly now

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts