Skip to content

Instantly share code, notes, and snippets.

Avatar

Muhammad Abdullah abdullahnaseer

  • Pakistan
View GitHub Profile
View main.asm
.386
.model flat, stdcall
.stack 1024
GetTickCount PROTO ; get elapsed milliseconds
; since computer turned on
ExitProcess PROTO, ; exit program
dwExitCode:DWORD ; return code
@abdullahnaseer
abdullahnaseer / multiply.asm
Last active May 7, 2018
String digits multiplication in MASM
View multiply.asm
.386
.model flat, stdcall
.stack 1024
GetStdHandle PROTO, ; get standard handle
nStdHandle:DWORD ; type of console handle
;Returns: (HANDLE) EAX = A handle to the specified device,
; or INVALID_HANDLE_VALUE flag if function fails.
ReadConsoleA PROTO,
You can’t perform that action at this time.