Logo 
Search:

Assembly Language Answers

Ask Question   UnAnswered
Home » Forum » Assembly Language       RSS Feeds
  Question Asked By: Mustabshir Khan   on Nov 19 In Assembly Language Category.

  
Question Answered By: Sergey Kamenev   on Nov 19

format PE console
include 'win32a.inc'

invoke GetStdHandle,STD_OUTPUT_HANDLE

mov edi,sk
mov ecx,[qcsk]
mov edx,1
mMain:
push ecx
push edx
push edi
push eax

mov ebx,qcio
invoke WriteConsole,eax,edi,edx,ebx,0

pop eax
push eax

mov edi,snl
mov edx,1
mov ebx,qcio
invoke WriteConsole,eax,edi,edx,ebx,0

pop eax
pop edi
pop edx
pop ecx

inc edx
loop mMain

invoke ExitProcess,0

sk db 'KUDCS'
qcsk dd $-sk
qcio dd ?
snl db 10

include 'API\kernel32.inc'

data import

library kernel32,'KERNEL32.DLL'

end data

Share: 

 
 
Didn't find what you were looking for? Find more on Code of String Triangle in Assembly language Or get search suggestion and latest updates.


Tagged: