[A83] Re: 83+ compiling problems


[Prev][Next][Index][Thread]

[A83] Re: 83+ compiling problems




compiling problems? I mostly compile programs :-P

> Where do you learn how to do this?
>
> Wayne

Maybe appguru.
anyway, I always use these headers as a reference (they're easily
integrateble in textpad):

<!-- non-ion -->
.NOLIST
#define equ .equ
#define EQU .equ
#define end .end
#include "ti83plus.inc"        ;or just ion.inc
;#include "tokens.inc"
.LIST
#define bcall(xxxx) rst 28h \ .dw xxxx
#define bcallz(xxxx) jr nz,$+5 \ rst 28h \ .dw xxxx
#define bcallnz(xxxx) jr z,$+5 \ rst 28h \ .dw xxxx
#define bcallc(xxxx) jr nc,$+5 \ rst 28h \ .dw xxxx
#define bcallnc(xxxx) jr c,$+5 \ rst 28h \ .dw xxxx
#define bjump(xxxx) call 50h \ .dw xxxx
 .addinstr BCALL *       EF   3 NOP 1
saferam1 =9872h ;Ion-
progstart =9327h ;headers
 .org    progstart-2
        .db     $BB,$6D

begin:
<!-- /non-ion -->

<!-- ion -->
.nolist
#include "ion.inc"
.list
#ifdef TI83P
        .org    progstart-2
        .db     $BB,$6D
#else
        .org    progstart
#endif
        ret
        jr      nc,begin

        .db     "desc",0
begin:
<!-- /ion -->
>
> Tijl Coosemans wrote:
>
> > You forgot the $bb,$6d stuff
> >
> > --
> > NO ePATENTS! Freedom for Business, Freedom for Education, Freedom for
> > Health! eSign NOW! (http://petition.eurolinux.org/)
> >
> > > From: "SUCKER [Pieter Van Nuffel]" <sucker_pvn@hotmail.com>
> > >
> > > I have plenty of experience with compiling for the 83-,
> > > but now I want to take my most important programs to the
> > > 83+. When I compile a (squished) ION program, it works
> > > fine. But when I try a 'Asm(prgmTEST)' program, it gives
> > > a err:invalid. When I do 'prgmTEST' the calc gives err:version
> > >
> > > this is the program code (for test.z80)
> > >
> > > +-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >
> > > #define TI83P
> > > .nolist
> > > #include ion.inc
> > > .list
> > >
> > >     .org progstart
> > >
> > >
> > > bcall(_clrscrnfull)
> > > ld hl,txt
> > > bcall(_puts)
> > > bcall(_getkey)
> > > ret
> > >
> > > txt: .db "Test!",0
> > >
> > > .end
> > > END
> > >
> > > +-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >
> > > And this is in the batch file for compiling:
> > >
> > > +-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >
> > > @echo off
> > > echo ----- Assembling %1 for the TI-83 Plus...
> > > tasm -80 -i -b %1.z80 %1.bin
> > > if errorlevel 1 goto ERRORS
> > > devpac8x %1
> > >
> > > echo ----- Good job, now go test it out!
> > > echo TI-83 Plus version is %1.8xp
> > > goto DONE
> > > :ERRORS
> > > echo -----  there were errors, go back and fix it!
> > >
> > > :DONE
> > > del %1.bin
> > > del %1.lst
> > >
> > > +-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >
> > > I'm programming only for the 83+, so dont start about the
> > > #define TI83P stuff...
> > >
> > >       SUCKER [Pieter Van Nuffel]
> > >
> > >
> > > _________________________________________________________________
> > > MSN Photos is the easiest way to share and print your photos:
> > > http://photos.msn.com/support/worldwide.aspx
> > >
> > >
>
>





References: