Post Created date
C code meets assembler - And falls down
OP here again, if I'm still relevant... 8) 1st) Keep in mind the whole thing is a heavily edited version of the 'DualVirtualSerial' device from LUFA. I've whacked out one...
Tuesday, 5 April 2011 - 03:50
C code meets assembler - And falls down
david.prentice wrote:I am trying to be helpful. Does the polarity of your 'toggle' matter to you? Are you concerned about RMW or execution speed? David. I would like to say...
Monday, 4 April 2011 - 16:32
C code meets assembler - And falls down
Hey, if the chicks with the plastic tits dig it, I'm all for obfuscation. I'd like to ask you nicely - be helpful, or go away. Scroungre.
Monday, 4 April 2011 - 15:51
C code meets assembler - And falls down
david.prentice wrote:I cannot understand what part of any C generated code will fail. I can. It gives crap results where the assembler code works. Your understanding hasn't met...
Monday, 4 April 2011 - 15:41
C code meets assembler - And falls down
Or, alternately, give me lots more hints on inlining assembler code that accesses the SRAM. S.
Monday, 4 April 2011 - 15:38
C code meets assembler - And falls down
clawson wrote:Quote: I was told that writing code in C would be quicker than writing code in assembler. That only works if you are equally proficient in both C and Asm. That's...
Monday, 4 April 2011 - 15:31
C code meets assembler - And falls down
theusch wrote:Then why didn't you translate it directly? That's what I was trying to do. It didn't work. What did I do wrong? :?: S.
Monday, 4 April 2011 - 15:24
C code meets assembler - And falls down
theusch wrote:And here I thought this was going to be fun. Lee I was told that writing code in C would be quicker than writing code in assembler. I was wrong too. :-P The C code...
Monday, 4 April 2011 - 15:04
C code meets assembler - And falls down
abcminiuser wrote:To do that, pass --std=gnu99 on the command line to avr-gcc when compiling. - Dean :twisted: Urfle. Okay, I can try that, but I'd rather just get the C working...
Monday, 4 April 2011 - 15:00
C code meets assembler - And falls down
Um, what? 8)
Monday, 4 April 2011 - 11:11
C code meets assembler - And falls down
clawson wrote:Silly question but if you already have Asm code to do the job then why not simply use that? avr-gcc has no problem with calls between C and Asm code held in .S files...
Monday, 4 April 2011 - 00:37
C code meets assembler - And falls down
I originally wrote it with while ((((volatile uint8_t) PINE) & 0x40) == 0x00) {} // Until READY goes high Count[i] = ((volatile uint8_t) PINB); // When gone high, But...
Monday, 4 April 2011 - 00:28

Pages