#robotics Logs

Nov 28 2012

#robotics Calendar


01:05 rue_mohr its hard tho, cause all the jumps are relative, so every time you call it the offset is different
01:06 rue_mohr Triffid_Hunter, who would remap io runtime!?
01:07 Triffid_Hunter rue_mohr: heh I have when I was running sjfw
01:08 rue_mohr sjfw?
01:08 Triffid_Hunter yeah, a firmware that supports runtime pin remapping, amongst some other crazy stuff.. I reorganised my wiring loom without having to reset firmware, was awesome
01:09 rue_mohr hmm
01:49 Jak_o_Shadows I got some wheels!
01:49 Jak_o_Shadows not a car, some small plastic wheels.
03:55 Tom_itx Triffid_Hunter, no i don't think i have
03:56 Tom_itx this came about while seemecnc was trying to wire up the ultralcd to a rambo board
04:06 Tom_itx if marlin is using it, i wonder why they had to add them to the arduino_pins.h then
04:06 Tom_itx (modified marlin for rostock)
04:21 Triffid_Hunter Tom_itx: probably because fastio doesn't have digitalWrite
20:51 rue_shop3 I just tore apart a hard motor and discovered something disturbing
20:51 rue_shop3 its just a bushing
20:55 Tom_itx and?
20:55 Tom_itx it's a cheap motor
20:57 rue_shop3 verry strange one
20:58 Tom_itx so
20:58 Tom_itx you gonna cnc your lathe when it comes?
21:23 rue_shop3 na
23:16 rue_mohr now, how do I test to see if a number is positive or negitive with only a jump if zero and jump if not zero command
23:17 DagoRed rue_mohr: binary search?
23:21 rue_mohr ... its a 16 bit integer
23:22 DagoRed I stand by my statement.
23:23 rue_mohr I would like to hear how you suggest that works
23:24 DagoRed Wait.... signed or unsigned integer?
23:24 DagoRed Because if it's a signed integer just look at the most significant bit.
23:24 DagoRed Bit mask and compare.
23:35 rue_mohr its a signed int
23:35 rue_mohr you cant look at bits
23:35 DagoRed Is it in C?
23:35 rue_mohr no its resembler
23:35 DagoRed You can still look at bits.
23:35 rue_mohr a assembly like thing I made up
23:36 rue_mohr there are no bitwise operations
23:36 rue_mohr 0 NOP
23:36 rue_mohr 1 IN IN->*X
23:36 rue_mohr 2 OUT V V->OUT
23:36 rue_mohr 15 HALT
23:36 rue_mohr 3 SETX V X = V
23:36 rue_mohr 4 SUBX V X = X - V
23:36 rue_mohr 5 TRAX A = X
23:36 rue_mohr 6 TRXA X = A
23:36 rue_mohr 7 LDAX A = *X
23:36 rue_mohr 8 STAX *X = A
23:36 rue_mohr 9 LDA V A = V
23:36 rue_mohr 10 SUBA V A = A - V
23:36 rue_mohr 11 JNZA V jump + V if A != 0
23:36 rue_mohr 12 JZA V jump + V if A == 0
23:36 rue_mohr 13 JNZX V jump + V if *X != 0
23:36 rue_mohr 14 JZX V jump + V if *X == 0
23:36 rue_mohr that is the whole instruction set
23:36 DagoRed Hmm
23:46 DagoRed rue_mohr: what chip is this for?
23:46 rue_mohr its not
23:47 rue_mohr its emulated
23:47 DagoRed ahh
23:47 rue_mohr I wanted a simple instruction set I could make self modifying code with
23:47 DagoRed Well I'm at a loss.