flat assembler
Message board for the users of flat assembler.
Index
> Linux > mmx segment fault !? |
Author |
|
randall 16 Apr 2013, 22:26
You have to call sys_exit syscall after 'call mmxtest'.
|
|||
16 Apr 2013, 22:26 |
|
HaHaAnonymous 16 Apr 2013, 22:40
[ Post removed by author. ]
Last edited by HaHaAnonymous on 28 Feb 2015, 21:02; edited 1 time in total |
|||
16 Apr 2013, 22:40 |
|
catafest 25 Jun 2013, 14:06
$ ./fasm mmm.asm
flat assembler version 1.70.03 (16384 kilobytes memory) mmm.asm [5]: here error: illegal instruction. |
|||
25 Jun 2013, 14:06 |
|
revolution 25 Jun 2013, 14:33
Show your source code please.
|
|||
25 Jun 2013, 14:33 |
|
Madis731 25 Jun 2013, 16:41
Code: use32 format ELF executable 3 entry start segment readable executable start: ; program entry point. OK! call mmxtest ; after calling "mmxtest" it will return here, so put an end here ; param1 in ebx (0) xor ebx,ebx ; syscall number in eax (1 = sys_exit) mov eax,$00000001 ; int $80, call kernel function (it won't return, program terminates) int $80 ; no more execution after this mmxtest: push ebx push ecx push edx mov eax,1 cpuid mov eax,edx shr eax,23 and eax,1 pop edx pop ecx pop ebx ret flat assembler version 1.71.10 (16384 kilobytes memory) 2 passes, 120 bytes. FDBG shows that eax resolves to 1 |
|||
25 Jun 2013, 16:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.