04-02-2003, 02:29 PM
I've learned ASM (TASM and NASM) in a short period of time, but there are still some things I don't know.
1. Can someone tell me how I make procedures or functions in ASM. E.g. I have this code:
How can I make of this tiny program a sub procedure, which can, with ARGUMENTS X and Y and Colour set a pixel on screen (Mode 13h).
2. What is the difference between PROC and MACRO
3. How can I make a subprocedure (see 1) return a value (so it's an equivalent of the QB FUNCTION).
1. Can someone tell me how I make procedures or functions in ASM. E.g. I have this code:
Code:
mov ax, 0A000h
mov es, ax
mov di, 02h
mov ax, 0001h
stosb
2. What is the difference between PROC and MACRO
3. How can I make a subprocedure (see 1) return a value (so it's an equivalent of the QB FUNCTION).