Help in assembler


+ Reply to Thread
Results 1 to 4 of 4

Thread: Help in assembler5181 days old

  1. #1
    pdgnr
    Guest pdgnr's Avatar

    0 Not allowed!

    Default Help in assembler

    Dear all,

    the question is simple, don't know for the answer:

    I have a table in memory (18Fxxx micros)

    Table1
    retlw '1'
    retlw '0'
    ...
    ...
    I want to be able to modify this table at run time. For that (and for use the Microchip template), I must know the adress of the table in three parts : upper, high and low. How can I retreive this adress and store it in AddUp, AddHigh and AddLow for example ?

    Thanks by advance...

    Regards,

    Robert

  2. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  3. #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,754
    Thumbs Up
    Received: 51
    Given: 96
    Total Downloaded
    1.33 GB

    0 Not allowed!

    Default

    For starters if you are going to change the data I would only do it 1 - 2000 times in the devices life. Any more and it may die.

    Secondly to find the address just use the movlw label argument. You will need to mask the number to get the right bits etc.

    Movlw high label1
    Movwf addressh
    Movlw low label1
    Movwf address

    or better still let Proton do it

    Address = lable1
    Tim

  4. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  5. #3
    pdgnr
    Guest pdgnr's Avatar

    0 Not allowed!

    Default

    Hi Tim,
    thanks... The modification of the table will occurs only a few times in the life of the PIC. The goal is to issue a device wich can be customized by the final user once when putting it in use...

    Regards,

    Robert

  6. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  7. #4
    pdgnr
    Guest pdgnr's Avatar

    0 Not allowed!

    Default

    Hi Tim,

    here is the little test I have done :

    Cls
    var1 = 0
    var2 = 0
    ASM
    movlw High __String3
    movwf var1
    movlw Low __String3
    movwf var2
    ENDASM
    Print At 1,1, HEX8 var1
    Print At 2,1, HEX8 var2

    result : VAR1 = 0, VAR2 = 0

    I've tried with VAR as word and as DWord....

    Help!

    Regards,

    Robert

  8. Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Assembler to Proton
    By teo in forum Proton Plus Compiler v3
    Replies: 9
    Last Post: 23rd August 2018, 13:47
  2. Assembler listing
    By towlerg in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 22nd February 2017, 16:57
  3. Microchip assembler
    By towlerg in forum The Lounge
    Replies: 2
    Last Post: 19th October 2016, 19:27
  4. [SOLVED !] Assembler
    By nullsoft in forum The Lounge
    Replies: 21
    Last Post: 11th February 2010, 09:02
  5. [SOLVED !] Need a little help in assembler, please...
    By pdgnr in forum Proton Plus Compiler v3
    Replies: 8
    Last Post: 1st June 2006, 08:42

Tags for this Thread

Posting Permissions

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