writing word variables to data memory


Results 1 to 14 of 14

Threaded View

  1. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    [QUOTE=malc-c;92222]

    So assuming the start address is 80

    Could this then be changed to
    Code:
    For x = 0 to 3
    For fn = 0 to 8
    Write Word (80+fn) AlarmHigh[fx] highbyte
    If fn >= 4 then 
    x = 0 
    Write Word (80+fn) AlarmHigh[fx] lowbyte
    Next fn
    Next x
    Oh my god ... you really thick ... ( YOU told it, not me ... )

    following your explanation:

    [code]

    For fn = 0 to 3
    Write (80+2*fn), Word AlarmHigh[fn+1]
    next fn

    [code]

    LOCATION MUST BE PLACED BEFORE THE DATA !!!

    ( sorry for other users , but it's the 4 th time I repeat ... )


    Business looks to have turned you deaf and blind ...

    Alain
    Last edited by Acetronics2; - 5th August 2010 at 20:26.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Members who have read this thread : 0

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