Going back to basics, some advice on memory storage


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,690


    Did you find this post helpful? Yes | No

    Default Re: Going back to basics, some advice on memory storage

    horses an water

    I try again this seems to have gone through to the keeper
    http://www.picbasic.co.uk/forum/showthread.php?t=20966


    arrays and the ext modifier don't exist for no reason

    Code:
    data_block var byte[96]
    i var byte
    ch_max var word ext   ;accessable as ch_max[0] to ch_max[15]
    ch_on  var word ext   ;accessable as ch_on[0] to ch_on[15]
    ch_off var word ext   ;accessable as ch_off[0] to ch_off[15]
    
    asm
    ch_max =  data_block
    ch_on  =  data_block+32
    ch_off =  data_block+64
    endasm
    save_data:
    for i = 0 to 95
    write 8+i ,data_block[i]
    next
    return
    read_data:
    for i = 0 to 95
    read 8+i ,data_block[i]
    next
    return
    
    set_defaults:
    for i=0 to 15
    ch_max[i]= 3000
    ch_on[i}= 1800
    ch_off[i]=600
    next
    return

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Going back to basics, some advice on memory storage

    Richard, your previous posts hadn't been overlooked... I was trying to keep my explanation as simple as possible with regards to the locations in order to help explain what I was looking for, which was info on the correct way to use the DATA and EEPROM statements... which you appear to of overlooked in your reply whilst you were hell bent on being sarcastic with your

    horses an water

    I try again this seems to have gone through to the keeper"

Similar Threads

  1. I2C storage issue
    By lerameur in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th November 2010, 20:42
  2. Memory Overflow? Urgently need advice
    By curian88 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th April 2010, 15:42
  3. data storage label
    By MINHLE in forum General
    Replies: 6
    Last Post: - 17th December 2009, 15:04
  4. internal storage space?
    By gtrplaya101 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th October 2009, 07:45
  5. The basics
    By malc-c in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 22nd June 2008, 01:09

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