New topic: 8 Little Endians
<http://forums.realsoftware.com/viewtopic.php?t=46272> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Nux Post subject: 8 Little EndiansPosted: Tue Dec 18, 2012 12:02 am Joined: Sat May 26, 2007 11:37 pm Posts: 48 Location: Tumwater, Wa Ok, I'm having problems getting the Decimal value to Binary Little Endian. I've tried memoryblocks, standing on my head, counting my toes, and no matter what I do, I can't get the Little endianness. I've got a Text field; called "oct", only allows numerical values, no greater than 255 I've got a method; that sets up the memoryblock at runtime: dim octmem as memoryblock octmem = newMemoryBlock(1) octmem.LittleEndian = true on a button action event: i set the value of the Memoryblock octmem MemoryBlocks.octmem = bin(oct.Text) I've also tried, other variations, but no matter what I can't get the binary to be little endian. unfortunalty, my brain works in Little endian, least significant bit first 1 2 4 8 16 32 64 128 0 1 0 1 when I see binary as big endian, Immedialty I think its wrong, 128 64 32 16 8 4 2 1 1 0 1 0 when both values are 10, any help would be greatly apprechaited. Thank you _________________ ⢠program, n.: A magic spell cast over a computer allowing it to turn one's input into error messages. tr.v. To engage in a pastime similar to banging one's head against a wall, but with fewer opportunities for reward Top timhare Post subject: Re: 8 Little EndiansPosted: Tue Dec 18, 2012 12:09 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 11894 Location: Portland, OR USA Endianness refers to byte order, not bits. If you want to reverse the bits, you'll have to code that manually. Top Nux Post subject: Re: 8 Little EndiansPosted: Tue Dec 18, 2012 12:16 am Joined: Sat May 26, 2007 11:37 pm Posts: 48 Location: Tumwater, Wa Thank you for confirming Timhare apprechaite your help _________________ ⢠program, n.: A magic spell cast over a computer allowing it to turn one's input into error messages. tr.v. To engage in a pastime similar to banging one's head against a wall, but with fewer opportunities for reward Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
