阅读背景:

如何在Linux程序集中创建文件

来源:互联网 

I have the following code:

我有以下代码:

section .text
    global _start       ;must be declared for using gcc
_start:                     ;tell linker entry point
    mov ecx, 2      ;read-write perms
    mov ebx, name       ;name of file
    mov eax, 8      ;system call number (sys_creat)
    int 0x80        ;call kernel
    mov eax, 1      ;system call number (sys_exit)
    int 0x80        ;call kernel

section .data
name    db  'C:\test.txt',0xa  
section 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: