Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #2K
~49.0K People Reached
Favorite Tags

34 Posted Topics

Member Avatar for Idestruction

I recommend to push all necessary register before using external function. Add [CODE]push eax push ebx push ecx[/CODE] before [CODE]call printf[/CODE] and [CODE]pop ecx pop ebx pop eax[/CODE] after it.

Member Avatar for John_310
0
23K
Member Avatar for can-mohan
Member Avatar for Dasun_1

Even more, you can use strict comparison operator == created by yourself. class Point3D { public: double x,y,z; Point3D() { initializeK(); } void initializeK() { x=0.;y=0.;z=0.; } ~Point3D() { } int operator ==(const Point3D &pnt) { int ires; ires=0; if(pnt.x==this->x&&pnt.y==this->y&&pnt.z==this->z) ires=1; return ires; } }; ... Point3D pnt1,pnt2; pnt1.x=1.;pnt1.y=2.;pnt1.z=3.; pnt2.x=1.;pnt2.y=2.;pnt2.z=3.1; …

Member Avatar for StuXYZ
0
187
Member Avatar for hninmaung.02
Member Avatar for ipswitch
0
327
Member Avatar for choeychoco
Member Avatar for skaa
0
68
Member Avatar for kikunha

You can find the first employee in the list that is greater than that you want to insert, and insert before it.

Member Avatar for skaa
0
189
Member Avatar for swekast

This line: int *b; just tells the machine that address *b* will point to integer, and what memory adress contains *b* we do not know. Before the line *b=6; you should allocate place in the memory to put number 6 there: b=new int[1]; . So, it should be like: int …

Member Avatar for skaa
0
115
Member Avatar for sasikrishnasamy

select * from ( select t2.col1, t2.coln, SUBSTR(t2.colr, 1, INSTR(t2.colr, '.') - 1) as coln2, SUBSTR(t2.colr, INSTR(t2.colr, '.') + 1) as coln3 from ( select t.Filling_s_no, SUBSTR(t.Filling_s_no, 1, INSTR(t.Filling_s_no, '.') - 1) as coln, SUBSTR(t.Filling_s_no, INSTR(t.Filling_s_no, '.') + 1) as colr from TCD_EX_Tab t ) t2 ) t3 order by …

Member Avatar for skaa
0
220
Member Avatar for skaa

I need to use Drools 6.2.0.Final. Is it possible to use Guvnor with it? Any example? Thank you.

Member Avatar for rproffitt
0
208
Member Avatar for msz900
Member Avatar for imti321
0
402
Member Avatar for hammy2013

#include <stdio.h> #include <string.h> void main() { char s1[]="abcd",s2[]="xyz"; if(strcmp(s1,s2)) printf("No"); else printf("Yes"); }

Member Avatar for ddanbe
-1
126
Member Avatar for jeff winger

finit fld [Leg1] fld [Leg1] fmulp fld [Leg2] fld [Leg2] fmulp faddp fsqrt fstp [Hypotenuse] Leg1 dt 3.0 Leg2 dt 4.0 Hypotenuse dt ?

Member Avatar for skaa
0
101
Member Avatar for stompjrkz400
Member Avatar for psycho_

b. mov ebx,0 mov edi,A mov bl,byte [edi] mov edx,0 inc edi mov ecx,1 mMain: cmp bl,byte [edi] jge mSkip mov bl,byte [edi] mov edx,ecx mSkip: inc edi inc ecx cmp ecx,[n] jl mMain A db 2,8,7,6,5,9,0,3,1,4 n dd $-A edx will contain result (same as c in your C-code).

Member Avatar for skaa
0
102
Member Avatar for Zvjezdan23

Remove Line 7. Insert this: string[] names_ = new string[x]; before 5th line.

Member Avatar for thines01
0
94
Member Avatar for kww228

This is the function which calculates number of 0-bits in 16-bit number: [CODE]GetNumberOfZeros16: mov eax,0 mov ecx,16 mCountZeros: test dx,1 jnz mSkip inc eax mSkip: shr dx,1 loop mCountZeros ret[/CODE] . Let me know if you need more help.

Member Avatar for kww228
0
319
Member Avatar for Desi991

[CODE] mov eax,[qsec] mov ebx,60 mov edx,0 div bx push edx mov edx,0 div bx push edx lea edi,[sHHMMSS] mov ecx,3 mRp: mov ebx,10 mov edx,0 div bx add eax,'0' mov byte [edi],al inc edi add edx,'0' mov byte [edi],dl inc edi cmp ecx,1 jle mEx pop eax mov byte …

Member Avatar for pgcoder
0
1K
Member Avatar for txhornsfan

After you entered string with number and converted it to number, for example it is in eax: [CODE] mov ecx,eax mov ebx,0 cmp ecx,0 jle mSkip mMain: add ebx,ecx loop mMain mSkip:[/CODE], result will be in ebx.

Member Avatar for txhornsfan
0
4K
Member Avatar for juce

[CODE] mov ecx,0 mov cl,[QDM] mov ebx,ecx mov edi,Matrix mSpiral: push edi mov al,[edi];Output [edi] push ecx mov edx,ecx mov ecx,edx dec ecx cmp ecx,0 jle mSkD1 mD1: add edi,ebx mov al,[edi];Output [edi] loop mD1 mSkD1: mov ecx,edx dec ecx cmp ecx,0 jle mSkD2 mD2: inc edi mov al,[edi];Output [edi] …

Member Avatar for Hugo123007
0
2K
Member Avatar for accra

[CODE]<? $tf_con=@strtotime(@$_POST['time_out'])-@strtotime(@$_POST['time_in']); echo("[".$tf_con."] seconds or<br/>"); $tf_con/=60;echo("[".$tf_con."] minutes or<br/>"); $tf_con/=60;echo("[".$tf_con."] hours or<br/>"); $tf_con/=24;echo("[".$tf_con."] days<br/>"); ?> <html> <body> <form method='POST'> time_out (YYYY/MM/DD HH:MM:SS): <input type='text' name='time_out' value="<?echo(@$_POST['time_out']);?>"/> time_in (YYYY/MM/DD HH:MM:SS): <input type='text' name='time_in' value="<?echo(@$_POST['time_in']);?>"/> <input type='submit' value='Submit'/> </form> </body> </html>[/CODE]

Member Avatar for accra
0
136
Member Avatar for kikic

Look at [url]http://www.daniweb.com/software-development/assembly/threads/400486[/url]

Member Avatar for kikic
0
5K
Member Avatar for Salman Ahmed Q
Member Avatar for skaa
0
58
Member Avatar for lukesawyer

Add resource to your project. Add icon to this resource. Rebuild. Look at your EXE file - it should have your icon. PS. If you are running your console application from VS debugger, you will see default icon probably...

Member Avatar for skaa
0
56
Member Avatar for VengefulToast

Here is your C++ algorithm: [CODE]format PE GUI 4.0 include 'win32a.inc' mov [digit1],1 mdigit1: mov [digit2],1 mdigit2: mov [digit3],1 mdigit3: mov eax,[digit1] mul [digit1] mul [digit1] mov ebx,eax mov eax,[digit2] mul [digit2] mul [digit2] add ebx,eax mov eax,[digit3] mul [digit3] mul [digit3] add ebx,eax mov eax,100 mul [digit1] mov ecx,eax …

Member Avatar for skaa
0
671
Member Avatar for reemhatim

[CODE] mov esi,ak mov ecx,0 mov cx,[qak] mov eax,0;sum msum: add ax,word [esi] add esi,2 loop msum mov edx,0 mov ebx,0 mov bx,[qak] div ebx ;EAX contains average now [/CODE]

Member Avatar for reemhatim
0
140
Member Avatar for YourGamerMom

Comparison must use double equals sign like: [CODE]if(grid[0][0][B]==[/B]2){printf("\n_");} if(grid[0][0][B]==[/B]1){printf("\nX");}[/CODE]

Member Avatar for YourGamerMom
0
98
Member Avatar for kikiritce

DX will contain required sum: [CODE] mov dx,0 mov esi,matr mov ecx,0 mov cx,[dimmatr] mov eax,1 mRow: push ecx mov cx,[dimmatr] mov ebx,0 mCol: cmp ebx,eax jl msk add dx,word [esi] msk: inc ebx add esi,2 loop mCol inc eax pop ecx loop mRow dimmatr dw 3;matrix dimension matr dw …

Member Avatar for skaa
0
172
Member Avatar for philipghu
Member Avatar for kikiritce

This should work: [CODE] mov cl,07d mov ch,015d mov ebx,200h mov eax,0 ciklus: mov [ebx],cl inc cl inc ebx inc eax cmp cl,ch jle ciklus mov ebx,200h mov ecx,eax mov dx,0 ciklus1: test byte [ebx],3h jnz msk mov ax,0 mov al,[ebx] add dx,ax msk: inc ebx loop ciklus1 [/CODE] .

Member Avatar for kikiritce
0
141
Member Avatar for jdm

This code: [CODE] mov edx,0 cmp eax,1 jle mEx mov ecx,eax shr ecx,1 mov ebx,2 mov edx,1 mMain: cmp ebx,ecx jg mEx push eax mov edx,0 div ebx pop eax cmp edx,0 je mEx inc ebx jmp mMain mov edx,1 mEx: [/CODE] checks if number in eax is prime. If …

Member Avatar for jdm
0
4K
Member Avatar for pendo826
Member Avatar for Bartim

[CODE]format PE GUI 4.0 include 'win32a.inc' mov esi,shex mov ecx,0 mGotoEnd: cmp byte [esi],0 je mGotoEndEx inc esi inc ecx jmp mGotoEnd mGotoEndEx: dec esi mov edx,0 mov ebx,1 mConvertToNumber: mov eax,0 mov al,[esi] mov ah,'0' cmp al,'A' jl mDigit mov ah,'A'-10 mDigit: sub al,ah mov ah,0 push edx mul …

Member Avatar for NotNull
0
2K
Member Avatar for chinesethunda

[CODE]format PE GUI 4.0 include 'win32a.inc' ;Initialize aResult array to all zeros mov ecx,15 mov edi,aResult mIni: mov byte [edi],0 inc edi loop mIni mov esi,aData;Set index for aData array mov edi,aResult mMain: cmp byte [esi],0 jne mSkEx;While not EOS do jmp mEx mSkEx: cmp byte [esi],0A0h;Check if between $A0 …

Member Avatar for skaa
0
169
Member Avatar for emation

I did not care of errors because you did not write about them, so I do not know how to process them. Only digits and capitals 'A'-'F' are allowed to enter. Let me know if you have any questions. [CODE] ;nasm -f bin HexToA.asm -o HexToA.com ;Convert HEX to character …

Member Avatar for skaa
0
225

The End.