inline help...? :(. Monday, 01-Mar-99 14:24:23 #include < string.h> #include < stdio.h> #include < stdlib.h> #include < conio.h> char new[20]; char *new_ptr=new; char buf[80]; char *buf_ptr=buf; long a; int i; int length; main() { puts("enter username: \n"); gets(buf); length=strlen(buf); printf("username : %s\n",buf); printf("using buf_ptr username : %s\n",buf_ptr); printf("username is %d characters.\n",length); printf("firstletter in hex = %x\n",buf[0]); asm{ mov cx,03 xor ax,ax mov si,buf_ptr lodsb add ah,al rol ax,1 rol ax,1 rol ax,1 -> it works fine until here, -> then repne -> repne compiles as repne xor -> ax,ax...how can I -> write inline code that -> loops back to lodsb...how -> can -> you use a: lodsb -> loop a (or some -> equivalent)...debugged this -> with softice and the values -> are accurate the first -> time, but it xor's ax,ax -> and doesn't loop for the -> rest -> of the length of -> username... } return 0; } snakebyte__ |
snakebyte's thread (snakebyte__@hotmail.com) (20-Feb-99 09:08:43) |