You are here: Home → Forum Home → The Mac Observer Forums → Design & Create → Thread
Almost as good as a guru meditation message…
-
From http://osxbook.com/book/bonus/chapter7/binaryprotection/index.html - try this:
Create a c prog called dsmos.c with this in it:
main()
{
puts(-16 * 4096 + 0x1600);
}Compile it:
gcc -o dsmos dsmos.cRun it:
./dsmosLaugh!
:D
Signature
Laurie Fleming - the singing geek
@LaurieFleming
-
Classic!
I just did this within Xcode, and you are correct. The results are so typically Apple. I love it. :D
Signature
Just remember one thing….
-
Doesn’t seem to work on my G5. All I get is a seg fault. I did notice that the page linked mentioned intel Macs.
Signature
According to statistics, half the world is below average intelligence
"The power of accurate observation is commonly called cynicism by those who have not got it."-George Bernard Shaw
"You can’t change that by gettin’ all…bendy." -
[quote author=“dsmos kernel extension”]Your karma check for today:
There once was was a user that whined
his existing OS was so blind,
he’d do better to pirate
an OS that ran great
but found his hardware declined.
Please don’t steal Mac OS!
Really, that’s way uncool.
(C) Apple Computer, Inc.U??VWS?5PSignature
Laurie Fleming - the singing geek
@LaurieFleming
-
Yeah, I saw what it said on the original page. What I suspect is that the differences between how Intel x86 and IBM PPC do addressing prevent this trick from working on a PowerPC based Mac. I’d actually expect that to be the case.
Signature
According to statistics, half the world is below average intelligence
"The power of accurate observation is commonly called cynicism by those who have not got it."-George Bernard Shaw
"You can’t change that by gettin’ all…bendy."

