Bug Reports - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: General (http://qbasicnews.com/newforum/forum-6.html) +--- Forum: General/Misc (http://qbasicnews.com/newforum/forum-18.html) +--- Thread: Bug Reports (/thread-5202.html) |
Bug Reports - marzecTM - 12-02-2004 guess it's time for this thread... and vonGodric just found a neat one... try to compile the fmodtest.bas and check the asm source. on line 519-520 it tries to push ~ on the stack, dunno bout you but i don't know that register. have fun edit: one more D:\FREEBA~1>fbc examples\optargs.bas examples\optargs.o(.text+0x1d):fake: undefined reference to `FOO@12' examples\optargs.o(.text+0x26):fake: undefined reference to `BAR@8' uh oh..., ok it might be just a show off, but a n00b or that helium guy will complain... Bug Reports - VonGodric - 12-02-2004 this code is erronous. Code: defint a-z Bug Reports - v3cz0r - 12-02-2004 Alright, all fixed, thanks mates.. Version 0.02b uploaded, will start to release just patches soon ;) Bug Reports - SJ Zero - 12-02-2004 The right$ function isn't supposed to reverse the string. It's just supposed to return the characters starting X from the right, to the end. The current code doesn't run correctly in FB: Code: a$ = "Hell is a place on earth" I'll be checking more of the text functions sooner or later. For now I need to sleep. (edited because instr works, so I updated the program to show that) Bug Reports - v3cz0r - 12-02-2004 Fixed.. man, that was a stupid bug, i never used right$ for anything but getting the last character, no wonder it worked. Btw, runtime library was barelly tested, new surprises can appear.. that why i released a beta version ;) Bug Reports - Z!re - 12-02-2004 PRINT SPACE$(100) Or anything longer then the console widht... Makes it crash in windows 98 Bug Reports - Z!re - 12-02-2004 Code: dim a as long 4?, same as integer...? Bug Reports - v3cz0r - 12-02-2004 No clue, that space$(100) test works fine on XP, i can't believe Win 9x can't print more than 80 chars p/ time, didn't see that limitation at the SDK docs, ow. Yeah, an integer is 32-bit in FB, LONG is just an alias. If you really want a 16-bit integer, you have to declare them as "short" or "ushort" for unsigned ints. Using 16-bit integers would generate pretty bad code on new CPU's, size prefixes all the time. Bug Reports - Z!re - 12-02-2004 I meant that a long is supposed to be a long integer, thus, in freebasic it would mean 8bytes, or 64bit Bug Reports - Z!re - 12-02-2004 Is there a way to make PRINT Astring$ Work the same way as QB?, that is with wrap around etc? |