19.04.2015 Views

INTROL-C COMPILER REFERENCE MANUAL

INTROL-C COMPILER REFERENCE MANUAL

INTROL-C COMPILER REFERENCE MANUAL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

mb - Reserve Memory Bytes<br />

This directive, which is identical to the ds.b form of the ds<br />

directive discussed previously, is defined as follows:<br />

{} rmb {}<br />

The rmb directive causes the location counter to be incremented an<br />

amount specified by the expression in the operand field. This<br />

reserves an area in memory whose length, in bytes, is equal to the<br />

value of the operand expression. The memory area reserved by the rmb<br />

directive is uninitialized by the directive. The expression cannot<br />

contain external references, forward references, or undefined<br />

symbols. The label and comment fields are optional.<br />

xtable rmb 256 save 256 byte for xtable<br />

rmb 20 save 20 bytes for the stack<br />

stack<br />

data rmb 1024*4 save 4K for data area<br />

buffer.length equ 132<br />

buffer rmb buffer.length reserve buffer space<br />

set - Set Symbol To A Value<br />

This directive has the form:<br />

set {}<br />

The set directive assigns the value of the expression to the label.<br />

Function of the set directive is similar to that of equ except that<br />

labels defined using set can have their values redefined in another<br />

part of the program by using another set directive. The set<br />

directive is useful for establishing temporary or re-usable counters<br />

within macros.<br />

syn - Equate Labels<br />

This directive has the form.<br />

syn <br />

where is any previously defined symbol. This directive<br />

makes the first symbol synonomous with the second symbol. The new<br />

symbol has all the attributes of the original. Thus the user may<br />

redefine opcodes, register names, labels, or any other symbol.<br />

C.5.14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!