Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. (define (byte-hex)
  2.   (define input1 (read))
  3.   (define input2 (read))
  4.   (define input3 (read))
  5.   (define input4 (read))
  6.  
  7.   (define word (bitwise-ior (arithmetic-shift input1 24)
  8.                             (arithmetic-shift input2 16)
  9.                             (arithmetic-shift input3 8)
  10.                             (bitwise-and input4 #xffff)))
  11.  
  12.  
  13.   (display "cookie ")
  14.   (display word)
  15.   (newline)
  16.   )
  17.  
  18. (byte-hex)