http://r0n.kuzew.net:81/tiKATE.png

Please take a look at that. For a couple months now I've been trying to compile a ti asm program on linux. I can compile something like a simple 'command' like ld, but the include file just doesn't want to work. Any ideas?
Mad
The required syntax looks something like this:

.nolist
#include "ti83plus.inc"
.list

You have to have the .nolist so it doesn't try to compile the contents of ti83plus.inc as commands.

Code:

.NOLIST
#define   EQU   .equ
#define   equ   .equ
#define   END   .end
#define   end   .end
#include "ti83plus.inc"
.LIST

     .org 9D93h
     .db $BB,$6D
      ld a,0
      ld (CURCOL),a
      ld (CURROW),a
      ld hl,text
      B_CALL(_PutS)
      ret
text:
      .db "Hello, World",0

.end
end


When I attempt to compile that with z80asm, this is the result:

ronnie@ubuntuBoxx:~/Programming$ z80asm ti.z80
ti.z80:1: command or comment expected (was .NOLIST )
ti.z80:2: command or comment expected (was #define EQU .equ )
ti.z80:3: command or comment expected (was #define equ .equ )
ti.z80:4: command or comment expected (was #define END .end )
ti.z80:5: command or comment expected (was #define end .end )
ti.z80:6: command or comment expected (was #include "ti83plus.inc" )
ti.z80:7: command or comment expected (was .LIST )
ti.z80:9: command or comment expected (was .org 9D93h )
ti.z80:10: command or comment expected (was .db $BB,$6D )
ti.z80:15: command or comment expected (was B_CALL(_PutS) )
ti.z80:18: command or comment expected (was .db "Hello, World",0 )
ti.z80:20: command or comment expected (was .end )
ti.z80:13: using undefined label CURROW
ti.z80:12: using undefined label CURCOL
*** 14 errors found ***
ronnie@ubuntuBoxx:~/Programming$
I think the compiler that you're using doesn't understand the TASM directives. Check its documentation.
Well, what other compiler would I be able to use?
secretservgy wrote:
Well, what other compiler would I be able to use?


Damn you are lazy. Kerm said read the documentation, not look for a new one, so how about you just read the documentation? Do a little investigating, some reading - you know, basic problem solving skills. If the compiler does something drastically different, then it will tell you and probably give you an example, but you can only find that out if you just go read the fucking documentation!!

And next time you ask for help with a program, do us all a favor and at the VERY least provide us a link to said program Rolling Eyes.
If you want an assembler that uses TASM directives, why not use TASM?
El Eye En You Ex.
secretservgy wrote:
Well, what other compiler would I be able to use?


SPASM




@Kerm: Double You Eye En Ee. not that best solution, but no reason it wouldn't work
  
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