Locomotive BASIC
From CPCWiki - THE Amstrad CPC encyclopedia!
Revision as of 07:37, 27 September 2011 by HAL6128 (Talk | contribs) (Replaced content with "==== <code>NOT</code> ==== : '''NOT''' executes a bit for bit '''negation''' of the current value. The output is a 16-Bit-Word. : :'''Example:''' <pre> 10 value1=1 20 value2=...")
NOT
- NOT executes a bit for bit negation of the current value. The output is a 16-Bit-Word.
- Example:
10 value1=1 20 value2=NOT value1 30 PRINT value2 run -2
- for a better understanding...
10 value1=1 20 PRINT HEX$(value1):PRINT BIN$(value1,8) 30 value2=NOT value1 40 PRINT HEX$(value2):PRINT BIN$(value2,8) run 1 00000001 FFFE 1111111111111110