Descriptor()

PreprocessorOnly a function of the Preprocessor (Assembler)

The function returns the current position of the assembly descriptor, ie the current byte address in the flash memory, to which the assembly would have been translated to the assembly language code. With this function you can before changing the descriptor by the directive. „Org“ read the position and then restore.

Syntax:

  • constant = descriptor()

see also: Preprocessor (Assembler)

Example

.set OLD_CPC	= descriptor()/2 ;remember current position
.org		FOURTHBOOTSTART  ;take the following asm code from a new address
jmp		THIRDBOOTSTART
.org OLD_CPC                     ;Restore previous position
                                 ;following asm code is stored again from old address.