flat assembler
Message board for the users of flat assembler.

Index > Main > Parsing input from FASMLIB streams

Author
Thread Post new topic Reply to topic
kanvuanza1



Joined: 16 Jun 2012
Posts: 1
kanvuanza1
Hello, board!

I'm trying to parse some formatted input using text.read.dec_b FASMLIB function, but it always reach EOF. Parsing with conv.dec_b dosen't works well too.

Code:
   %define $buffer dword [ebp - 4]
     %define $stream dword [ebp - 8]

 ;reserve space for buffer
   push    255
 call    mem.alloc
   mov     $buffer, eax
        
    ;read a line from STDIN into buffer
 push    255, $buffer
        call    stdin.read.line
     jc      error
       
    ;create stream from line
    push    eax, $buffer
        call    mstream.create
      jc      error
       mov     $stream, eax

    push    $stream
     call    text.read.dec_b
     jc      error
    


Edit: I posted here because the library author frequents here, but tell me if you know a more appropriate place.[/b]
Post 16 Jun 2012, 11:41
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-2020, Tomasz Grysztar.

Powered by rwasa.