Hello to all !
im new here...
i just wanted to ask about some basics from assembly language...
im new to it...
hmmmm...
how can i output an asterisk diamond without using the function db?
or can someone give me some codes on how to enter new line using without using db...
thanks in advance... :)
More power !
im new here...
i just wanted to ask about some basics from assembly language...
im new to it...
hmmmm...
how can i output an asterisk diamond without using the function db?
or can someone give me some codes on how to enter new line using without using db...
thanks in advance... :)
More power !
Show us what you've done so far, i.e. paste the code, and we'll show you where to go from there.
.model small
.stack
.code
mov ah,02h
mov dl, 2ah
int 21h
int 21h
mov ah,4ch
int 21h
end
this is just to output asterisk
im wondering on how to make it
*
* *
* * *
* *
*
thanks in advance :)
.stack
.code
mov ah,02h
mov dl, 2ah
int 21h
int 21h
mov ah,4ch
int 21h
end
this is just to output asterisk
im wondering on how to make it
*
* *
* * *
* *
*
thanks in advance :)
Try Int 10h functions instead, e.g. Int 10h/AH=0Ch.
i found it out
.model small
.stack
.code
mov ah, 02h
mov dl, 20h
int 21h
mov dl, 2ah
int 21h
mov dl, 0Ah
int 21h
mov dl, 2ah
int 21h
mov dl, 2ah
int 21h
mov dl, 2ah
int 21h
mov dl, 0Ah
int 21h
mov dl, 20h
int 21h
mov dl, 2ah
int 21h
mov ah, 4ch
int 21h
end
*
***
*
its just like this...
but i was wondering on how to make it on loop...
is there any other way?
.model small
.stack
.code
mov ah, 02h
mov dl, 20h
int 21h
mov dl, 2ah
int 21h
mov dl, 0Ah
int 21h
mov dl, 2ah
int 21h
mov dl, 2ah
int 21h
mov dl, 2ah
int 21h
mov dl, 0Ah
int 21h
mov dl, 20h
int 21h
mov dl, 2ah
int 21h
mov ah, 4ch
int 21h
end
*
***
*
its just like this...
but i was wondering on how to make it on loop...
is there any other way?