flat assembler
Message board for the users of flat assembler.

Index > Windows > Aditional ASCII chars problem

Author
Thread Post new topic Reply to topic
Barf



Joined: 17 Sep 2004
Posts: 34
Location: Poland
Barf 14 Apr 2006, 15:53
Hi.
I have a verry strange problem. I'm writing program whitch analize text files. I don't know why, it don't take chars with codes like 0b9h for greater than 20h(space).
I use such code to skip spaces and enters:
Code:
NextWord:
    mov bh, [edi]
    cmp bh, 0dh
    jne .NotNewLine
    mov eax, [cLineNumber]
    inc eax
    mov [cLineNumber], eax
 .NotNewLine:
    cmp bh, 20h
    jg  .lEnd
    inc edi
    jmp NextWord
 .lEnd:
    ret    

What's wrong?
Post 14 Apr 2006, 15:53
View user's profile Send private message Reply with quote
Ivan2k2



Joined: 08 Sep 2004
Posts: 80
Location: Russia, Angarsk
Ivan2k2 14 Apr 2006, 16:07
hi Barf
use ja instead jg, because jg is used for SIGNED integers
Post 14 Apr 2006, 16:07
View user's profile Send private message ICQ Number Reply with quote
Barf



Joined: 17 Sep 2004
Posts: 34
Location: Poland
Barf 14 Apr 2006, 18:04
thanks, now it works correctly
Post 14 Apr 2006, 18:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.