Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
7
votes
2
answers
3k
views
Finite loop runs infinitely
Here's the disassembly for the first code snippet (RUSTFLAGS="--emit asm" cargo run --release, not the final linked assembly):
.text
.set __tmp_reg__, 0
.set __zero_reg__, 1
.set __SREG__, 63
.set …
0
votes
Controlling Vintage floppy drives
A little assembly program used a PWM algorithm to modulate the drive's LED slowly from off to on and back. It was spooky. …
0
votes
1
answer
49
views
Arduino and custom pcb
I am looking to minimize the size and assembly complexity of my arduino projects. Is there any easy way to integrate something like an esp8266 onto my own pcb. I don't want to have to solder it on. …
17
votes
Accepted
Finite loop runs infinitely
It is pretty common nowadays to skip
the assembly language and compile from a high-level language directly to
machine code.
The first assembly snippet was obtained with --emit asm. …
4
votes
How to move from arduino to physical prototype
That's before production and assembly, each with its own struggles along the way. …
2
votes
Arduino Mega 2560 time delays counting between events on different pins
noInterrupts();
TCCR1B = _BV(CS10);
TCCR3B = _BV(CS30);
TCCR4B = _BV(CS40);
TCCR5B = _BV(CS50);
interrupts();
}
The section that starts the timers compiles to this assembly:
cli …
2
votes
How to simulate Arduino?
can be compiled on RUN on Mobile browsers as well
Tries to be closer to real circuits – Example – Button bounce like in real hardware
Supports Arduino Mega, Arduino Nano, Arduino UNO, ATtiny85
Supports assembly …
2
votes
Accepted
How execution time of code instructions influences signal between Arduino and DHT11?
See for example the implementation of the counting loop in the AVR
core, or rather the C code that served to generate the assembly
implementation. …
-1
votes
2
answers
83
views
Removing the L from F_CPU in assembly
I am developing a mixed c++ /asm project.
In the asm I am using F_CPU to do some busy waiting as follows. However, by default, the F_CPU is defined with a trailing L (for long). The asm is not able to …
2
votes
Removing the L from F_CPU in assembly
Just as a complement to the busybee's answer: the avr-libc provides the
macros _delay_ms() and _delay_us() for busy-wait delays.
Internally, they use __builtin_avr_delay_cycles() and F_CPU to
provide …
2
votes
Accepted
Removing the L from F_CPU in assembly
You think you can realize that with (inline) assembly and a repetition macro. But as you found, the assembler does not accept C literals with suffixes, as it has no usage for the type information. …
3
votes
0
answers
644
views
How to use C++20 in Arduino IDE?
compiles for esp32 and optimizes for it, it's kind of a crapshoot as to whether it will compile "well", or compile to something that would horrify you if you looked at (and understood) the generated assembly …
0
votes
1
answer
56
views
ATtiny25 - assembly - BOD disable for sleep mode - error [closed]
If I understood the AVR instruction manual correctly, the ATtiny 25 can disable the BODlevel2 fuse by software, but when compiling with Studio 7 (version 7.0.132), I get the error "Undefined symbol: B …
2
votes
ATtiny25 - assembly - BOD disable for sleep mode - error
before they are assembled, thus allowing the use of preprocessor directives, such as #include and C-style comments with assembly code. … By default, assembly files not using the .S or .sx extension are not preprocessed. …
0
votes
4
answers
7k
views
How to use assembly in Arduino?
How do I write working code for this project in assembly (not restricted to @rduino IDE, but preferable)? … I've already tried converting my code to assembly using an online converter, but it is useless. …