12Me21
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
-
oh right it'll never reach 32767 since it rounds down...
-
Ooooo nice another R16K save :D Good job +1
-
It stops at 32766. You should edit the sign (or the program) :P
-
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
-
Also, try adding a huge start button.
-
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
-
Lol tfw you can fit the whole code in the desc. Very damn nice!
-
Binary search. Nice.
-
Indeed, 32767 does not work. 0 does, though.
-
Picked 32767. Does not guess.