|
I may have mentioned this before (stop me if you've heard this one), but I took a class in 8086 assembler a few years ago. The teacher was a veteran of 8 bit machine words. When we got to base conversion he said: "When I want to convert decimal to hex or decimal to binary or vice versa, I always convert it to octal first." He could do it in his head about as fast as I can add one digit numbers. I relied on my calculator. > -----Original Message----- > From: John P Carr [mailto:jpcarr@tredegar.com] > Sent: Thursday, September 09, 1999 10:17 AM > To: RPG400-L > Subject: Re: New Opcodes - %SETCELL > > > /****************** Snip ********************************/ > > > Here's what's in the FCNTL member in the H source file in QSYSINC > > #define O_CODEPAGE 040000000 /* code page flag */ > #define O_TEXTDATA 0100000000 /* text data flag */ > > How'd you make the magic leap of knowing the above is > 8388608 ? BTW, are the above Octal by chance ? Why > yes they are !! Now it's very intuitive to everyone to convert > from Octal to Dec to make it work in RPG. > +--- | 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 mailing list archive is Copyright 1997-2025 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.