FIXED (credit to Draco712 for fix). 29-bit computer. Play the number game for an easter egg! Credit to SandwichLizard for display concept (ID: 1620783) and arK for dmux design.
smart
processor
program
game
typewriter
electronics
adder
calculator
filt
computer
Comments
-
The compromise being that small numbers (say 5 x 15 for example), will also take 12 minutes. There might be a way to detect the bit length and reduce the time taken for smaller numbers.
-
If I implemented simple repeated addition, it would take the better part of 12 hours to calculate something like 18282 x 29839
-
Considering it's multiplying two 29 bit integers, at 1.5hertz, I would say it's pretty good speed. I would like to modify the implementation a little in the future to cut down on memory access, and possibly improve it to 5 minutes.
-
@Demoman200: http://en.wikipedia.org/wiki/Booth%27s_multiplication_algorithm
-
This is a very cool computer! A couple things to say: First, is there a processor instruction for the "easter egg"? How did you do that? Second, multiplication is pretty slow. Do you have a hardware multiplier or is it software (i.e. repeated addition)?
-
The script is explained as a comment, it basically takes a file of 30 1s and 0s after eachother and sets the ctype of the ROM FILT to that number.
-
Gotta find a way to get more space for defining instructions. Hmm. Maybe I can use the 30th bit. I don't think that could conflict with anything else, so long as I only use it for the control unit.What does the lua do?
-
Urumasi, that's something I was thinking about. I also want an instruction to write directly to RAM from user input without having to use a register as the RAM address. I just didn't have space, so I though that would be the more useful instruction, but it can be damn inconvenient when all you want to do is do a simple input.
-
Also since you have one instruction as reset which is gonna be removed, I'd like a way to write a constant to a registery so I don't have to write CONST -> RAM and then RAM -> REG
-
Cooked up a little lua script http://pastebin.com/4XVTqJ2j