Scan string using SCASB : Assembly code

include irvine32.inc .datasource byte “my name is usman”,0 msg1 byte “String to b compare : “,0 msg3 byte “Latter is Found : “,0msg4 byte “Latter Not Found : “,0 .codeMain proccall clrscrcall crlfmov edx,offset msg1call writestringcall crlf call crlfmov edx,offset sourcecall writestringcall crlf ;————————— mov edi,offset sourcemov al,’g’mov ecx,lengthof sourcecldrepne scasbje L1jne L2;———————- L1:call crlfmovContinue reading “Scan string using SCASB : Assembly code”

Compare string using CMPSB : Assembly Code

include irvine32.inc .datasource byte “i my name is usman”,0dest   byte “i am not a khan….”,0 msg1 byte “1st String: “,0msg2 byte “2nd string: “,0 msg3 byte “String name Dest is Large : “,0msg4 byte “String name Dest is Small : “,0msg5 byte “String :both sorce & Dest are Equal : “,0 .codeMain proccall clrscrcallContinue reading “Compare string using CMPSB : Assembly Code”

Copy using Movsb : Assembly Code

include irvine32.inc .datasource byte ”    my name is usman”,0dest   byte ”    I am not a khan.”,0msg3 byte “After Copy: Copy source in dest String:  “,0msg1 byte “String Named Source: “,0msg2 byte “String Named Dest: “,0 .codeMain proccall clrscrcall crlfmov edx,offset msg1call writestringcall crlf call crlfmov edx,offset sourcecall writestringcall crlf call crlfmov edx,offsetContinue reading “Copy using Movsb : Assembly Code”

Push & Pop in Assembly :: Stack

include irvine32.inc .data msg3 byte “Push character one by one in stack and moves ESP(32-bit-stack-pointer-register) downward:”,0msg byte ”              Push: “,0msg4 byte “Pop character one by one from stack and moves ESP(32-bit-stack-pointer-register) upward:”,0msg1 byte ”              Pop: “,0arr byte “usman siddique”,0asiz = ($-arr)-1msg2 byte “—————————————————————“,0msg5Continue reading “Push & Pop in Assembly :: Stack”

Str_Trim Function in Assembly

include irvine32.inc .datasource byte “my name is usman and i am not A KHAN”,0msg   byte “After Invoking Str_trim function: “,0msg1 byte “Lenght of source = “,0 .codeMain proccall clrscrcall crlfmov edx,offset msg1call writestringcall crlf call crlfmov edx,offset sourcecall writestringcall crlf call crlfmov edx,offset msgcall writestringcall crlf invoke str_trim , addr source , ‘N’ callContinue reading “Str_Trim Function in Assembly”

Str_Length Function in Assembly

include irvine32.inc .datasource byte “my name is usman and i am not A KHAN”,0msg   byte “After Iviking Str_Length function: “,0msg1 byte “Lenght of source = “,0 .codeMain proccall clrscrcall crlfmov edx,offset msg1call writestringcall crlf call crlfmov edx,offset sourcecall writestringcall crlf call crlfmov edx,offset msgcall writestringcall crlf invoke str_length , addr source call crlfmov edx,offsetContinue reading “Str_Length Function in Assembly”

U_Case Function in Assembly

include irvine32.inc .datasource byte “my name is usman and i am not A KHAN”,0msg   byte “After Iviking U-Case function: “,0msg1 byte “String Source is = “,0 .codeMain proccall clrscrcall crlfmov edx,offset msg1call writestringcall crlf call crlfmov edx,offset sourcecall writestringcall crlf call crlfmov edx,offset msgcall writestringcall crlf invoke str_ucase , addr source call crlfmov edx,offsetContinue reading “U_Case Function in Assembly”

Str_Compare Function in Assembly

include irvine32.inc .datasource byte “i  my name is usman”,0dest   byte “i am not a khan….”,0 msg1 byte “1st String: “,0msg2 byte “2nd string: “,0 msg3 byte “String name Dest is Large : “,0msg4 byte “String name Dest is Small : “,0msg5 byte “String :both sorce & Dest are Equal : “,0 .codeMain proccall clrscrcallContinue reading “Str_Compare Function in Assembly”

Str_Copy Function in Assembly

include irvine32.inc .datasource byte “my name is usman”,0dest   byte “i am not a khan.”,0 msg1 byte “1st String: “,0msg2 byte “2nd string: “,0msg3 byte “after Copy :: copy source string into dest : “,0 .codeMain proccall clrscrcall crlfmov edx,offset msg1call writestringcall crlf call crlfmov edx,offset sourcecall writestringcall crlf call crlfmov edx,offset msg2call writestringcall crlfContinue reading “Str_Copy Function in Assembly”

Shift And Rotate Instructions in Assembly Language

Shift And Rotate Instructions in Assembly Language … Code by Programming SeekerzZZZ…Using Commands SHL ,SHR ,SAL ,SAR ,ROR ,ROL ,RCR ,RCL include irvine32.inc.datamsg byte  ”  Actual No is:                             “,0msg1 byte ” No After 2 Arthmatic Right Shift (SAR):    “,0,13h,10hmsg2 byteContinue reading “Shift And Rotate Instructions in Assembly Language”