A
memory-mapped in HLA |
A
memory-mapped in HLA
This article series is
intended as only an introduction to the use of advanced operating
system features. For complete coverage of the topics, please consult
appropriate reference material. All code examples are presented in HLA
source and make ...
Read More
>>
|
|
|
|
|
Structures
in Assembly Language Programs |
Structures in
Assembly Language Programs
Structures, or records,
are an abstract data type that allows a programmer to collect different
objects together into a single, composite, object. Structures can help
make programs easier to read, write, modify, and maintain. Used
appropriately,...
Read More
>>
|
|
|
|
|
Linux
terminal windows |
Linux
terminal windows
Terminals are text
oriented and introducing pictures or windows isn't attempted by most
Linix utilities. Usually it is too much work for little benifit. But,
there are a few ways we can cheat. One way is to use the drawing
characters to make ...
Read More
>>
|
|
|
|
|
GetDriveType
API Hooker (GUI) |
GetDriveType
API Hooker (GUI)
Well,
as you can see a simple API Hooker with nice GUI. I was too lazy to
comment all the code, but I left enough spaces for it to be readable
for you guys. IMHO you will understand it easily since it's all APIs,
no unusual algos or whatever. Y...
Read More
>> |
|
|
|
|
|
|
|
|
Introduction
to GCC Inline Asm |
Introduction
to GCC Inline Asm
The
GNU C Compiler uses the assembler `as' as a backend. This assembler
uses AT&T syntax. Here is a brief overview of the syntax. For more
information about `as', look in the system info documentation.
Read More
>> |
|
|
|
|
Brennan's
Guide to Inline Assembly |
Brennan's
Guide to Inline Assembly
Ok.
This is meant to be an introduction to inline assembly under DJGPP.
DJGPP is based on GCC, so it uses the AT&T/UNIX syntax and has a
somewhat unique method of inline assembly. I spent many hours figuring
some of this stuff out and told I...
Read More
>>
|
|
|
|
|
|
|
Using
Assembly Language in Linux |
Using
Assembly Language in Linux
This
article will describe assembly language programming under Linux.
Contained within the bounds of the article is a comparison between
Intel and AT&T syntax asm, a guide to using syscalls and a
introductory guide to using inline asm in gc...
Read More
>>
|
|
|
|
|
|
|
Using
Mode X via direct VGA access under Linux |
Using Mode X
via direct VGA access under Linux
Accessing
the VGA Card under Linux is different from DOS, the big difference is
that you can't use any VGA BIOS routines. So switching to the well
known 320x200 Mode is more complicated, because you have to do all the
work on your own.
Read More
>> |
|
|
|
|
Using
the raw keyboard mode under Linux |
Using the raw
keyboard mode under Linux
If you read something from STDIN, the read
bytes are normally in ASCII format. In some cases it is useful to get
the keyboard input as raw as possible. Imagine: Your
program should react on the Alt or Ctrl Key with menu highlightning. In
raw ke...
Read More
>>
|
|
|
|
|
Using
the audio device under Linux |
Using the
audio device under Linux
The
example code below is very simple. It doesn't check if your soundcard
supports the options required (44.1 kHz mono/stereo 16 Bits signed).
This causes wrong output if your soundcard doesn't support this. Of
course your kernel has to ha...
Read More
>> |
|
|
|
|
Startup
state of a Linux/i386 ELF binary |
Startup state
of a Linux/i386 ELF binary
The objective of this document is to describe several
startup process details and the initial state of the stack &
registers of an ELF binary program, for Linux Kernel 2.2.x and 2.0.x on
i386.
Portions of material represented here may be...
Read More
>>
|
|
|
|
|
|
|
Using
self modifying code under Linux |
Using self
modifying code under Linux
I know that this is not the cleanest way of
programming, but sometimes this programming style is faster.
Furthermore this method is used by JIT (just in time) compilers.
Transmeta also uses some sort of self modifying code to implement a x86
sof...
Read More
>>
|
|
|
|
|
Writing
A Useful Program With NASM |
Writing A
Useful Program With NASM
Much fun can be had with assembly programming, it
gives you a much deeper understanding about the inner workings of your
processor and kernel. This article is geared towards the beginning
assembly programmer who can't seem to justify why h...
Read More
>>
|
|
|
|
|
|
|
|