Answer the question
In order to leave comments, you need to log in
How to connect an assembler program with a C program?
There is a Linux program that contains a function to print a single letter to the console:
global test
section .data
msg db 0xD0, 0xBF, 10
msg_len equ $-msg
section .text
test: push ebp
mov ebp, esp
mov eax, 4
mov ebx, 1
mov ecx, msg
mov edx, msg_len
int 80h
mov eax, 1
mov ebx, 0
int 80h
mov esp, ebp
pop ebp
ret
extern void test();
int main(){
test();
}
Answer the question
In order to leave comments, you need to log in
Problem solved - I compiled the code not in C, but in C ++ and the linker could not find the symbol. The problem was solved by adding extern "C" to the C++ code
If you fix the height of the blocks, then you can do this:
https://jsfiddle.net/4nz26es8/
div.btn {
position: relative;
top: -50px;
left: calc( 50% - 50px );
width: 100px;
height: 100px;
border-radius: 50px;
background-color:red;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question