Assembly >> bottomembly tutorials
Posted by dxprog on 13:46:00 09-24-2003
Does anyone know of any good "basic" asm tutorials? I want to give it a whirl and can't find anything. Thanks! [addsig]
Posted by eosp on 05:00:00 09-29-2003
Well here's a short one on how to get a com file to load in dos...

Code:
org 100h
... ; assembly Code Here
mov ax,4c00
int 21h


That might be mov ah,4c00 but I think its the ax register.

_________________
C is the best programming language. Semicolon.

[ This Message was edited by: eosp on 2003-09-29 05:01 ]
Posted by dxprog on 06:45:00 09-29-2003
I already learned how to do that (and yes, it's 4c00h). Thanks, though BTW, where did you learn asm? [addsig]
Posted by eosp on 10:27:00 09-30-2003
I wouldn't say I know asm. I found a couple tuts on http://www.how-to.tk, but they weren't good.

I can print text with int 10, or mov 0xb8000, "W", and so on. I can make a bootsector like so:
Code:
[bits 16]
[org 0x7c00]
... code here ...
times 510-($-$$) db 0
dw 55AAh

That's all. Also - you can disassemble (you know the EULAS - "you may not reverse engineer, decompile, ..." - that's what they're talkin' about) your code with "ndisasm whatever.exe". Cool? Or cool? [addsig]