yasser hassani
- 9th March 2008, 07:05
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
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.