Geeks With Blogs
Mark Pearl NASM
Getting to grips with the stack in nasm
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 ......

Posted On Monday, April 9, 2012 2:09 PM

More NASM with GVim
Today I am bashing around with nasm again… some useful things I found… Set the current working directory of gvim to the current file path I have found setting the current working directory of gvim to the file location is very useful, especially if you are wanting to use commands in gvim to run your compiled code. It can be done by typing in the following in the command mode in gvim… cd %:p:h Once you have set it, you can use the ! to run commands you would normally run in the dos shell.. e.g. !dir ......

Posted On Monday, April 9, 2012 1:40 PM

Writing multiple lines of text to the console in nasm
In it’s simplest form… the following asm code should work org 0x100 bits 16 jmp main message: db 'example text ', 0xa,'and some more text', 0xa, 'and another line','$' main: mov dx,message mov ah,09h int 21h int 20h Points to look out for… 0xa is a newline operand… ‘$’ signifies the end of the text Everything else should look pretty standard… ......

Posted On Saturday, March 31, 2012 12:57 PM

Using gVIM to program NASM (a noobs insights)
I’m new to vim and to nasm… several months ago I put up a post on how I had discovered a tutorial on VIM and was going to give it a second try – my first attempt failing dismally. At the time my second attempt fell through after about two weeks – I was just to comfortable with Windows and the concept of not having everything menu based was too daunting for me. So when a few weeks ago I decided to give vim a third chance, it was pretty much a “last chance” - if I didn’t see any light at the end of ......

Posted On Saturday, March 10, 2012 8:10 AM

Copyright © MarkPearl | Powered by: