#garfield Logs

Jan 04 2024

#garfield Calendar

07:48 PM rue_mohr: polprog, https://github.com/emilio-a/SorpresaStateMachine/blob/main/ROM_dumper.ino which is your other language?
08:02 PM Tom_L: mitir%20cada%20x%20tiempo%0Achar%20*arg_uno%2C%20*arg_dos%2C%20*arg_tres%2C%20*arg_cuatro%2C%20*arg_cinco%3B%20%20%20%20%20%20%20%20%20%2F%2Fbuffer%20temporal%20multiuso%0Achar%20*copia_puntero%3B%0Achar%20**endptr%3B%0Auint16_t%20num_temporal%3B%20%20%2F%2Fnumero%20temporal%20para%20hacer%20barbaridades%20impunemente%0A%0A%2F%2Fcomandos%0Aconst%20char%20CMD_ECO%5B%5D%20PROGMEM%3D%22eco%22%3B%20%2F%2Fcomando%201%20%20e%3A%20eco%2C%20si%20re
08:02 PM Tom_L: cibe%20%27eco%27%20manda%20%22ok%22%0Aconst%20char%20CMD_R%5B%5D%20PROGMEM%3D%22r%22%3B%20%20%20%2F%2Fcomando%202%20%20r%3A%20read%0Aconst%20char%20CMD_W%5B%5D%20PROGMEM%3D%22w%22%3B%20%20%20%2F%2Fcomando%203%20%20w%3A%20write%0Aconst%20char%20CMD_G%5B%5D%20PROGMEM%3D%22g%22%3B%20%20%20%2F%2Fcomando%204%20%20g%3A%20goto%0Aconst%20char%20CMD_V%5B%5D%20PROGMEM%3D%22v%22%3B%20%20%20%2F%2Fversion%0A%0Avoid%20setup()%20%0A%7B%0AdigitalWrite(pin_
08:02 PM Tom_L: xOE_LATCH%2C%20LOW)%3B%20%20%20%2F%2F%20run%0AdigitalWrite(pin_xWR_RAM%2C%20HIGH)%3B%20%20%20%20%2F%2Fno%20voy%20a%20scribir%0AdigitalWrite(pin_xOE_RAM%2C%20LOW)%3B%20%20%20%20%20%2F%2Fsalida%20de%20ram%20habilitada%0A%20%20%0ApinMode(pin_A0%2C%20INPUT)%3B%0ApinMode(pin_A1%2C%20INPUT)%3B%0ApinMode(pin_A2%2C%20INPUT)%3B%0ApinMode(pin_A3%2C%20INPUT)%3B%0ApinMode(pin_A4%2C%20INPUT)%3B%0ApinMode(pin_A5%2C%20INPUT)%3B%0ApinMode(pin_A6%2C%20INPUT
08:02 PM Tom_L: )%3B%0ApinMode(pin_A7%2C%20INPUT)%3B%0ApinMode(pin_A8%2C%20INPUT)%3B%0ApinMode(pin_A9%2C%20INPUT)%3B%0ApinMode(pin_A10%2C%20INPUT)%3B%0ApinMode(pin_A11%2C%20INPUT)%3B%0ApinMode(pin_A12%2C%20INPUT)%3B%0ApinMode(pin_A13%2C%20INPUT)%3B%0ApinMode(pin_A14%2C%20INPUT)%3B%0ApinMode(pin_A15%2C%20INPUT)%3B%0A%0ApinMode(pin_xOE_LATCH%2C%20OUTPUT)%3B%0ApinMode(pin_xWR_RAM%2C%20OUTPUT)%3B%0ApinMode(pin_xOE_RAM%2C%20OUTPUT)%3B%0A%0ApinMode(pin_D0%2C%20I
08:02 PM Tom_L: NPUT)%3B%0ApinMode(pin_D1%2C%20INPUT)%3B%0ApinMode(pin_D2%2C%20INPUT)%3B%0ApinMode(pin_D3%2C%20INPUT)%3B%0ApinMode(pin_D4%2C%20INPUT)%3B%0ApinMode(pin_D5%2C%20INPUT)%3B%0ApinMode(pin_D6%2C%20INPUT)%3B%0ApinMode(pin_D7%2C%20INPUT)%3B%0A%0ASerial.begin(9600)%3B%0ASerial.print(%22Ok%22)%3B%0ASerial.print(%27%5Cn%27)%3B%0A%7D%0A%0A%2F%2F--------%20rutina%20que%20chequea%20num%20en%20arreglo%20y%20convierte%20si%20no%20es%20mayor%20que%20coso%20
08:02 PM Tom_L: ---------%0Aint%20atoi_check(char%20*arreglo)%0A%7B%0Auint8_t%20contador%3D0%3B%0A%0Awhile%20(arreglo%5Bcontador%5D!%3D%27%5C0%27)%0A%20%20%7B%0A%20%20if%20(arreglo%5Bcontador%5D%3E%3D%270%27%20%26%26%20arreglo%5Bcontador%5D%3C%3D%279%27)%20contador%2B%2B%3B%0A%20%20else%20%7Bcontador%3D0%3B%20break%3B%7D%0A%20%20%7D%0Aif%20(contador!%3D0%20%26%26%20strlen(arreglo)%3C5)%20return(atoi(arreglo))%3B%20%20%2F%2Fsi%20el%20arreglo%20tiene%20menos
08:02 PM Tom_L: %20de%205%20lugares%20(9999)%20convierto.%20Si%20no%2C%20me%20jui.%0Aelse%20return%20(0xFFFF)%3B%0A%7D%0A%0A%2F%2F%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%20Funcion%20para%20leer%20una%20direccion%20de%20la%20RAM%20%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0Auint8_t%20lee_ram(uint16_t%20address)%0A%7B%0Auint8_t%20data%3B%0AdigitalWrite(pin_xOE_LATCH%2C%20HIGH)%3B%20%20%2F%2Fdeshabilito%20LATCH%0ApinMode(pin_A0%2C%20OUTPUT)%3B%0ApinMod
08:03 PM Tom_L: e(pin_A1%2C%20OUTPUT)%3B%0ApinMode(pin_A2%2C%20OUTPUT)%3B%0ApinMode(pin_A3%2C%20OUTPUT)%3B%0ApinMode(pin_A4%2C%20OUTPUT)%3B%0ApinMode(pin_A5%2C%20OUTPUT)%3B%0ApinMode(pin_A6%2C%20OUTPUT)%3B%0ApinMode(pin_A7%2C%20OUTPUT)%3B%0ApinMode(pin_A8%2C%20OUTPUT)%3B%0ApinMode(pin_A9%2C%20OUTPUT)%3B%0ApinMode(pin_A10%2C%20OUTPUT)%3B%0ApinMode(pin_A11%2C%20OUTPUT)%3B%0ApinMode(pin_A12%2C%20OUTPUT)%3B%0ApinMode(pin_A13%2C%20OUTPUT)%3B%0ApinMode(pin_A14%2
08:03 PM Tom_L: C%20OUTPUT)%3B%0ApinMode(pin_A15%2C%20OUTPUT)%3B%0Aif((address%20%26%200x01)!%3D0)%20digitalWrite(pin_A0%2C%20HIGH)%3B%20else%20digitalWrite(pin_A0%2C%20LOW)%3B%0Aif((address%20%26%200x02)!%3D0)%20digitalWrite(pin_A1%2C%20HIGH)%3B%20else%20digitalWrite(pin_A1%2C%20LOW)%3B%0Aif((address%20%26%200x04)!%3D0)%20digitalWrite(pin_A2%2C%20HIGH)%3B%20else%20digitalWrite(pin_A2%2C%20LOW)%3B%0Aif((address%20%26%200x08)!%3D0)%20digitalWrite(pin_A3%2C%
08:03 PM Tom_L: 20HIGH)%3B%20else%20digitalWrite(pin_A3%2C%20LOW)%3B%0Aif((address%20%26%200x10)!%3D0)%20digitalWrite(pin_A4%2C%20HIGH)%3B%20else%20digitalWrite(pin_A4%2C%20LOW)%3B%0Aif((address%20%26%200x20)!%3D0)%20digitalWrite(pin_A5%2C%20HIGH)%3B%20else%20digitalWrite(pin_A5%2C%20LOW)%3B%0Aif((address%20%26%200x40)!%3D0)%20digitalWrite(pin_A6%2C%20HIGH)%3B%20else%20digitalWrite(pin_A6%2C%20LOW)%3B%0Aif((address%20%26%200x80)!%3D0)%20digitalWrite(pin_A7
08:03 PM Tom_L: %2C%20HIGH)%3B%20else%20digitalWrite(pin_A7%2C%20LOW)%3B%20%20%20%0Aif((address%20%26%200x100)!%3D0)%20digitalWrite(pin_A8%2C%20%20HIGH)%3B%20else%20digitalWrite(pin_A8%2C%20LOW)%3B%0Aif((address%20%26%200x200)!%3D0)%20digitalWrite(pin_A9%2C%20%20HIGH)%3B%20else%20digitalWrite(pin&op=translate
08:03 PM Tom_L: woopsie
08:03 PM Tom_L: http://paste.debian.net/1303104/
08:28 PM rue_mohr: heh
08:29 PM rue_mohr: damn, I'm on call, I cant just drug myself to sleep
08:35 PM Tom_L: long day ehh
08:54 PM rue_mohr: with no sleep, yea