Data directives used in tasm

Defines an additional instruction. See TASMTABS.HTM. .addinstr instr args opcode nbytes rule class shift binor

BLOCK

Advances the instruction pointer a specified number of bytes without assigning values to the skipped over bytes. .block expr

BYTE

Inserts a byte value or series of byte values. .byte expr[,expr . ]

CHK

Calculates a checksum from a specified address up to but not including the address of the directive. The checksum is the least significant byte of the sum of all bytes. .chk address

DB

Alternate form of BYTE.

DW

Alternate form of WORD.

#DEFINE

See Day 3 for a full explanation of this directive.

DEFCONT

Adds to the last macro started with a DEFINE.

ECHO

Outputs a string or expression to the screen. .echo "string"
.echo expr

#ELSE

END

Signifies the end of the source file. .end

ENDIF

EQU

See Day 3 for a full explanation of this directive.

FILL

Fills a number of bytes with one value. If the value is ommitted the default value of 255 is used. .fill bytes[,value]

#IF

Assembles a block of code if the supplied expression evaluates as non-zero. Otherwise, the block of code following the #ELSE directive (if there is one) is assembled.

#if expression code [#else code] #endif

#IFDEF

Assembles a block of code if the supplied macro has been defined. If the macro has not been defined, then the block of code following the #ELSE directive (if there is one) is assembled.

#ifdef macro_name code [#else code] #endif

#IFNDEF

Exactly the same as #IFDEF, except the block of code is assembled if the supplied macro has not been defined.

#ifndef macro_name code [#else code] #endif

#INCLUDE

Reads the contents of the supplied file into the source file. #include "filename"

LIST

Turns on output to the listing file. .list

LOCALLABELCHAR

Defines the character used to designate a local label. .locallabelchar "character"

LSFIRST

Defines byte order for the WORD directive to be little-endian. .lsfirst

MODULE

See Day 3 for a full explanation of this directive.

MSFIRST

Defines byte order for the WORD directive to be big-endian. .msfirst

NOLIST

Turns off output to the listing file. .nolist

ORG

Sets the instruction pointer to the supplied value. .org expression

SET

Changes the value of a manifest constant. This directive often results in "label value misaligned" errors. symbol .set expression

TEXT

Assigns a sequence of bytes values based on an ASCII string. A zero is automatically added to the end. .text "string"

WORD

Inserts a word value or series of word values. .word expr[,expr . ] This is part of Learn TI-83 Plus Assembly In 28 Days
Copyright (c) 2002, 2003, 2004 Sean McLaughlin
See the file gfdl.html for copying conditions