Re: Cmp?? Programming Software Development by Ancient Dragon >> CMP <------- is this where it goes? you need to specify what is being compared, two registers ? example: [code] cmp ax,bx [/code] Cmp?? Programming Software Development by foxy xx … DX,hmsg next: MOV AH,9 INT 21H ;COMPARE VALUES CMP [COLOR="red"]<------- is this where it goes… CMP instruction never "returning true"? Programming Software Development by bd338 … of the three digit combination. However, when I CMP the first digit to the first number in the … al int 21h mov [bx], al add bx, 1 cmp al, 13 jne get_user_input confirm: mov ah, 02h mov …dl, 0ah int 21h cmp byte [serial], 02h jne fail success: mov ah, 09h… CMP doesn't update the JE and JNE flags? Programming Software Development by DrunkenCoffin … languages instead of wrappers. Today, while trying to learn the cmp function, and using je and jne, I've came upon… a problem. I tried using cmp to compare two values, and then je and jne to… edx,bs int 80h mov eax,[a] mov ebx,[b] cmp eax,ebx je truea jne falseb truea: mov eax,4… Re: CMP doesn't update the JE and JNE flags? Programming Software Development by DrunkenCoffin … of this, but this was meant to be just a cmp test, not a comparison of numbers. Actually, I wanted to… learn the cmp so I could do a loop, which would in turn… cmp 96, 69 executing a jl ?! Help! Programming Software Development by SapAuthor …: mov bh, [edx][esi] ;Assigns element to bh to compare. cmp bh, bl ; loops through, compares current min to next array… 150, ebx = 00009664 (bh = 96 and bl = 64) but the cmp bh, bl shows true for this statement and calls the… cmp and flags Programming Software Development by rcossy1023 … = 0x90000000 I want to compare and jump for flags so cmp EAX, ECX j(o,s,z,c) I do not… minimum number(-2147483648) and ECX being wrong? at -1879048192 would cmp be similar to sub when it does it operation for… Re: cmp and flags Programming Software Development by -Powerslave- … = 0x90000000 I want to compare and jump for flags so cmp EAX, ECX j(o,s,z,c) I do not… minimum number(-2147483648) and ECX being wrong? at -1879048192 would cmp be similar to sub when it does it operation for… Cmp not able to perform well Programming Software Development by eraphine … a wrong statement. the problem is with the declaration or cmp? jmp start msg db "c is equal to a… bx ; cx=ax/bx mov op1,cx ; mov op2,al ; cmp op1,0p2 ; compare the value of c and d je… Re: Cmp not able to perform well Programming Software Development by Assembly Guy Your problem's around these lines cmp op1, 0p2 je same jne different The second operand '0p2' … cmp instruction and conditional jumps Programming Software Development by os.hacker64 When you do something like [code] cmp eax,ebx ja start;jump if above start: [/code] Jump if above jumps if eax is greater or if ebx is greater? CMP with Oracle and Books Programming Web Development by sonu_gaurav1986 Can any body mail me the codes with snapshots for connectivity between oracle and CMP(EJB 3.0) . Can anybody suggest me the book for Java Enterprise Edition 5 with examples using Netbeans 6.1 or later. Mail me at <EMAIL SNIPPED> Assembler 64 bit masm palindrome program, help with cmp Programming Software Development by reloadmvp … code to work. It seems to be stuck on the cmp part. I am not sure if this is even right… rdi into bl ;**errors out right here*Emphasized Text Here*** cmp al, bl ;compare al to bl jne not_Palindrome ;if the… Heard of CMP.ly? Digital Media Digital Marketing by MktgRob … the internet community, a solution has been created. [url]http://cmp.ly/[/url] The link above will take you to a… Re: CMP instruction never "returning true"? Programming Software Development by Narue 02h is a control character, not the numeric value of '2'. What you're looking for is 32h. Re: CMP instruction never "returning true"? Programming Software Development by bd338 Thanks a lot Narue! :) ARRRGHH! How could I forget?! And the crash was just a result of me trying to access serial + 3 and thereby going outside the boundaries of the array. Re: CMP doesn't update the JE and JNE flags? Programming Software Development by Schol-R-LEA The problem isn't in the comparison, nor in the `je` or `jne` instructions; it is in the declarations for `a` and `b`. For each of those, you define them as a 2 reserved bytes; howvever, the `mov eax, [a]` instruction assumes that `a` is a doubleword (4 bytes), and as a result, it reads in the combined bytes of both `a` and `b`. The `mov ebx, [b]` … Re: CMP doesn't update the JE and JNE flags? Programming Software Development by DrunkenCoffin Sorry for double posting, but I can't edit my old one. I've got it all figured out by mixing some C with assembly, and compiling it with gcc. Thanks for helping! Re: cmp instruction and conditional jumps Programming Software Development by low_coder ; hi. ; it will jump if eax is greater. ; "jg" is the opposite Re: cmp instruction and conditional jumps Programming Software Development by josephbeluan can you give example of while loop in assymbly code? Re: cmp instruction and conditional jumps Programming Software Development by GunnerInc actually jb is the opposite of ja. ja and jg are basically the same, they will both jump if it second operand is > the first opcode... in your example it will jmp to start if eax is above or greater than ebx... ja and jg check differant flags, but do the same thing. @josephbeluan How would you write a "while Loop"? you need a … Re: Suggest me which type of Entity bean(CMP or BMP )i can use Programming Software Development by jwenting BMP are hardly ever needed, essentially they're useful only when you need to connect to a legacy system that's completely incompatible with CMP. Re: Assembler 64 bit masm palindrome program, help with cmp Programming Software Development by reloadmvp This should actually be coded in Yasm Haha, I have no idea what im doing here Re: Assembler 64 bit masm palindrome program, help with cmp Programming Software Development by turboscrew lea rdi, [s] ;moves first characters of s into rdi, if s is 64-bit aligned. otherwise crashes Maybe you meant to load the address of the first string byte into rdi? Re: helllp me plz Programming Software Development by Ancient Dragon >>cmp al,51h ; ESC pressed? ESC is not 51h -- its 1BH (27 decimal) you should be using an [URL="http://www.asciitable.com/"]ascii chart[/URL] Calculator using assembly programming-windows and TASM Programming Software Development by bryan.casin … , 1 JMP NEXT_STEP NEXT_STEP : CMP AH , '+' JE PLUS_SIGN_AH CMP AH , '-' JE MINE_SIGN_AH CMP AH , '*' JE MUL_SIGN_AH CMP AH , '/' JE DIV_SIGN_AH CMP AH , '%' JE MOD_SIGN_AH PLUS_SIGN_AH… Calculator program returning random values Programming Software Development by jhdobbins …, 0H INT 16H CMP AL, 0H JE FKEY1 CMP AL, 30H JL GETKEY1 CMP AL, 39H JG …CMP AL, 2AH JE PUSHOP CMP AL, 2FH JE PUSHOP CMP AL, 2BH JE PUSHOP CMP AL, 2DH JE PUSHOP CMP AL, 25H JE PUSHOP CMP help in`assembly project Programming Software Development by raseel …],100 dec si jmp two_char ;******************************************************** cmp aL, 4Ch ;compare L je …],10 dec si jmp two_char ;************************************************************* cmp aL, 56h ;compare V je … whats problem ? calculator code not work Programming Software Development by odaite …mov sign, 01h jmp readNumG readNumF: mov bx, numIn cmp sign, 00h ;Using + je readNumR ;Return now neg…push si push di cmp dl, 2Bh ; + je calcAdd cmp dl, 2Dh ; - je calcSub cmp dl, 2Ah ; * je calcMul cmp dl, 2Fh ;… cl, 00h cmp bx, 2710h jge getTTho cmp bx, 03E8h jge getThou cmp bx, 0064h jge getHun cmp bx, 000Ah jge… Space Invaders Programming Software Development by Joonas …jossa osuma tappoi viereisen olion .loop sub di,InvaderDistance_y cmp di,[invaderLocation] jb .poistumispaikka add dx,InvadersPerRow LOOP…cx,(InvaderDistance_y / scrwidth + 2) .loop2 add di,scrwidth cmp di,[invaderLocation] ja .poistumispaikka2 ; pudottaudutaan samalle riville LOOP .…