• Subject: RE: U1-8 Switches: Similar to *LDA ?
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Thu, 12 Apr 2001 13:28:20 -0500 (CDT)


On Thu, 12 Apr 2001, Buck Calabro wrote:
>
> Then again, this thread was about 8 characters worth of UPSI.  You can't
> readily pass more than 256 bytes of "parameter data" with switches anyway,
> and decoding THAT would be a chore!
> nU1 nU2 nU3 nU4 nU5 nU6 nU7 nU8 = choice 0
> nU1 nU2 nU3 nU4 nU5 nU6 nU7  U8  = choice 1
> nU1 nU2 nU3 nU4 nU5 nU6  U7 nU8  = choice 2
> etc...
> 

That'd be 256 possible VALUES, but only one byte :)

Believe it or not, I've seen programs that actually DO this,
treating switches as bits, and making a byte from them.

Seems like a lot of horsing around just to avoid using parameters
or the LDA! :)



+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.