0

isnt it an good idea to make an sticky where everyone can post,
simple examples?

or mini tuts
to get peaple started with asm?

like this an masm example:

.model small
.stack
.data

.code

main proc

    mov ah,1    ; dos int 21 interupt ah =1 to 
    int 21h     ; get char from standard input with echo result in al.

    mov ah,4ch  ; program exit
    int 21h
                  
main endp
end main
3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Nathan Campos
0

You really don't have enough for a useful snippet. It doesn't do anything! Takes input then terminates!
And you need more comprehensive comments. Something more like...

; Get a character from input with echo in al
    mov ah,1    ; CMD: Get single char 
    int 21h     ; DOS interrupt .
             ; al = char

     mov ah,4ch  ; program exit
    int 21h     ; DOS interrupt
0

The snippets place in DaniWeb it's a good place, but i will like if we sticky a post for the beginners(like me).

Thanks!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.