This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
Tman


Newbie


Joined: 21 Dec 2008
Posts: 2

Posted: 21 Dec 2008 08:53:55 pm    Post subject:

I just started writing an app using ZDS and i can't get it to display my picture in the beginning, i have the following code

include "ti83plus.inc"

EXT_APP equ 1
cseg

db 080h, 00Fh
db 000h, 000h, 000h, 000h
db 080h, 012h
db 001h, 004h
db 080h, 021h
db 001h
db 080h, 031h
db 001h
db 080h, 048h
db "Formulas"
db 080h, 081h
db 001h
db 080h, 090h
db 003h, 026h, 009h, 004h
db 016h, 080h, 0F5h, 043h
db 002h, 00Dh, 040h, 0A1h, 06Bh, 099h, 0F6h, 059h, 0BCh, 067h
db 0F5h, 085h, 09Ch, 009h, 06Ch, 00Fh, 0B4h, 003h, 09Bh, 0C9h
db 003h, 032h, 02Ch, 0E0h, 003h, 020h, 0E3h, 02Ch, 0F4h, 02Dh
db 073h, 0B4h, 027h, 0C4h, 0A0h, 072h, 054h, 0B9h, 0EAh, 07Ch
db 03Bh, 0AAh, 016h, 0F6h, 077h, 083h, 07Ah, 0EEh, 01Ah, 0D4h
db 042h, 04Ch, 06Bh, 08Bh, 013h, 01Fh, 0BBh, 093h, 08Bh, 0FCh
db 019h, 01Ch, 03Ch, 0ECh, 04Dh, 0E5h, 075h
db 080h, 07Fh
db 000h, 000h, 000h, 000h
db 000h, 000h, 000h, 000h
db 000h, 000h, 000h, 000h
db 000h, 000h, 000h, 000h
db 000h, 000h, 000h, 000h

StartApp:
B_CALL RunIndicOff

Display_Image:
B_CALL GrBufClr
ld hl,splash
ld de,plotsscreen
ld bc,768
ldir
B_CALL GrBufCpy
B_CALL GetKey

Quit:
B_JUMP JForceCmdNoChar

splash:
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,001h,080h
...... ;first and last lines of the image
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h

.end

I ran the same code (without the application stuff) through TASM and got a RAM file which displayed the image fine, but when I switched to ZDS and added the application stuff it just turns on random pixels. Also ZDS does not seem to like $ as a hex prefix and gives me errors for alot of the two digit hex numbers. Can someone please tell me what's going on? Thanks for your help, this is driving me crazy.
Back to top
calc84maniac


Elite


Joined: 22 Jan 2007
Posts: 770

Posted: 21 Dec 2008 09:15:43 pm    Post subject:

Did you forget to set the .org to $4000? This would certainly explain why it's displaying garbage, because ld hl,splash would not point to the correct position in memory.

Last edited by Guest on 12 Jul 2010 01:38:53 am; edited 1 time in total
Back to top
Tman


Newbie


Joined: 21 Dec 2008
Posts: 2

Posted: 21 Dec 2008 10:18:10 pm    Post subject:

Cool thanks that fixed it. Can't believe I forgot to add that to the header when I switched it to an app haha.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement