You are not logged in.
Pages: 1
How do i make applications for the 83+ with dwedit.inc? Do i need a special compiler?
Offline
i downloaded it, and i got my program compiled, but it doesn't work in vti 3.0. I got it installed and all, but it only shows random pixels, like when you turn the TV to a blank channel.
What am i doing wrong now?
here is the first lines of my code with the app header and crap
.nolist
#define end .end
#define END .end
#define equ .equ
#define EQU .equ
#define gbuf PlotSScreen
#include "ti83plus.inc"
#define ProgStart $4000
.list
.org ProgStart
;.db t2ByteTok, tAsmCmp
appheader:
.db 080h,0Fh ;Field: Program length
.db 00h,00h,00h,00h ;Length=0 (N/A for unsigned apps)
.db 080h,012h ;Field: Program type
.db 01h,04h ;Type= Shareware, TI-83Plus
.db 080h,021h ;Field: App ID
.db 01h ;Id = 1
.db 080h,031h ;Field: App Build
.db 01h ;Build = 1
.db 080h,048h ;Field: App Name
.db "DESREALM"
.db 080h,081h ;Field: App Pages
.db 1
.db 080h,090h ;No default splash screen
.db 03h,026h ,09h,04h, 04h,06fh,01bh,80h ;Field: Date stamp- 5/12/1999
.db 02h,0dh,040h ;Dummy encrypted TI date stamp signature
.db 0a1h ,06bh ,099h ,0f6h ,059h ,0bch ,067h
.db 0f5h ,085h ,09ch ,09h ,06ch ,0fh ,0b4h ,03h ,09bh ,0c9h
.db 03h ,032h ,02ch ,0e0h ,03h ,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 80h,7Fh ;Field: Program Image length
.db 0,0,0,0 ;Length=0, N/A
.db 0,0,0,0 ;Reserved
.db 0,0,0,0 ;Reserved
.db 0,0,0,0 ;Reserved
.db 0,0,0,0 ;Reserved
Last edited by leofox (2005-02-08 7:29:29 am)
Offline
It works now, i forgot i can't use SMC in apps, and that i have to copy the text strings to ram before i could use text routines.
Offline
okay, i though i'd make a 2 page app, no problem... I was wrong.
I downloaded your appdev kit, and created a 2-page app. I followed the example of the hello world programs.
But it STILL doesn't work :( . It compiles correctly, it's 2 pages on VTI and flash debugger, but it crashes. I figured out that it crashes right after the call to the second page. This is my code on the first page:
.nolist
#define end .end
#define END .end
#define equ .equ
#define EQU .equ
#define APPPAGES 2
#define APPNAME "DesRealm"
#include dwedit.inc
ld hl,AppVarName3
rst 20h
ld hl,20000
rst 28h \ .dw 4E6Ah ;create appvar
INC DE
INC DE
LD (mappointer),DE
LD HL,mapdata
ld bc,15000
ldir
;jr quit
b_call(_desrealmPage2)
quit:
bjump(_JForceCmdNoChar)
Appvarname3:
.db AppVarObj,"MAPBUF",0
#include mapdata.inc
_desrealmPage2 = $ - $4000
.dw $4000 ;Offset of routine of second page...
.db 1
Mappointer equ SaveSScreen+2
.end
.END
And this is the beginning of the second page:
.nolist
#define end .end
#define END .end
#define equ .equ
#define EQU .equ
#DEFINE NOAPPHEADER
#INCLUDE "DWEDIT.INC"
JP desrealmpage2
desrealmpage2:
Thanks in advance!
Last edited by leofox (2005-07-17 11:17:53 pm)
Offline
The second page. I copied that from hello and hello2, just changed the name.
Last edited by leofox (2005-07-17 10:44:44 pm)
Offline
oh, that jr was to test if it was the b_call the freaked out or the other code. There's supposed to be a semicolon in front of it
*edits*
Offline
Ah, i found the problem. I had my stupid 20K map stuck on page 2... i deleted that and now it works fine.
But i have another question. You ported apack to z80 right? Well, i downloaded it, and created a compressed file, but it's .bin. How do i use .bin in my apps? Do i need to convert it to .db stuff?
Offline
Here's the tool I use: http://home.comcast.net/~alanweiss3/dwe … in2z80.zip
"We are merely sprites that dance at the beck and call of our button pressing overlord."
Online
Pages: 1