WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

WORD

xspider
Quote Post


Very Active Member
****

Group: Members
Posts: 64
Member No.: 10609
Joined: 27-July 08


he guys smile.gif i have a lill question again laugh.gif

can somebody tell me how to delete two hardcoded bytes from a whole string which are repeated?!

for exemple 0x1A0x1B0x2C0x2D becomes 1A1B2C2D

hope it's all clear smile.gif

thx cheers.gif
PMEmail Poster
Top
Gunner
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 211
Member No.: 27608
Joined: 11-October 09


Word up man... :-)

I dunno, something like this? Off the top of my head

CODE

   lea     esi, szTestString
   lea     edi, lpszTestString

doit:
mov  al, byte ptr [esi]
cmp  al, 0h
je  Done
inc     esi
cmp     al, "0"
je      doit
cmp     al, "x"
je      doit
mov  byte ptr [edi], al
inc     edi
jmp  doit  
   
Done:



Sounds like homework to me...
PMEmail PosterUsers Website
Top
xspider
Quote Post


Very Active Member
****

Group: Members
Posts: 64
Member No.: 10609
Joined: 27-July 08


laugh.gif Korn's p0w4 music.gif thx mate biggrin.gif works fine wink.gif
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google