Preliminary TI-86 ASM information


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

Preliminary TI-86 ASM information



OK! OK! I hear you ...

 ASM programming that is built into the TI-86 is very different from the syntax
that was
 experimented with on the TI-83. The TI-86 system design is also much more
complicated
 than that of the 83's. For that reason the documentation will be more complex
for TI to
 generate. This is an attempt to give those TI users with some ASM programming
experience with
 either the 85 or the 83 to have some fun as soon as possible. The information
provided here
 may not be enough for an ASM programmer who has not written any programs for
use on either the
 83 or the 85. A more detailed 'help' document will be generated sometime in
the near future.


 There are 3 commands on the TI-86 that deal with ASM programming :

    1) ASMPRGM
    2) ASM(
    3) ASMCOMP(

 These are located on the CATALOG menu screen.

 ASM programs are still entered into the 86 as Programs, like the 83.

 The 86 requires that the first command in an ASM program be ASMPRGM.
 Starting on the next line is the object code.

 NO OTHER SYNTAX IS REQUIRED.

 There is no 'End' command or 'Size' bytes like the TI-83 required.

 Ex:
         :ASMPRGM
         :CD824A
         :210300          :220FC0
         :215BD7          :CD374A
         :CD5F4A
         :C9
         :48656C6C6F20576F726C6400
;
;
; Below is the source code for the above object code
;
;
    org   _asm_exec_ram
;
    call    _clrscrn
    ld      hl,3
    ld      (_currow),hl     ; row 3 col 0
    ld      hl,hello_world
    call    _puts            ; write the msg
    call    _newline         ; move down a line
    ret                      ; return from program
;
hello_world:
    db      'Hello World',0

TO RUN THIS PROGRAM DO :

                           ASM(progname)
progname = NAME OF THE PROGRAM

That explains ASMPRGM,ASM(.

ASMCOMP( is a command that converts an ASM program from 'ASCII' storage
to 'HEX' storage and marks the program as protected.

This command will cut the storage needed for an ASM program in half.
For those that are familiar with the program 'SQUISH' for the 83 then
you know already.

You only need this for large programs.

syntax :  ASMCOMP(prog1,prog2)

          prog1 = name of 'ASCII' type ASMPRGM
          prog2 = outputted 'hex' version of prog1.

You execute these programs with the ASM( command also.

I have attached an include file with some needed equates.
Most of these are similar to the TI-83's.

This information is intended for experienced TI ASM programmers,
more detailed info will follow.

For those who know how to use this info feel free to post your own help
documents on graph ti and your web sites.

Later,
Pat

ti86asm.inc


Follow-Ups: