Author Topic: 4 Bit Homemade Computer  (Read 18487 times)

0 Members and 1 Guest are viewing this topic.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #30 on: April 10, 2011, 05:04:05 pm »
If it's in base 4, shouldn't they be quits? ;)
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #31 on: April 10, 2011, 06:07:54 pm »
Meh, I don't really care about the naming convention. I got first place in the state science fair for it, though, and I  go to nationals in May! :w00t:

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #32 on: April 10, 2011, 06:10:50 pm »
I think there's a way to make an XOR gate with the three others once you have them made -- and I think it only uses one of each :). Though then again, wiring that IRL will still be tricky :P

Good luck will :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #33 on: April 10, 2011, 06:22:17 pm »
not in quaternary, the making that is. The easiest gate to make is OR, but NAND is pretty simple too. The real trouble with XOR is, how exactly will it work? The AND, OR and NOT are pretty simple, but XOR in base 4 gets a little tricky.

AND - Lesser input ex 2 and 1 = 1
OR - Greater input ex 1 or 3 = 3
NOT - Inverse of input ex not 0 = 3, not 1 = 2
XOR = ???

The real trouble comes with the expansion to a higher range of numbers.

And thanks :)
« Last Edit: April 10, 2011, 06:23:27 pm by willrandship »

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #34 on: April 10, 2011, 06:25:41 pm »
Yeah, an OR machine is by far the simplest -- you know all you need is a few wires tied together?  :) NOT is actually possible with tons if wires and rudimentary midway bits, but my friend got it to work (only like twice) with 2 bit operations :P

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #35 on: April 10, 2011, 06:30:19 pm »
Well, you need diodes.....otherwise you can get messed up signals behind the OR, and bad stuff happpens. :P Not only needs a few transistors....

Don't forget this isn't binary.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #36 on: April 10, 2011, 06:32:02 pm »
not in quaternary, the making that is. The easiest gate to make is OR, but NAND is pretty simple too. The real trouble with XOR is, how exactly will it work? The AND, OR and NOT are pretty simple, but XOR in base 4 gets a little tricky.

AND - Lesser input ex 2 and 1 = 1
OR - Greater input ex 1 or 3 = 3
NOT - Inverse of input ex not 0 = 3, not 1 = 2
XOR = ???

The real trouble comes with the expansion to a higher range of numbers.

And thanks :)


XOR isn't exactly what it looks like. It's actually true when the number of true inputs is odd and false when the number of true inputs in even. Try using that ;)
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #37 on: April 10, 2011, 06:35:40 pm »
so how will this thing give any way of output? I'm assuming definitely not by monitor or graphics.. so then what will it be?
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #38 on: April 10, 2011, 06:37:56 pm »
You mean mine?  Well, my friend lost interest and so did I after he did, but our old output system was literally just reading the magnets -- if they were on top, then that bit was 1, else 0.  Very rudimentary way of checking, but it worked :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #39 on: April 10, 2011, 06:41:49 pm »
Well, I've got a screen built into the assembly of mine. Remember when I was asking for 16x16 redscale sprites? It was for an emulator of this processor I wrote in python.

Right now, I can't actually think of a use for XOR anyways, and since the command set is full, I can't exactly fit it in. :P

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #40 on: April 10, 2011, 06:44:26 pm »
True, I guess XOR isn't always as useful as the other logics... But it is a good and easy way of resetting registers :) (in z80 specifically XOR A) but other than that, I don't use it as much personally -- and there's a way to achieve it anyways with the other logic instructions :)

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #41 on: April 10, 2011, 06:48:17 pm »
Well, heck, I can just go SetMx 0000 when I want my mem banks cleared. Other than that, all the functions either use said banks or are defined in the program, so I guess there aren't any registers X(

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #42 on: April 10, 2011, 07:04:23 pm »
What about attaching a xylophone or bells (metal version of a xylophone)?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Ashbad

  • Guest
Re: 4 Bit Homemade Computer
« Reply #43 on: April 10, 2011, 07:07:25 pm »
What about attaching a xylophone or bells (metal version of a xylophone)?

That actually would be extremely possible.  You could just implement the classic doorbell circuit, except instead of a high rate fapping piece of metal, it would be attached to a mallet.

Hark, what is that I hear?  The A register is equal to B flat?  :)
« Last Edit: April 10, 2011, 07:07:45 pm by Ashbad »

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: 4 Bit Homemade Computer
« Reply #44 on: April 10, 2011, 07:15:00 pm »
Bb? I heard A#.  :P

Anyways, this is a great project idea!  How would the programs be sent?  Would we have to manually set the bits?
« Last Edit: April 10, 2011, 07:15:15 pm by ralphdspam »
ld a, 0
ld a, a