Post Reply 
Proof of X≤Y inverse to X˃Y
09-02-2018, 02:01 PM
Post: #13
RE: Proof of X≤Y inverse to X˃Y
(09-02-2018 01:52 PM)Gamo Wrote:  
Code:

08 X≤Y ?    // Line 08 to 10 test become  X>Y
09 X≤Y ?
10 X≤Y ?
11 GTO 01    // (False) number still less than 10 then loop and add

No it doesn't.

Take a closer look at the order in which your numbers are in the stack.

When execution reaches line 08, you have 10 in the Y register and your count in the X register. Of course you're going to keep counting with an X<=Y? command, it's blinking obvious.

If line 08 to 10 equated to X>Y? then you wouldn't loop until your count exceeded 10.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Proof of X≤Y inverse to X˃Y - Gamo - 09-01-2018, 08:40 AM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-01-2018, 12:57 PM
RE: Proof of X≤Y inverse to X˃Y - Gene - 09-01-2018, 08:27 PM
RE: Proof of X≤Y inverse to X˃Y - Gene - 09-01-2018, 02:04 PM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-02-2018, 01:29 AM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-02-2018, 01:52 PM
RE: Proof of X≤Y inverse to X˃Y - grsbanks - 09-02-2018 02:01 PM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-02-2018, 02:40 PM



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