beautypg.com

3 target, 4 carry, 10 qualifier keywords – Avago Technologies LSI53C1010 User Manual

Page 136: 1 dsarel, 2 from, 3 mask, Target, Carry, Qualifier keywords, Dsarel

background image

4-16

Using the LSI Logic Assembler NASM™

4.9.3 TARGET

By setting or clearing this bit, the SCRIPTS processor is placed in the
target or the initiator role. This must be done before the chip can execute
target or initiator specific operations, such as reselection. Usage:

SET TARGET

4.9.4 CARRY

This keyword checks the ALU Carry bit in the SCRIPTS processor to
determine which SCRIPTS routine to execute next. CARRY is not valid
if phase or data clauses are used in the same instruction. Register Move
(arithmetic) operations also affect the CARRY flag. Usage:

JUMP address, IF CARRY

4.10 Qualifier Keywords

Qualifier keywords are used in conjunction with action keywords to add
details about the instructions to be performed.

4.10.1 DSAREL

This keyword is only available in the LSI Logic devices that support Load
and Store instructions. It is used in Load/Store instructions to indicate
that the data to be loaded or stored is relative to the DSA register. This
keyword replaces the RELATIVE keyword, although NASM still supports
RELATIVE as well. Usage:

STORE NOFLUSH SCRATCHA0, 4 DSAREL (address)

4.10.2 FROM

This signifies use of table indirect addressing. It can be used with Block
Move or Select operations. Usage:

MOVE FROM address, WITH phase

4.10.3 MASK

This keyword allows selective comparison of specified bits with the SFBR
register. Any bits that are set in the mask byte eliminate the

This manual is related to the following products: