So I have this code and it won't assemble using the DCS7 compiler:

Code:


.nolist
#define TASM
#include "ti83plus.inc"
#include "dcs7.inc"
.list
.org progstart
.db $BB,$6D
INIT:
xor d
ret
jr Start
.dw $0000 ;No Description
.db $07,$00 ;always this string
.dw $0000 ;No Icon
.dw $0000 ;No ALEs
Start: ;main routines ;etc etc etc
ld a,0
A:
inc a
cp 250
jp c,A
ld l,a
ld h,0
B_CALL _DispHL
B_CALL _getKey
ret

What's wrong with this?
DocDe7 compiles fine, so....

By the way, this is the output that I get:

Code:


----------------------------------
   Doors CS Assembler\Compiler   
          Version 2.0         
     Written by Kerm Martian     
     http:\\www.Cemetech.net       
----------------------------------
----- Assembling Test for the TI-83/84 Plus...
Brass Z80 Assembler 1.0.4.11 - Ben Ryves 2005-2006
--------------------------------------------------
Assembling...
Error: Label 'Start' already defined. [zztemp.asm:17]
Error: Label 'ld' already defined. [zztemp.asm:18]
Error: Label 'a' already defined. [zztemp.asm:20]
Error: Label 'ld' already defined. [zztemp.asm:23]
Error: Label 'ld' already defined. [zztemp.asm:24]
Error: Label '_DispHL' already defined. [zztemp.asm:25]
Error: Label 'B_CALL' already defined. [zztemp.asm:26]
Error: Label '_getKey' already defined. [zztemp.asm:26]
Error: Label 'ret' already defined. [zztemp.asm:27]
Pass 1 complete. (1000ms).
Pass 1 failed, pass 2 therefore skipped.
Errors: 9, Warnings: 0.
Build failed.
 --+=====================+--
 --|    BinPac8x v1.2    |--
 --|   by Kerm Martian   |--
 --|   www.Cemetech.net  |--
 --|  admin@cemetech.net |--
 --+=====================+--
**Pass 1/1: .8xp Construction**
Error: Input file Test.bin was not found!
Total time: 0.0s
----- Test for the TI-83/84 Plus Assembled and Compiled.
TI-83 Plus version is Test.8xp
Don't indent the labels, so something like this

Code:

 Start:
 ....code....

would become

Code:

Start:
 .....code....

In other words, remove the space that you typed before all label names.
Is that the problem?
Did you try it and see if it worked?
I haven't indented the labels, and it still doesnt compile even with the most basic code (an immediate ret)
Oh sorry, my mistake. The problem is that you forgot to indent the code. All code must be indented, unless it's a label.
Gotta try that.
I was going to suggest the same thing: indent non-label code.
Thanks, that worked!
Good! It means my (second) hunch was correct despite not being an ASM programmer in the slightest. Very Happy

Too bad Souvik ninja'd me on this. I'd love to have solved an ASM related problem despite my non ASM programmer status Razz
That's why I've been telling you to indent your code in several other topics as well. Rolling Eyes Just hit tab before every non-label, non-#include line of code.
Yep, I know now why Razz
aeTIos wrote:
Yep, I know now why Razz
So is everything working properly with your code and the DCS SDK now?
  
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 1
» All times are UTC - 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