Post Reply 
(33s) Implementation of NOT Function
08-09-2022, 08:19 AM
Post: #1
(33s) Implementation of NOT Function
Takes any number N from stack and returns NOT(N).
Any number of absolute value not zero returns zero,
zero returns one.
Preserves stack.

Can anyone find a more economical version while preserving the stack?

Code:
1.    LBL N
2.    STO H
3.    CLx
4.    1-ABS(SGN(H))
5.    RTN

N: LN = 28
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(33s) Implementation of NOT Function - Gerald H - 08-09-2022 08:19 AM



User(s) browsing this thread: 1 Guest(s)