Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Getting to grips with the stack in nasm

AddThis Social Bookmark Button
  Today I spent a good part of my day getting to grips with the stack and nasm. After looking at my notes on nasm I think this is one area for the course I am doing they could focus more on… So here are some snippets I have put together that have helped me understand a little bit about the stack… Simplest example of the stack You will probably see examples like the following in circulation… these demonstrate the simplest use of the stack… org 0x100
bits 16
/>jmp main

main:
push 42h
push 43h
push 44h

mov ah,2h ;set to display characters

pop dx    ;get the first value
int 21h   ;and display it

pop dx    ;get 2nd value
int 21h   ;and display it
...(Read whole news on source site)

Home : Blog List : Mark Pearl : Getting to grips with the stack in nasm