The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
When ISZ/DSZ > ISG/DSE
05-23-2019, 11:51 PM
Post: #1
When ISZ/DSZ > ISG/DSE
Ran across something interesting (to me at least) in an HP KeyNotes issue.

The situation was on the HP-67, the I register contained either a zero or one. Goal was to use ISZ/DSZ to switch it. Think of it as a brain-teaser:

"The X register contains either a zero or one. Flip the value without using any digit keys or X=? test conditionals."

The solution presented was...

ISZ
DSZ
DSZ
ISZ

which works. Then I started thinking. That's hard to do on the HP41 style structure.

ISG won't work here. Thoughts?

Try it on your HP67 or an emulator and help me think through how to do it this way on an HP41. No X=Y? or X=0? conditionals allowed. :-)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
When ISZ/DSZ > ISG/DSE - Gene - 05-23-2019 11:51 PM
RE: When ISZ/DSZ > ISG/DSE - Thomas Okken - 05-24-2019, 12:00 AM
RE: When ISZ/DSZ > ISG/DSE - rprosperi - 05-24-2019, 01:08 AM
RE: When ISZ/DSZ > ISG/DSE - Gene - 05-24-2019, 12:44 AM
RE: When ISZ/DSZ > ISG/DSE - Paul Dale - 05-24-2019, 04:10 AM
RE: When ISZ/DSZ > ISG/DSE - Andres - 05-24-2019, 12:59 PM
RE: When ISZ/DSZ > ISG/DSE - Thomas Okken - 05-24-2019, 02:35 PM
RE: When ISZ/DSZ > ISG/DSE - Andres - 05-28-2019, 09:41 PM



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