[A83] Re: Op1 (Op2,Op3...)
[Prev][Next][Index][Thread]
[A83] Re: Op1 (Op2,Op3...)
This outputs 33195, whatever I put in X:
.NOLIST
#define equ .equ
#define EQU .equ
#define end .end
#include "ti83plus.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:
bcall(_RclX)
bcall(_FPSquare)
bcall(_ConvOP1)
ld (hl),a
bcall(_disphl)
ret
.end
END
Does someone know what's the problem?
>
>Hi everybody,
>I'm new to programming, and I want to know how to put a value in Op1 (or
Op2
>or Op3...). Can I just load them in a saferam variable? Should I make the
>variables more then 1 byte long?
>(I'm wanting to port FlashMandel from basic to asm. The original routine
was
>asm too, for the Amiga.)
>Also, is there a for-next routine in asm? Or should I do that with inc and
>cp?
>
>Thanx,
>Ronald.
>
>
>
>