• Someone run this:

    From Amcleod@VERT to All on Thu Jun 22 23:25:32 2000
    Please somebody - run this BAJA mod and give me the results that it displays:

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    I'd appreciate it!
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Digital Man@VERT to Amcleod on Fri Jun 23 07:37:30 2000
    RE: Someone run this:
    BY: Amcleod to All on Fri Jun 23 2000 06:25 am

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    CRC16 / 32 of [The quick brown fox jumps over the lazy dog.] = 58035 / 1368401385
    Thanks, digital man!

    :-)
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Amcleod@VERT to Digital Man on Fri Jun 23 13:27:52 2000
    RE: Someone run this:
    BY: Digital Man to Amcleod on Fri Jun 23 2000 02:37 pm

    CRC16 / 32 of [The quick brown fox jumps over the lazy dog.] = 58035 / 1368401385
    Thanks, digital man!

    Yay! Thanks muchly, @SYSOP@ ;-)
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Beta@VERT to Amcleod on Fri Jun 23 17:02:00 2000
    RE: Someone run this:
    BY: Amcleod to All on Fri Jun 23 2000 06:25 am

    Please somebody - run this BAJA mod and give me the results that it displays

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    I'd appreciate it!

    Do you realize how much time I spent thinking up that code????? Your's is nicer, but mine worked... :) Here

    The quick brown fox jumps over the lazy dog.
    1368401385
    58035

    From this code

    !include sbbsdefs.inc
    int crc16 crc32
    str bfox
    set bfox "The quick brown fox jumps over the lazy dog."
    CRC16 crc16 bfox
    CRC32 crc32 bfox
    print bfox
    print \r\n
    print crc32
    print \r\n
    print crc16

    And you know what? The Ver3 node shows a different output then my local ver 2.3 node... I'll post it's outputin a sec.. :)
    Beta

    This is what the ver 2.3 local node gives me for an output

    The quick brown fox jumps over the lazy dog.
    9705
    58035

    (Same code, go figure)

    ---
    Synchronet Synchronet, no other BBS had such cool mods!
  • From Amcleod@VERT to Beta on Fri Jun 23 23:49:43 2000
    RE: Someone run this:
    BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

    This is what the ver 2.3 local node gives me for an output

    The quick brown fox jumps over the lazy dog.
    9705
    58035

    (Same code, go figure)

    Uh-oh! This is not good. In fact this is evil! Different results for CRC32 on the same .BIN file? Baaaad!

    You better draw this to DM's attention!
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Amcleod@VERT to Beta on Fri Jun 23 23:52:04 2000
    RE: Someone run this:
    BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

    Do you realize how much time I spent thinking up that code????? Your's is nicer, but mine worked... :) Here

    The quick brown fox jumps over the lazy dog.
    1368401385
    58035

    Goody! My perl module agrees with your resolds (and DM's which were - obviously - the same). I guess that means I have not hosed up the conversion of his code, then!
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From John Guillory@VERT to DIGITAL MAN on Sat Jun 24 01:34:00 2000
    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    CRC16 / 32 of [The quick brown fox jumps over the lazy dog.] = 58035 / DM>1368401385
    Thanks, digital man!

    :-)
    For the clueless new sysop who is dieing to know, how do I execute a
    .bin from synchronet without having to add it to the menu? I've tried
    ;EXEC (* on renegade menus, then EXEC), but one time windows said an
    illegal operation occured, the next time it seemed to ignore the call...
    If you saved the above as test.src and compiled it to test.bin, do you
    use:

    ;exec test
    ;exec test.bin
    or something else?

    * SLMR 2.1 * "This is down. Down is good. This is up. Up is no." -

    ---
    Synchronet MainLine Consulting BBS //\/\\ (337) 431-7189
  • From John Guillory@VERT to BETA on Sat Jun 24 01:38:00 2000

    And you know what? The Ver3 node shows a different output then my local ver BE>2.3 node... I'll post it's outputin a sec.. :)
    Beta
    This is *Strange*, while there's many different ways of doing CRC16
    and CRC32, I'd expect the CRC16 and CRC32 to be the same identical
    routines used in both 2.3 and 3.0 ...


    * SLMR 2.1 * A rose is a rose, but a decent enchilada... Now you're ta

    ---
    Synchronet MainLine Consulting BBS //\/\\ (337) 431-7189
  • From Digital Man@VERT to Beta on Sat Jun 24 08:01:24 2000
    RE: Someone run this:
    BY: Beta to Amcleod on Sat Jun 24 2000 12:02 am

    Please somebody - run this BAJA mod and give me the results that it displ

    STR TQBF
    SET TQBF "The quick brown fox jumps over the lazy dog."
    INT C16 C32
    CRC16 C16 TQBF
    CRC32 C32 TQBF
    PRINTF "CRC16 / 32 of [%s] = %ld / %ld\r\n" TQBF C16 C32
    PRINT "Thanks, @SYSOP@!\r\n"

    I'd appreciate it!

    Do you realize how much time I spent thinking up that code????? Your's is nicer, but mine worked... :) Here

    The quick brown fox jumps over the lazy dog.
    1368401385
    58035

    From this code

    !include sbbsdefs.inc
    int crc16 crc32
    str bfox
    set bfox "The quick brown fox jumps over the lazy dog."
    CRC16 crc16 bfox
    CRC32 crc32 bfox
    print bfox
    print \r\n
    print crc32
    print \r\n
    print crc16

    And you know what? The Ver3 node shows a different output then my local ver 2.3 node... I'll post it's outputin a sec.. :)
    Beta

    This is what the ver 2.3 local node gives me for an output

    The quick brown fox jumps over the lazy dog.
    9705
    58035

    I think the problem is in your code. Use printf (like Angus' example) and you should see the same results on both versions.

    Rob
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Digital Man@VERT to John Guillory on Sat Jun 24 08:02:47 2000
    RE: Someone run this:
    BY: John Guillory to DIGITAL MAN on Sat Jun 24 2000 08:34 am

    For the clueless new sysop who is dieing to know, how do I execute a
    .bin from synchronet without having to add it to the menu? I've tried
    ;EXEC (* on renegade menus, then EXEC), but one time windows said an
    illegal operation occured, the next time it seemed to ignore the call...
    If you saved the above as test.src and compiled it to test.bin, do you
    use:

    ;exec test
    ;exec test.bin
    or something else?

    ;EXEC *test

    Rob
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Digital Man@VERT to John Guillory on Sat Jun 24 08:03:29 2000
    RE: Someone run this:
    BY: John Guillory to BETA on Sat Jun 24 2000 08:38 am

    This is *Strange*, while there's many different ways of doing CRC16
    and CRC32, I'd expect the CRC16 and CRC32 to be the same identical
    routines used in both 2.3 and 3.0 ...

    They are identical. The problem was in Beta's module.

    Rob
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Beta@VERT to John Guillory on Mon Jul 3 15:59:00 2000
    RE: Someone run this:
    BY: John Guillory to DIGITAL MAN on Sat Jun 24 2000 08:34 am

    For the clueless new sysop who is dieing to know, how do I execute a
    .bin from synchronet without having to add it to the menu? I've tried
    ;EXEC (* on renegade menus, then EXEC), but one time windows said an
    illegal operation occured, the next time it seemed to ignore the call...
    If you saved the above as test.src and compiled it to test.bin, do you
    use:

    Use
    ;exec*test
    Beta

    ---
    Synchronet Synchronet, no other BBS had such cool mods!