asm inline function
asm inline function
wat is the asm inline function in c for poping value from stack and storing it in a variable
Have you googled it? Have you read the manual?
------------------------
------------------------
Code: Select all
asm volatile("pop %0" : "=r" (my_value))
-
- Member
- Posts: 566
- Joined: Tue Jun 20, 2006 9:17 am
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
Inline assembly can be annoying, but it makes the code better (in my opinion) because I don't have to load 2 files to look at one function.
I like it better than normal assembly.
-JL
I like it better than normal assembly.
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io