EasyManua.ls Logo

Sharp PYTHAGORUS - Page 56

Sharp PYTHAGORUS
92 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
48 | Page
3 IF FLG ( IF FLG , )
When the flag is set,
consider it as true and execute the next statement, else
execute the next line.
Ex: 10; IF FLG -,- GTO 15
11; A + 1 => A
15; A * B => C
Consider it true when FLG is set and execute from the
statement GTO 15”.
Consider it false when the FLG is reset and execute from
line 11;
Example:
execute statement: Y => LN (X
2
+ 
2
)
When X < 5 then skip next statement and instead, execute
the next line: Y => LN X
00; HLT X
01;  5 -,- LN (X * X + 1 + X * X)) => Y -,- GTO 3
02; LN X => Y
03; PRT Y
04; END END

Related product manuals