PC Assembly Language



Book Details
Author | Paul A. Carter |
Published | 2019 |
Edition | 1st |
Paperback | 190 pages |
Language | English |
License | Creative Commons Attribution-NonCommercial-ShareAlike |
Book Description
The book provides extensive coverage of interfacing assembly and C code, making it of potential interest to C programmers seeking to understand how C operates at a lower level. All examples utilize the free NASM (Netwide) assembler. The tutorial focuses exclusively on programming for 32-bit protected mode and requires a 32-bit protected mode compiler. While it is possible to use the book and its examples on a 64-bit operating system, the programs will run in 32-bit mode and cannot access any 64-bit functionality.
The author provides example code files for several environments: DJGPP, Borland, Microsoft, Open Watcom, and Linux C compilers. Although the examples within the tutorial text are written specifically for DJGPP, the material also discusses how to interface with the other compilers. These example files include macros that facilitate easy input/output and debugging, featuring capabilities such as register dumps, memory dumps, coprocessor dumps, and stack dumps. To run the tutorial's examples, the reader must download the appropriate example code file, which contains necessary support files (such as asm_io.inc) used throughout the tutorial.
This book is available under a Creative Commons Attribution-NonCommercial-ShareAlike license (CC BY-NC-SA), which means that you are free to copy, distribute, and modify it, as long as you credit the original author, don't use it for commercial purposes, and share any adaptations under the same license.
If you enjoyed the book and would like to support the author, you can purchase a printed copy (hardcover or paperback) from official retailers.