In addition to using "mov" to place an immediate value (like $2) into a register, or loading the contents of a register into another register, is there a way to "mov" or load a value into a hex memory address?
I have found the corresponding memory address for pin 8 and 9 on Arduino UNO from the data sheet. I am trying to perform a simple program from my command prompt (X86, Mac using linux docker image) that will put the value "00000011" into both addresses 0x24 and 0x25, thus doing both tasks of setting pin 8 and 9 as output, then output high to the same two pins with LEDs. All I want is to light them up.
I was under the impression that you could address a memory location like 0x24/0x25 easily by "loading" instead of "mov", or maybe even just by saying "mov" $0b00000011 to 0x24/0x25
When I do the "mov" version, my command prompt error is "segmentation fault", which means that the memory location is inaccessible or im addressing it wrong. I would try the "load" version if I knew the right name for that operation in x86.