Assembler For Dummies Like Me
Posted: Sat Mar 26, 2011 1:01 am
DOS and BIOS provides simple functions that ease programmers life. Using BIOS and DOS functions programmer can easily write text on the screen, set video modes, get keyboard data, read disks and floppies and a lot more, and best of all:
It doesn't require hardware coding experience.
For example seting video mode in BIOS:
And setting Video Mode without BIOS needs setting video cards registers (writting about 9 values). That would take ~20 lines in assembly. DOS uses interrupt 21h. printing text on the screen using DOS (for NASM compiler):
Assembly is a lot to learn, especially if you want to be good assembler programmer. Read books, tutorials, articles on assembly, read forums wich usually contains a lot of usefull information, try to code, do some research and you will definatly make it.
This article has giving me hope Assembler for Dummies
It doesn't require hardware coding experience.
For example seting video mode in BIOS:
Code: Select all
mov ah, 0 - Video BIOS 'Set Display Mode' function.
mov al, 13h - Video Mode (you can set al & ah bu hust setting ax 'mov ax,13h')
int 10h - Video BIOS interrupt
Code: Select all
jmp start ; jumps to start
db text "Hello, world!",$ ; text needs to finish with $
start:
mov dx, text ; movs text pointer to dx
mov ah, 9 ; DOS print function
int 21h ; we call it ;)
This article has giving me hope Assembler for Dummies