Lost Password?

CodeCall Programming Blog

Programming Blog

dargueta's Blog
dargueta Description:
A short description about your blog

Programs Under the Hood...Part 8: Disassembling Stuff

Posted by: dargueta in Untagged  on

 

Welcome back to Part 8 of Programs Under the Hood. Today we're going to disassemble a BIOS interrupt to get a real-world example of what programs are structured like, and we'll see if we can convert some of it to C/C++ code. (I apologize for the large line breaks. For some reason, they just appeared.)

 

POPPING THE HOOD-DISASSEMBLING A BIOS ROUTINE

A few issues back I mentioned that the


Programs Under the Hood...Part 7: Making Decisions

Posted by: dargueta in Untagged  on

 

Welcome to Part 7 of Programs Under the Hood. Today we're going to learn a bit more about how programs make decisions on the assembly language level. I promise after this we'll get back to the disassembler project.

 

FLOW CONTROL STRUCTURES

Everyone who knows C/C++ is familiar with the goto keyword, the bane of many a programmer's existence. Using goto makes code harder to read and terrible


Programs Under the Hood Part 6: Getting Functional

Posted by: dargueta in Untagged  on

   I realize that I’ve been throwing a lot at you all at once. I now promise to go slower, easier, and put in more diagrams. Today we’re going to learn about the stack, stack frames and functions.

USING A STACK
Just about every program needs a stack, or a section of memory that is used sort of like temporary storage. It’s not like allocating memory, because the stack is already part of the

Programs Under the Hood...Part 5

Posted by: dargueta in Untagged  on

Hello, and welcome back to Programs Under the Hood. Today we're going to start planning out our disassembler's memory, talk a bit about memory segmentation, and then start working on the actual program. For those of you who have no idea what I’m talking about, please see Programs Under the Hood…Introduction to start from the beginning.

All right... let’s get going on this disassembler

Programs Under the Hood...Hello, World

Posted by: dargueta in Untagged  on

(Part 4)

Hello, and welcome to the latest part of my series, Programs Under the Hood. Today we’re going to relearn a bit of what I poorly taught last time, get more familiar with debug.exe, and finally write our first program in assembly language.
 I know I threw a lot at you last time, so if you don’t mind, I’ll do a quick rehashing of the important points.

 

  1. The generic Intel CPU has


Programs Under the Hood...Our Friend the CPU

Posted by: dargueta in Untagged  on

(Part 3)

Hi, everyone, it's me again with the latest installment of Programs Under the Hood. Today we're going to get to know the inner workings of the processor, and start learning a little assembly language.

INTRODUCING THE GENERIC INTEL CPU
Since the 8086 in 1974, the Intel processors have retained a lot of the same characteristics. Pretty much the only thing that has changed that we need to

Programs Under the Hood...Lock and Load

Posted by: dargueta in Untagged  on

  (Part 2)


I said in my last blog that I'm going to assume you know assembly language in my further exploits. I changed my mind. I'll walk all of you through this in a way that'll be as painless as possible for the experienced and the n00bs. Before we begin writing this disassembler, I should outline a few things I plan on doing.

  1. I'm going to use debug.exe for nearly everything. It's very


Programs Under the Hood...Introduction

Posted by: dargueta in Untagged  on

 

(Part 1)

I have a habit of re-inventing the wheel to see why it rolls. So one day, I hit upon a way to inflict severe mental punishment on myself and invent...ProDIA, a program disassembler written in assembly language. Ironic, I know. This'll be a great way for you to get to know how processors and programs work under the hood, as well as see how this little project is going along. Technical


Statistics

Members Today: 144
Members Online: 6
Users Online: 90
Total Users: 12,840
Total Threads: 8,600
Total Posts: 63,566
Newest Member: flashitool

Tutorials

Working with Halftones - By Genny
It's been a while... but somebody asked me to write another Effects tutorial, so I picked halftones, because their fun to mess around with :) Start by using the paintbucket and set a backround Colo...


Setting up server 2003
I blogged about doing this since I've been asked on numerous occasions about how its done. The blog is at : -------------------------------------------------- Setting up Windows Server 2003 as a...


Formatting Numbers for Currency Display in JavaScr...
Methods-Number.toFixed(x) Description -Formats any number for "x" number of trailing decimals. The number is rounded up, and "0"s are used after the decimal point if needed to create the desired...