General discussion

Discussion in 'General Off-Topic' started by Car crusher, Apr 4, 2014.

  1. Car crusher

    Car crusher
    Expand Collapse

    Joined:
    Nov 17, 2013
    Messages:
    199
  2. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    meh I have a weird taste in cars.

    back to talking about Cadillac's on auction sites.

    Gavril grand marshal lookalike

    http://www.trademe.co.nz/motors/used-cars/cadillac/auction-935891003.htm

    the challenge is to find the coolest looking Cadillac for sale.
     
  3. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Its kinda evolved into not so evil after all, just somewhat compact.

    Only arithmetic available is add and nand. Although its actually possible to cover all other arithmetic with just those 2 instructions.

    Should note, result is always saved to the first operand. Add r1 and r2 will add r2 *to* r1. Not so unusual.

    load r0 6
    load r1 5
    load r2 1
    nand r1 r1
    add r1 r2
    add r0 r1

    6 - 5 performed in simplest way possible without a native subtraction existing, when I get around to writing an assembler I may actually support the sub keyword anyway and just automatically generate a routine similar to the above.

    the OR of r0 and r1 (we'll just assume data loaded in already) performed without a native OR instruction?
    nand r0 r0
    nand r1 r1
    nand r0 r1

    or the then turn that into a NOR,
    nand r0 r0 again.

    Stacking of NAND logic allows all of the boolean operations to be made.
    Shift left, add something to itself.
    Shift right, subtract something from itself (requiring further logic compositing of course).
    Mul, add in a loop or shift left.

    Everything can be done, it just requires more instructions to do so.



    I doubt my instruction set would work in real hardware very nicely (particularly when it comes down to the seperate modes for the read/write instruction that cheat my 8 instruction cap), either that or the circuitry for such a limited chip would be somewhat overcomplicated, but it was just designed as a plaything that I would emulate, not as a real viable solution to a particular problem.
     
  4. Volvo

    Volvo
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    306
    My birthday ended 8 minutes ago..
     
  5. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    Happy late birthday.

    No mention of mine on forums, mostly because I dont give much of a damn myself.
     
  6. vmlinuz

    vmlinuz
    Expand Collapse

    Joined:
    Mar 2, 2014
    Messages:
    2,409
    Okay, now I'm making my own CPU architecture. 32 bit word, 16 (for now) bit address.
     
  7. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    worked on this some more.
    2.gif
     
  8. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    in a 32 bit word, should easily enough support 32 bit addressing, unless you're trying to encode all data in that single word which can work very nicely on a 32 bit machine. Its actually how x86 gets around the 16 bit word size, it often has instructions that are of variable length.
    I aimed to stick to an 8 bit word, but in reality I have variation. Hard to perform an 8 bit load while also using an 8 bit instruction word that I have to encode an opcode and destination register into.

    Just remember you dont always need direct memory to memory operations, usually just registers will suffice alongside a dedicated instruction for loading literals into registers and a pair of instructions for reading and writing to RAM. Maybe dedicated stack instructions too (although I have a workaround to allow a stack in my "design" without these instructions).
     
    #19468 SixSixSevenSeven, Aug 22, 2015
    Last edited: Aug 22, 2015
  9. CaffeinatedPixels

    CaffeinatedPixels
    Expand Collapse

    Joined:
    Oct 2, 2012
    Messages:
    184
    I decided to start playing Burnout Paradise again for shits and giggles. I expected to play it for about half an hour and then be done with it.

    I played it for 4 and a half hours. God help me.
     
  10. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    load r0 19
    load r1 7
    load r2 1
    nand r1 r1
    add r1 r2
    add r0 r1

    Hand assembled this to the machine code for my CPU, whacked it into the beginnings of my emulator. Checked the state of R0 upon completion, 12. 19-7 is indeed 12, subtraction works.
     
  11. vmlinuz

    vmlinuz
    Expand Collapse

    Joined:
    Mar 2, 2014
    Messages:
    2,409
    Thanks for the advice; there will now be 32 bit addressing. There will be 32 bit immediate values too. Multi word instructions will be a thing. Instruction format will be highly variable, just to piss off programmers.

    I implemented memory as a typedef'd union in C.

    Just implemented ldi16: load immediate 16 bit value to the accumulator. It uses one word.

    Thinking of modeling I/O after the VW Beetle of computers: the Digital PDP-8.

    I'll make a thread soon.
     
  12. redrobin

    redrobin
    Expand Collapse

    Joined:
    Aug 21, 2012
    Messages:
    606
    I just owned my Gold Nova 2 friend in some CS:GO deathmatch.

    He's a little salty with me.
     
  13. Koenigsegg

    Koenigsegg
    Expand Collapse

    Joined:
    Jun 24, 2014
    Messages:
    217
    Bought skyrim legendary for a descent price.. i hope it was worth it
     
  14. BlueScreen

    BlueScreen
    Expand Collapse

    Joined:
    Apr 5, 2014
    Messages:
    624
    >has 350 hours in skyrim

    it's ok
     
  15. Koenigsegg

    Koenigsegg
    Expand Collapse

    Joined:
    Jun 24, 2014
    Messages:
    217
    i wasnt sure because i heard there are no more updates and im not sure how much longer people will be modding the game



    also the place i bought it from only gets you a refund if you havent activated the key lol
     
  16. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958

    lol, should prove somewhat silly then.
    I was going to try a 32 bit vm at one point, but decided I'd try something small instead.
    I have done a 12 bit one before though, heavily based from the dcpu16, a dcpu12 if you will, sadly lost all code.
     
  17. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    is it me or have those Russian modders hacked into gabesters computer?
    dafuq.png
    and yes I occasionally download Russian mods.

    unless there's a Russian modder called Gabe.

    I thought this was worth sharing do not hate me because of this.
     
    #19477 ktheminecraftfan, Aug 22, 2015
    Last edited: Aug 22, 2015
  18. DWPro

    DWPro
    Expand Collapse

    Joined:
    Oct 12, 2012
    Messages:
    26
    what drug are you on?
     
  19. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    nothing I just like to point out small details

    the only thing wrong with me is that I have Asperger's (not that that is a problem)
     
  20. Atomix

    Atomix
    Expand Collapse

    Joined:
    Dec 15, 2012
    Messages:
    1,349

    (imported from here)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice