#garfield Logs

Nov 13 2012

#garfield Calendar


21:49 rue_mohr what dd you do?
21:51 rue_mohr I'm calling my language resembler
22:00 TELunus|2 Cool. Sometime you should send me the instruction set.
22:00 rue_mohr typing...
22:04 TELunus|2 Well, what I know was that one night I booted into linux and everything was happy, and then last night I tried and it wouldn't let me start X.
22:05 rue_mohr opcodes:
22:05 rue_mohr 0 NOP
22:05 rue_mohr 1 IN IN->*X
22:05 rue_mohr 2 OUT *X->OUT
22:05 rue_mohr 3 v XSET V *X = V
22:05 rue_mohr 4 v YSET V *Y = V
22:05 rue_mohr 5 v XADD V *X = (*X) + V
22:05 rue_mohr 6 v YADD V *Y = (*Y) + V
22:05 rue_mohr 7 NEGX *X = -(*X)
22:05 rue_mohr 8 NEGY *Y = -(*Y)
22:05 rue_mohr 9 v ADDX V X = X + V
22:05 rue_mohr 10 V ADDY V Y = Y + V
22:05 rue_mohr 11 V XJNZ V jump to V if *X != 0
22:05 rue_mohr 12 V XJZ V jump to V is *X == 0
22:05 rue_mohr 13 V YJNZ V jump to V if *Y != 0
22:06 rue_mohr 14 V YJZ V jump to V is *Y == 0
22:06 rue_mohr 15 HALT
22:06 rue_mohr just X?
22:06 TELunus|2 The only thing I can think of is that either some of the updates I installed did something bad, or somehow the chroot I ran while setting up a linux from scratch system on my flash drive persisted after rebooting.
22:06 rue_mohr the idea is to use one of the pointers to modify the values for the instructions in the program, which is why all instruction values are literal
22:06 rue_mohr hmm, the console is there tho?
22:09 TELunus|2 I tried twice with different versions of the kernel, on one try I was able to log into root, and I ran startX, but nothing happend. On the other I don't think I even got that far, but I don't remember exactly what happend.
22:10 TELunus|2 I found it weird that It wouldn't accept my password for my normal user on the one that let me into root.
22:11 rue_mohr wait a sec, did you make a custom kernel?
22:11 rue_mohr what kinda drive?
22:13 rue_mohr TELunus|2, your job is to make an FPGA that implements the instructions :)
22:22 TELunus|2 Adata 32GB USB flashdrive. But I wasn't booting from it, it's not ready yet. One of the kernels was the one I built the other day, the other one was the one that came with Ubuntu.
22:23 TELunus|2 Ya I can program an FPGA to inplement a CPU, but I don't have an FPGA.
22:24 TELunus|2 But the same HDL code should be able to be built as an ASIC.
22:24 rue_mohr ooo we should try to get one of the big fancy fpga's I ahve going
22:24 rue_mohr their big and run at like 400Mhz
22:26 rue_mohr but io is a problem
23:08 rue_mohr not rully tested, but yay, it works!
23:08 rue_mohr 1 5 1 2 15
23:08 rue_mohr if I type in a it prints b
23:10 rue_mohr TELunus|2, want a copy :)
23:23 TELunus|2 Ya.
23:23 rue_mohr http://paste.debian.net/209098/