• 0

    posted a message on Handling Negative Answers in a Calculator
    Quote from : Apocalypsing »
    I'm kinda confused about using the first bit as an indicator of negative answers: what if I do a calculation that makes use of the first bit (like 5-3, 5 = 0101) and gives a non-negative answer? Sounds like it would cause problems and accidentally convert non-negatives.


    I don't understand.
    > 1101 - 1110
    First use a modified XOR gate to figure out all 4 combinations of both sign bits.
    > +101 - +110
    To figure out which number is larger than which, use this:
    > The highest possible number with a signed 4 bit word is 1111, or +111.
    > Lookahead the size starting from the end of the word, as +001 is always higher than +110
    > Should there be the case where checking +111 and +011 happens and the first bit checked is 1, then move on to the next bit.
    If the numbers conform (i.e the minuend is bigger than the subtrahend), then continue on as normal subtraction, +101 - +110 = +010
    If the numbers don't, then switch up the numbers with mask circuitry and then invert the sign bit of the output.

    EDIT: Uhh what's two's complement subtraction?
    EDIT 2: I'm such an idiot with binary XD

    Never heard of that inverting thing you're talking about. I really don't have much knowledge about binary algorithms, so this might be very inefficient.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Handling Negative Answers in a Calculator
    Because of how the subtractor treats numbers and borrowing.

    16 bits give you a total of 65565 numbers, 2048 - 4096 = -2048.

    Since it cant get any lower than zero, it resets and becomes 65565 - 2048 as the answer.

    You solve this by making the numbers signed (using the first bit to denote if its positive or negative.) and solve it with a bit of extra wiring.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Understanding a Minecraft Computer!
    In a DFF, there is a specific input for write/data.
    In a RS-NOR, you can interchange them with either input.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Understanding a Minecraft Computer!
    A RS-NOR basically is this:
    Output 1 = R NOR(1) Output 2
    Output 2 = S NOR(2) Output 1
    Assuming Output 1 is already on, the signal will go to NOR(2) therefore making output 2 off.
    Say we put a signal on R, since there is no signal from either R or Output 2, it would be inverted and make Output 1 on in the first place.
    Once we apply the signal, 1 will be off and then since 1 off, there will be no more on inputs on NOR(2), which makes 2 on.

    EDIT: Nevermind, this .gif explains it better than me ^^


    A DFF is much much different. Its basically 1 bit memory by itself. The output will never change state unless there a signal on the write input.
    EDIT 2: Wow, I don't remember how long ago I have tried to make a calculator, I got bored and went on to pursue creative redstone. I have learned alot, more than enough to make a calculator, but you have got my will back to make one. Thank you.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Understanding a Minecraft Computer!
    Quote from sancarn

    Oh, by the way, computer craft is fairly enjoyable but best of all it teaches you how to program. Though this isn't what you want to do, it will tell you how computers work. For example if I have a turtle, (a moving computer), in the world and I give its own co-ordinate (x,y,z) and tell it to go to another co-ordinate (a,b,c) - It won't know how to reduce the x. It depends which way it's facing. So in order to find which axis is the x axis it first needs to check by moving a bit forward, then checking if its new co-ordinate reduced the x co-ord.

    I.e. a computer can't sense things unless you programme it to.

    I approve of this statement.
    A computer is complex, but the operations you can make it do can be just as complex.
    The approach to fixing programming problems can be applied to redstone problems.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Design Challenge: free-floating, self-powered flying machine!.
    Unless someone can come up with a discovery that really IS new, this thread is basically DEAD
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on A flat world with one of everyones designs.
    yeah but i didnt get minecraft legit so i cant join any of the servers you mentioned ^^
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Understanding a Minecraft Computer!
    Quote from DavidSuperHero

    i've build a computer in minecraft without building one in real life. Don't fully agree with you

    You didnt build one in real life but you KNOW how to build one in real life.
    Oh, and a subtractor is an indirect adder.
    Instead of 1 - 1, its 1 + -1
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on A flat world with one of everyones designs.
    I don't know, but maybe a chunk or more every creation?
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on [concept]grass/mycelium circuits
    You can do the same thing with water, sand, and torches, but grass/mycelium is interesting.
    You can try making a diode, but diode logic is more or less incomplete.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Understanding a Minecraft Computer!
    A half adder itself already adds two bits, but a full adder is designed to also calculate the carry ripppling from the other adder.
    So, if a half adder is a HALF adder, you put another HALF to make it FULL.(lol)
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Redstone Contest II (Revised)
    Rename the thread to:
    Most CREATIVE redstone creation contest.
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on What's the point of Curse Premium?
    Quote from GmZ
    ...I'd definitely look into the features you get once purchasing a subscription and if you do end up wanting to get Curse Premium, I would buy the yearly subscription(annual subscription), as it is well worth it.

    I don't find it worth it. ^^
    • ONE-CLICK ADDON UPDATE AND SYNC
    • SAVED GAME SYNC
    • ADDON SETTINGS BACKUP*
    • ADDON SYNC*
    • PREMIUM BANDWIDTH

    Why would I need that?


    Partner Discounts

    35% off J!NX gear (and many other great offers)

    I mostly don't buy new things anymore.

    Ad-Free Experience

    1. Someone writes a greasemonkey script to remove ads.
    2. AdBlock




    Premium Sweepstakes & Beta Keys

    Legendary loot & early access to betas

    There's usually a person who makes a client that can be used to play without a beta key/access. Just look at StarCraft II when it was beta, me and my brother EASILY found a client that indirectly launched the game and we could play.
    Posted in: Forum Discussion & Info
  • 0

    posted a message on [1.3.1] Custom Block Selection Box - *v2* Includes a new GUI
    Quote from awesomeness04

    Block health bar option? Like as you begin to break the block, the color slowly grows darker and darker until it is broken at black.

    Also would help if there was a separate menu for this so you could change the colors with the bar and have it appear in a sample box so you don't have to keep testing for the right color.

    Block Gradients* :3
    Posted in: Minecraft Mods
  • To post a comment, please .