12Me21
12Me21
85 / 3
1st Jun 2017
7th Jun 2017
reset: MOV bx,0 MOV dx,50001 MOV ex,0 loop: MOV ax,bx ADD ax,dx @noflags MOV cx,0 ADC cx,0 SHRD ax,cx,1 SEND 0,ax ADD ex,1 WAIT cx CMP cx,2 JA toohigh JB toolow SEND 0,ex HLT JMP reset toohigh: MOV dx,ax JMP loop toolow: MOV bx,ax JMP loop
r16k1s60 pressstart memorydump program 60hz 16bit quiteuseless pressenterlumage

Comments

  • 12Me21
    12Me21
    1st Jun 2017
    oh right it'll never reach 32767 since it rounds down...
  • cmk20
    cmk20
    1st Jun 2017
    Ooooo nice another R16K save :D Good job +1
  • realbig
    realbig
    1st Jun 2017
    It stops at 32766. You should edit the sign (or the program) :P
  • R33sesK1ng
    R33sesK1ng
    1st Jun 2017
    This is very good! With this kind of programming, I bet you could make a computer that learns from its mistakes and thus some kind of game (like backgammon) could be made with this. +1
  • LBPHacker
    LBPHacker
    1st Jun 2017
    Also, try adding a huge start button.
  • LBPHacker
    LBPHacker
    1st Jun 2017
    You can get it even smaller tho by CMPing cx with 1 and using JA/JB to jump. 0 is below 1 and 2 is above 1 :P
  • LBPHacker
    LBPHacker
    1st Jun 2017
    Lol tfw you can fit the whole code in the desc. Very damn nice!
  • unit54
    unit54
    1st Jun 2017
    Binary search. Nice.
  • TheNik
    TheNik
    1st Jun 2017
    Indeed, 32767 does not work. 0 does, though.
  • handicraftsman
    handicraftsman
    1st Jun 2017
    Picked 32767. Does not guess.