#avr Logs

Aug 31 2021

#avr Calendar

03:16 AM specing_ is now known as specing
10:40 AM gogo2464: Hello. I am contributing to a disassembler. Is it possible to write all the following registers in the form out REGISTER, WHTAYOUWANT; with the following registers instead https://github.com/vancegroup-mirrors/avr-libc/blob/06cc6ff5e6120b36f1b246871728addee58d3f87/avr-libc/include/avr/common.h#L155
10:41 AM gogo2464: with the follozing registers operand instead of the HERE: https://github.com/vancegroup-mirrors/avr-libc/blob/06cc6ff5e6120b36f1b246871728addee58d3f87/avr-libc/include/avr/common.h#L155
10:41 AM gogo2464: please
10:41 AM gogo2464: thank you
11:05 AM gogo2464: hi
11:05 AM twnqx: i guess noone here understands what you're actually asking...
11:05 AM gogo2464: ah
11:06 AM twnqx: i surely don't
11:06 AM gogo2464: twnqx could you specify why please?
11:06 AM gogo2464: ok letr's try again
11:07 AM gogo2464: what is the valid registers operand after an out instruction in AVR?
11:07 AM gogo2464: twnqx did I do it? :D
11:08 AM twnqx: isn't all I/O on AVR memory mapped, and thus has no "out" instruction?
11:09 AM gogo2464: twnqx I am sure out instruction exists in avr. I read it in a book on atmega328p (for arduino uno)
11:10 AM twnqx: right
11:10 AM twnqx: i am wrong
11:12 AM exp: gogo2464: do you mean IN for writing registers?
11:12 AM exp: if so, yes i think all _SFR_IO tagged values are acceptable
11:13 AM exp: that'd be the first 64 bytes of space right?
11:14 AM gogo2464: exp no I mean out
11:14 AM qu1j0t3: gogo2464: folio 134, http://ww1.microchip.com/downloads/en/devicedoc/atmel-0856-avr-instruction-set-manual.pdf
11:14 AM exp: gogo2464: OUT writes io space from registers
11:14 AM gogo2464: because I am disassembling this instruction
11:16 AM exp: yes see page 134 of what qu1j0t3 linked
11:16 AM exp: 6 bits for the io location, 64 bytes total
12:00 PM gogo2464: q1j0t3 http://ww1.microchip.com/downloads/en/devicedoc/atmel-0856-avr-instruction-set-manual.pdf yes but my job consist to tel explicitelyu to the disasembler whate register is used by converting the operand 0x3f to the register here sreg.
12:00 PM gogo2464: I have to go can I come back in one or 2 hours please?
12:01 PM exp: gogo2464: you'll need to know the exact mcu
12:01 PM exp: but if your dissasembler can parse header files, that should be enough
02:00 PM gogo2464: exp no I need to know the first operand of out instruction and I need to compare
02:01 PM qu1j0t3: i don't really understand what you want.
02:02 PM gogo2464: qu1j0t3 to understand better you can check my code. I want to add more cases. https://github.com/radareorg/radare2/pull/19022/files#diff-41256103f314492ae825581fd7dcb5111389a66657288c3fac20a02267d04c28R164
02:58 PM GNUcifer is now known as cehteh
03:16 PM specing_ is now known as specing
03:35 PM gogo2464: qu1j0t3 do yiu understand?
04:10 PM gogo2464: exp do you understand metoo?
04:28 PM gogo2464: for example as here https://github.com/vancegroup-mirrors/avr-libc/blob/06cc6ff5e6120b36f1b246871728addee58d3f87/avr-libc/include/avr/common.h#L155 can I do out ecr, r13 ?
04:36 PM gogo2464: qu1j0t3