- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Im using x86-64 NASM on WSL Ubuntu.
I'm trying to use push/pop for function params, but for some reason it makes my program return " ".
section .text global _start _start: mov edx, len mov ecx, msg push ecx push edx call println mov eax, 1 int 0x80 println: pop edx pop ecx mov ebx, 1 mov eax, 4 int 0x80 ret section .data msg db "Hello world!",0xa len equ $ - msg
this returns:
Command terminated by signal 11
Not too sure what's causing this. Does anyone know? I would like to add that removing both the pushes and both the pops makes the program run perfectly fine again.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
IamHamidd, Thank you for posting in the Intel® Communities Support.
In reference to your inquiry, we will do further research on this matter to try to find a possible solution to this scenario or to point you in the right direction for proper technical support. As soon as I get any updates, I will post all the details on this thread.
Any questions, please let me know.
Regards,
Albert R.
Intel Customer Support Technician
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello IamHamidd, I just received an update on this matter.
After reviewing the case, since this scenario is related to software instead of hardware, there are no additional details we can provide from our side.
Still, for your convenience, you can always submit your inquiry on Ubuntu Forums and check there if they can provide further suggestions on this matter. We apologize for any inconvenience:
Regards,
Albert R.
Intel Customer Support Technician
![](/skins/images/AF5E7FF58F8A386030D1DB97A0249C2E/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page