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 !
Posted on 2011-07-16 18:58:10 by drow05ranger
Show us what you've done so far, i.e. paste the code, and we'll show you where to go from there.
Posted on 2011-07-16 19:51:37 by SpooK
.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 :)
Posted on 2011-07-17 22:45:54 by drow05ranger
Try Int 10h functions instead, e.g. Int 10h/AH=0Ch.
Posted on 2011-07-17 23:25:28 by SpooK
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?


 
Posted on 2011-07-18 22:57:34 by drow05ranger

but i was wondering on how to make it on loop...


Read Loops @ AoA16
Posted on 2011-07-19 08:18:34 by SpooK