你好我学校的每一个机构,我必须在ASM [英特尔] [NASM]做我自己的strdup功能。 我拥有电子奇怪的问题...... 在我的代码,如果我call _malloc 我的这个错误代码段错误: Program received signal SIGSEGV, Segmentation fault.
0x00007fff849612da in stack_not_16_byte_aligned
我在Debian 9.这些都是错误: [email protected]:~/Assembly/sandbox$ nasm -f elf -g -F stabs sandbox.asm
sandbox.asm:8: error: comma, colon, decorator or end of line expected after operand
sandbox.asm:9: error:
汇编程序使用标签的,我是学在OS发展book by Nick Blundell。它在第3章的引导扇区编程的例子(16位实模式),如下图所示: ;
; A simple boot sector program that demonstrates addressing.
;
mov ah, 0x0e ; int 10/ ah = 0eh -> scrolling teletype BIOS ro