1
DF General Discussion / Re: PVS-Studio is free now for individual developers... Toady, please, I beg you
« on: December 03, 2016, 09:33:22 am »
Wow, good find! I'll definitely be using this for personal projects
March 6, 2024: Dwarf Fortress 50.12 has been released.
News: February 3, 2024: The February '24 Report is up.
News: February 4, 2021: Dwarf Fortress Talk #28 has been posted.
News: November 21, 2018: A new Threetoe story has been posted.
Forum Guidelines
Interesting.
However, there is no AND, nor NAND instruction.
If you add those two in addition to your XOR and NXOR instructions, you have enough to do basically anything involving logic, if in a round-about fashion, including performing arithmetic operations.
It might be worthwhile to research how older hard-wired instructions were implemented on real RISC chips-- however, the applicability of those implementations will be somewhat limited, given the unique restrictions of DF's physics, and the necessity to squeeze every tick of performance out of the implementation.
An idea I had floating around was to use basically Harvard style architecture, instead of von nueman, and have a special register that stores the "instruction" word, which then engages the appropriate logic for that instruction in a hardwired fashion. Instructions are stored in separate memory from data, as per harvard arch. This way you just put a binary value into the instruction register, and data into the appropriate data registers, and "things happen". Sadly, this means evaluating the instruction register, THEN performing the operation, which is more costly than your approach appears to be.
I still think harvard is better suited to DF's mechanics than von neuman though.
I think it lists every plant you've ever tried to gather (say you tried to gather a single lentil bush, but were unsuccesfull, it'll still list lentils as a possible plant)
x
s
p p p
p p p
p p p
p p p
p p s p p
p p s x s p p
p p s p p
p p p
p p p
Additionally, you can never train a particular kind of animal enough to domesticate the whole species.
Uh, so I downloaded that first file, (the pre-embark map) and... well my world looks nothing like the two pictures.
Did the file change? Or.. what happened?
EDIT: Second file is correct world. First file seems to be a new world?
Wow, what does your worldgen look like? Surely you're not using the default?