flat assembler
Message board for the users of flat assembler.
Index
> DOS > Read a line from file |
Author |
|
eek 06 May 2007, 01:16
From an old file of mine:
mov ah,3F ;<read mov al,00 ;<bl has file handle mov cx,00FF ;<btyes to read to buffer, value is up to you int 21 ;Then you have to look through the buffer for line breaks cmp w[si],0A0D ;look for line break in buffer ifz-call L3 So if you loop the line break you can find line 6. |
|||
06 May 2007, 01:16 |
|
eek 06 May 2007, 02:17
There is also int21 ah42
...if you can be bothered figuring it out |
|||
06 May 2007, 02:17 |
|
Picnic 06 May 2007, 09:06
thanks for the answer eek.
I have to look for line breaks, i got it |
|||
06 May 2007, 09:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.