linux asm(nasm) output strings
来源:互联网 发布:网络主播套路 编辑:程序博客网 时间:2024/05/17 02:51
section .textglobal mainmain:mov eax,4mov ebx,1mov ecx,msgmov edx,lenint 80hmov eax,1int 80hmsg:db "hello world!it's too long!/n","$",'\r\n\t',0,'12345',lenlenequ $-msg
nasm -f elf64 demo.asm
ld -emain demo.o -o demo
./demo
hello world!it's too long!/n$\r\n\t12345*you see:
\r \n \t /n not useful
but
section .textglobal mainmain:mov eax,4mov ebx,1mov ecx,msgmov edx,lenint 80hmov eax,1int 80hmsg:db "hello world!",0xA,"it's too long!/n","$",'\r\n\t',0,'12345',len,0xalenequ $-msg
hello world!it's too long!/n$\r\n\t12345,
oxA -> '\n'
linux nasm-2.13.01 编译器
阅读全文
0 0
- linux asm(nasm) output strings
- nasm-64_hello.asm
- nasm-64_hello.asm
- 用nasm语言重新实现linux-0.11 asm.s(博古以通今)
- nasm:fatal:unable to open output file
- asm基础——nasm使用简介
- linux NASM Hello, world!
- linux nasm helloworld
- linux内核编译错误:error: read-only variable '__r2' used as 'asm' output
- c语言调用asm过程(环境:vc6.0和nasm)
- asm基础——使用nasm和bochs学习汇编
- asm基础——使用nasm进行汇编(基础)
- asm基础——nasm和masm的一些区别
- Python 入门教程 3 ---- Strings and Console Output
- CodeCademy | Python | 3. Strings & console output
- linux asm
- Linux用Nasm巧汇编
- 天天Linux-安装samba,nasm
- 基于RESTful API的TCC补偿模式 分布式事务
- JavaScript正则表达式
- java如何获得date的前一秒的时间
- Android动画机制与使用技巧(四)Android 5.X SVG矢量动画机制
- Spring 小知识
- linux asm(nasm) output strings
- 创新的功劳不属于某一个人---读《创新者》有感
- 走进海尔考察||探秘--《精益·6S管理研修》
- C++学习笔记03
- bzoj 1670: [Usaco2006 Oct]Building the Moat护城河的挖掘(凸包)
- 快速排序
- Android 原生NumberPicker控件修改分割线颜色及字体颜色大小
- leetcode203. Remove Linked List Elements
- JSDOM编程艺术