Coder Social home page Coder Social logo

assembly_train's Introduction

概述

本项目是X86_64的汇编学习的记录,使用NASM进行代码编写,主要参考 《X86汇编语言-从实模式到保护模式》, Linux Assembly

目录结构 (使用 mddir 制作)

basic目录主要是包含汇编程序的基础学习内容, toyos目录是采用汇编和C语言编写的简单操作系统。

NASM

NASM全称 Netwide Asssembler, 是一个 80x86x86-64汇编器,基于简化版BSD许可证的开放源代码软件。NASM支持多种目标文件格式,如 a.out, ELF, Mach-O .obj(OMF), coff等, 也支持常见的二进制输出格式。

NASM不是AT&T风格汇编(GNU汇编器采用的语法),而是Intel风格

命令

nasm -f <format> <filename> [-o <output>]

例如: name -f elf myfile.asm 这个指令会生成 ELF格式的文件 myfile.o, nasm -f bin myfile.asm -o myfile.com则是生成原始的二进制文件 myfile.com

语法

NASM源码行通常为格式: label: instruction operands ;comment, 首先是可选的标号,然后是指令,最后是注释(使用;

assembly_train's People

Contributors

compasty avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.