I dunno what this program is going to do yet... Razz
I am an ASM noob so expect nothing of interest.
How about a RAM-clearing program that uses DCS headers/GUI?
lol Just Joking

Anyway, what is this program supposed to do(when you figure it out) ?
DCS7 already does that on it's own.

*Buh dum chhh*

I'm kidding, I've not had it bug out on me yet.
@souvik: I dunno yet... :c
Pseudoprogrammer wrote:
DCS7 already does that on it's own.

*Buh dum chhh*

I'm kidding, I've not had it bug out on me yet.
Glad to hear that. Actually, there's an entertaining GUI example in the SDK of which the primary purpose is to crash the calculator.
http://dcs.cemetech.net/index.php?title=GUI_API#Example_of_a_GUI_Program

And Raylin, I'm very happy to hear that you'll be entering the contest after all. Smile
My code keeps RAM clearing on me. Am I doing something wrong?


Code:


.nolist
#include "ti83plus.inc"
#include "dcs7.inc"
.list

   .org progstart
   .db $BB,$6D

Init:

   xor d
   ret
   jr Start

   .dw Description
   .db $07,$00
   .dw $0000
   .dw $0000

Start:

   call OpenGUIStack
   ld hl,myWin
   ld de,winButtons-myWin
   ld a,GUIRLargeWin
   call PushGUIStack
   ld hl,winButtons
   ld de,dataEnd-winButtons
   ld a,GUIRWinButtons
   call PushGUIStack
   ld hl,0
   call GUIMouse
   ret

exitMyProg:
   call ResetAppPage
   ret
Description:
   .db "Raylin's Contest Entry",0
myWin:
   .db 0,0,0,0,0
   .db "This is a test",0
winButtons:
   .db 00100000b
   .dw 0
   .dw 0
   .dw exitMyProg
dataEnd:
change .org progstart to .org progstart-2. Other than that, it looks good.
It just RAM cleared again. Even after the progstart-2. TT_TT
Raylin wrote:
It just RAM cleared again. Even after the progstart-2. TT_TT
That's odd, because that code compiles and executes fine for me... Sad

Edit: Except that it freezes on quit. Actually, in dcs7.asm, I have progstart defined as $9d95-2, so .org progstart should be fine...
Am I doing something wrong? I have Python 3.1.2 installed...
Raylin wrote:
Am I doing something wrong? I have Python 3.1.2 installed...
That should be fine. What's your program name? Are you using the compile.bat tool? Did you switch back to .org progstart? With that, your program works flawlessly for me.
My file name is test.asm.
I am using the compile tool.
I switched back to progstart.

Still RAM clears.
Raylin wrote:
My file name is test.asm.
I am using the compile tool.
I switched back to progstart.

Still RAM clears.
So you're running "compile test"? Can you post the output from the compile tool?
----------------------------------
----- Assembling test for the TI-83/84 Plus...
Brass Z80 Assembler 1.0.4.11 - Ben Ryves 2005-2006
--------------------------------------------------
Assembling...
Pass 1 complete. (1032ms).
Pass 2 complete. (444ms).
Writing output file...
Errors: 0, Warnings: 0.
Writing list file...
Done!
--+=====================+--
--| BinPac8x v1.2 |--
--| by Kerm Martian |--
--| www.Cemetech.net |--
--| admin@cemetech.net |--
--+=====================+--
**Pass 1/1: .8xp Construction**
Warning: Input file test.8xp exists, overwriting.
On-calc name: TEST
Total time: 0.0s
----- test for the TI-83/84 Plus Assembled and Compiled.
TI-83 Plus version is test.8xp
That looks fine too. Sad As a last resort, can you email me the created .8xp? I have no idea why it's crashing for you and not for me.
Sent to admin@cemetech.net.
Raylin wrote:
Your program as compiled ends after "This is a test",0. The entire following section is omitted:


Code:
   .db 00100000b
   .dw 0
   .dw 0
   .dw exitMyProg
dataEnd:
Are you sure it's in your source code? Are there any strange .end or END directives before that?
Absolutely none of those.

I have an exitMyProg label...

Does that count?
Raylin wrote:
Absolutely none of those.

I have an exitMyProg label...

Does that count?
If you're using my SDK, then you're also using the exact same compilation tools as me. :/ Can you email me your source code file as well, then, so I can examine that? I'm completely stumped.
Sent again. Same email address as before.
  
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
Page 1 of 5
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement