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.
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.
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).
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.
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.
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.
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
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.
is it me or have those Russian modders hacked into gabesters computer? 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.
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)