TI-86 System Flags; ; version : 9/25/97 ; SYSTEM FLAGS: ------------ This section of ram that is used for bit flags. The TI-86 accesses these flags through the Z80's "IY" register. The "IY" register is set to the start of this flag area on and doesn't change, this is done for easy bit manipulation. EX: set trigdeg,(iy+trigflags) "trigflags" is the byte offset from the start of the flag area. Some interesting system flags you might want to use are listed here with the information needed to support basic ASM programming on the TI-86. The values for these symbols are included in the include file "TI86ASM.INC". FLAG NAME IY OFFSET EQUATE DESCRIPTION ------------------------------------------------------------- trigdeg trigflags 0 = radians; 1 = degrees plotloc plotflags 0 = graph writes to display and backup buffer 1 = write to display only plotdisp plotflags 0 = graph screen not in display 1 = graph in display grffuncm grfmodeflags 1 = function graph mode grfpolarm grfmodeflags 1 = polar graph mode grfparamm grfmodeflags 1 = parametric graph mode grfdifeqm grfmodeflags 1 = differential equation graph mode graphdraw graphflags 0 = graph is "clean"; 1 = graph is "dirty" graphcursor graphflags 0 = graph cursor is off; 1 = graph cursor on on grfdot grfdbflags 0 = line mode; 1 = dot mode grfsimul grfdbflags 0 = sequential graph draw 1 = simultaneous graph draw grfgrid grfdbflags 0 = no graph grid; 1 = draw grid grfpolar grfdbflags 0 = show rectangular coordinates 1 = show polar coordinates grfnocoord grfdbflags 0 = show graph coordinates 1 = no grapg coordinates grfnoaxis grfdbflags 0 = draw axis; 1 = no axis grflabel grfdbflags 0 = no graph labels; 0 = show graph labels textEraseBelow textflags 1 = erase line below small font write textScrolled textflags 1 = screen scrolled after writing to it textInverse textflags 1 = write in reverse video onRunning onFlags 1 = calculator is running onInterrupt onFlags 1 = [on] key interrupt occurred statsvalid statflags 1 = stat results are valid fmtExponent fmtFlags 1 = exponential display mode fmtEng fmtFlags 1 = engineering display mode curAble curFlags 1 = cursor flash enabled curOn curFlags 1 = cursor is showing curLock curFlags 1 = cursor is locked off appTextSave appFlags 1 = save chars written in textshadow appAutoScroll appFlags 1 = auto-scroll text on last line indicRun indicFlags 1 = run indicator ON indicOnly indicFlags 1 = interrupts will only update runindicator tor and not flash the cursor or APD shift2nd shiftFlags 1=[2nd] has been pressed shiftAlpha shiftFlags 1=[ALPHA] has been pressed shiftLwrAlph shiftFlags 1=lower case, 0=upper case shiftALock shiftFlags 1=alpha lock has been pressed textwrite new_grf_flgs 1 = small font writes to graph backup buffer TI-86 Assembly Programming |
(c) Copyright 1998 Texas Instruments Incorporated. All rights reserved.