For Programmers: Free Programming Magazines  


Home > Archive > A86 Assembler > December 2007 > Masm Coding Styles Perferred









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Masm Coding Styles Perferred
DosFreak

2007-12-02, 8:39 am

Is there any good articles on coding styles from best to worst and why?
DosFreak

2007-12-03, 5:42 pm

..MODEL LARGE, C
..CODE
..286

public move

row equ [bp+6]
col equ [bp+8]
move proc far
push bp
mov bp, sp
push di
push si
mov ah, 2
mov bx, 0
mov dh, byte ptr row
mov dl, byte ptr col
int 10h
pop si
pop di
pop bp
ret
move endp

move proc uses di si, row:row, col:word
mov ah, 2
mov bx, 0
mov dh, byte ptr row
mov dl, byte ptr col
int 10h
ret
move endp

end

which source is better and why?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com