Lookup Table


Closed Thread
Results 1 to 7 of 7

Thread: Lookup Table

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Unhappy Peek, Poke, DB, ASM ...?

    Hi and thanks for your replies. I visited above links. I want to save data on program memory space and send them to LEDs byte by bytes. This is a part of my program:


    Send:
    StrAddr = $370
    for j = 0 to 2
    CharAddr = StrAddr + (80*j)
    for k = 0 to 79
    PeekCode CharAddr+k, x
    GOSUB DISPLAY

    next k
    next j
    RETURN

    Send_Back:
    StrAddr = $460
    for j = 2 to 0 step -1
    CharAddr = StrAddr + (80*j)
    for k = 79 to 0 STEP -1
    PeekCode CharAddr+k, x
    GOSUB DISPLAY

    next k
    next j
    RETURN

    '************************************************* ****************
    ' Introduction of Image *
    '************************************************* ****************

    @ org 370h

    Pokecode $00,$00,$00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$0 1,$01,$01,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00, $00,$00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$01,$0 1,$01,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00,$00, $00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$01,$01,$0 1,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00,$00,$00, $00,$01,$01,$01,$03
    Pokecode $00,$00,$00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$0 1,$01,$01,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00, $00,$00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$01,$0 1,$01,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00,$00, $00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$01,$01,$0 1,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00,$00,$00, $00,$01,$01,$01,$03
    Pokecode $00,$00,$00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$0 1,$01,$01,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00, $00,$00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$01,$0 1,$01,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00,$00, $00,$00,$01,$01,$01,$03,$00,$00,$00,$00,$01,$01,$0 1,$03,$00,$00,$00,$00,$01,$01,$01,$03,$00,$00,$00, $00,$01,$01,$01,$03



    -------------------------------------------
    It doesn't work. Why?
    Can you tell me about DB usage? How can I use it? I used ASM code (as I said above). Why didn't it work correct?
    Thanks alot

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

  3. #3


    Did you find this post helpful? Yes | No

    Default Thanks

    Thanks all.
    Regards

Similar Threads

  1. Lookup table syntax.....
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th May 2009, 04:45
  2. Lookup table or Math?
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 2nd May 2008, 17:55
  3. problem with USART
    By leemin in forum Serial
    Replies: 4
    Last Post: - 11th December 2006, 17:56
  4. Need help with lookup table or direct calculation
    By nverma in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 11th October 2006, 18:27
  5. Real Time Clock & Eeprom
    By smart_storm in forum General
    Replies: 8
    Last Post: - 17th February 2006, 19:03

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