• 0

    posted a message on Write a program to run on my minecraft computer!(save is up)
    I think what we have here is a 3 stage languages,

    a binary level -> just as HEX numbers and executable to LazCraft's CPU
    Assembly level -> as only replace the operation into STOREm, ADDm, etc. like GICodeWarrior
    Compiler level -> Like any other programming language they can be compile into binary level, or reduce to assembly. aadnk's program is like a compiler already, since it mask real memory locations, and rearrange some low level syntax

    Since the codes themselves are relatively simple right now, we should stick to a standard assembly level language, but as for compiler level language, You can make them what ever you like, as long as they can be translate to assembly codes, Just remember to build a good compiler.

    I also recommend aadnk's program to have a new separate window that shows now binary but assembly codes. And If really try to build a "compiler". First, since the byte follows operation NOT, OUT, are unused, so the compiler should take advantage about that and place variable there first, instead of at the end. It should be easy to do, just scaning the codes and filling blanks with variable. Memory is precious, precious in Minecraft.
    Posted in: Survival Mode
  • 0

    posted a message on Write a program to run on my minecraft computer!(save is up)
    This code really is quite literally a memory dump.

    If this operation is done by some kind of OS process, and read pointers in other part of the memory, it behaves just as a copy-paste. And once we hook up with the I/O, and insert some malicious codes between them, and we get a real minecraft virus.
    Posted in: Survival Mode
  • 0

    posted a message on Write a program to run on my minecraft computer!(save is up)
    I wonder if it's possible to write a quine program in this kind of constrain.

    I know you can certainly write a quine program using any Turing-complete language (and machine), Just not sure how small it can be. Giving 16 of sharing memory I would say quite impossible. But who knows?

    PS. A quine is a program that output itself (in this case a binary code sequence ). You may say it's kind of like a virus (not a computer virus as you think, that will require an OS), giving a machine a quine code, it output another quine for the second machine, and the next thing you know is minecraft filled with quine!!!
    Posted in: Survival Mode
  • 0

    posted a message on Write a program to run on my minecraft computer!(save is up)
    Fibonacci number generator
    ; Generating Fibonacci numbers 1,1,2,3,5... till exploring (e9=233),
    ; output from 1, unfortunately need 18 bytes, but still can run in the java simulator  
    LOADi 01
    OUT 00
    ADDi 00
    STOREm 03
    LOADm 01 
    STOREm 05
    LOADm 03
    STOREm 01
    BRA (11)
    Posted in: Survival Mode
  • To post a comment, please .