Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Guess the language!!!

Name: Anonymous 2012-10-27 12:38

package main
 
import (
        "big"
        "fmt"
        "os"
        "strings"
)
 
func main() {
        if len(os.Args) != 2 {
                fmt.Fprintf(os.Stderr, "Usage: %s <number>\n", os.Args[0])
                os.Exit(1)
        }
 
        number_str := strings.Replace(os.Args[1], " ", "", -1)
 
        number, ok := new(big.Int).SetString(number_str, 0)
        if !ok {
                fmt.Fprintf(os.Stderr, "Failed to convert %q to big integer.\n", number_str)
                os.Exit(1)
        }
 
        os.Stdout.Write(number.Bytes())
}

Name: Anonymous 2012-10-27 13:22

>>8
Erlang

>9
Rust

MOVEDOWN: LDY  #0
          LDX  SIZEH
          BEQ  MD2
 MD1:     LDA  (FROM),Y    ; Move a page at a time.
          STA  (TO),Y
          INY
          BNE  MD1
          INC  FROM+1
          INC  TO+1
          DEX
          BNE  MD1
 MD2:     LDX  SIZEL
          BEQ  MD4
 MD3:     LDA  (FROM),Y    ; Move the remaining bytes
          STA  (TO),Y
          INY
          DEX
          BNE  MD3
 MD4:     RTS

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List