[z88dk-dev] crt0_runtime_selection.asm printf flag 0x80000000

Bridge to the z88dk-developers mailing list
Post Reply
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] crt0_runtime_selection.asm printf flag 0x80000000

Post by alvin »

I spotted this change in the classic lib where 0x8000000 is picked up for:

+ ; bit 31 = $80000000 = enable flags handling

The most significant bit can't be used because the pragma parsing treats the 32-bit parameter as signed. With VS2010 compiling, strtol with a hex parameter will return the largest positive number (0x7fffffff) if that bit is set.



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Post Reply