A83: Re: Flags


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

A83: Re: Flags




He-he...this is one of my tutorials.  Here's the program I wrote for the
tutorial:

.NOLIST
#define equ .equ
#define EQU .equ
#define end .end
#include "ti83asm.inc"
#include "tokens.inc"

.LIST
.org     9327h
  
  bit     trigdeg,(iy+trigflags)  ; Check for degrees.
  jr      z,radians
  ld      hl,0000h
  ld      (CURROW),hl
  ld      hl,DegText
  call    _puts
  call    _newline
  jp      quit
radians:
  ld      hl,0000h
  ld      (CURROW),hl
  ld      hl,RadText
  call    _puts
  call    _newline
quit:
  ret

degtext:  .db "Degrees Mode.",0
radtext:  .db "Radians Mode.",0

.end
.end


  ret
.end
.end

If you want, I can send you an early copy of the tutorial for you to look
at...its explained in better detail there.

James.

____________________

James Matthews.
E-mail (family):    matthews@tkb.att.ne.jp
E-mail (private):  james_matthews@hotmail.com

Homepage:  http://home.att.ne.jp/gold/tomcat21/index2.html
ICQ:  7413754
____________________________________

----------
> From: Chris A Brainerd <dj_ramen@juno.com>
> To: assembly-83@lists.ticalc.org
> Subject: A83: flags
> Date: Thursday, March 19, 1998 10:50 AM
> 
> 
> How do you test if a flag is set? Seems like it should be obvious...
> 
> Chris
> 
> 
> _____________________________________________________________________
> I'm, like, a product, OK, of american, you know, education, all right?
> DJ_Ramen@juno.com
> 
> _____________________________________________________________________
> You don't need to buy Internet access to use free Internet e-mail.
> Get completely free e-mail from Juno at http://www.juno.com
> Or call Juno at (800) 654-JUNO [654-5866]
> 


Follow-Ups: