Dwedit's Board

Enjoy the board

You are not logged in.

Announcement

Welcome, fellow visitors from other websites!
Whenever you download a file, I'd appreciate it if you posted a nice "Thank You" message, then tell me which site you came from. Thanks.
- Dwedit

#1 2005-02-08 12:21:00 am

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Apps with dwedit.inc

How do i make applications for the 83+ with dwedit.inc? Do i need a special compiler?

Offline

#2 2005-02-08 7:05:03 am

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc

Go download "Dwedit's appdev kit" from ticalc.org


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#3 2005-02-08 7:27:41 am

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Apps with dwedit.inc

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

#4 2005-02-08 10:03:49 am

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc

The app header looks correct.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#5 2005-02-09 12:14:56 pm

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Apps with dwedit.inc

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

#6 2005-02-09 1:26:21 pm

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc

Yep... Welcome to the world of ROM and bankswitching.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#7 2005-07-17 8:56:07 am

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Apps with dwedit.inc

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

#8 2005-07-17 10:20:18 am

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc

What is _desrealmPage2?


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#9 2005-07-17 10:44:01 pm

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Apps with dwedit.inc

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

#10 2005-07-17 10:54:41 pm

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc

What call to the second page?  I see an unconditional jr in front of it.


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#11 2005-07-17 11:17:39 pm

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Apps with dwedit.inc

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

#12 2005-07-18 8:09:04 am

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc

I see no reason why it would crash... what else is on page 2?


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

#13 2005-07-18 10:20:48 am

leofox
Don Flamenco
Don Flamenco
From: Balmora
Registered: 2004-12-23
Posts: 262

Re: Apps with dwedit.inc

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

#14 2005-07-18 11:19:53 am

Dwedit
Princess Lapis of Sorcerland (Administrator)
From: Chicago
Registered: 2004-12-12
Posts: 938
Website

Re: Apps with dwedit.inc


"We are merely sprites that dance at the beck and call of our button pressing overlord."

Offline

Quick reply

Write your message and submit

Board footer

Powered by FluxBB