Re: opening and reading a character from a file with emu8086 assembler




spamt...@xxxxxxxxxx wrote:
> Hi! I am new to assembly. I am currrently writing a
> program that opens a file, reads on character at a
> time and print each character on the screen.
> It prints the '$' character in a seemingly infinite
> loop. Here is my code:
>
...
>
> so where is the bug?

I have some old DOS code on all this. If you are interested
just send a private email. It is written in the NASM syntax
and I used NASMIDE for my 16 bit DOS programming.

Debugging other peoples code is boring. If you have a good
tutorial source there should be plenty of bug free sources
for you to learn from.

Regards,
John

.



Relevant Pages

  • Is there a list of error numbers for G77 ???
    ... using a character * 255 variable. ... It opens the file OK, but gets an error on the first read, ... character * 255 inputline ...
    (comp.os.msdos.djgpp)
  • Re: Form - open subform code
    ... > opens the form, but you said there is something wrong. ... FROM tblContacts INNER JOIN (tblClaims INNER JOIN tblReturns ON ... , go into tblReturns, enter a character somewhere, go back into ... press my button on the subform and the correct record shows. ...
    (microsoft.public.access.formscoding)
  • Re: File Handling in C
    ... >I need to make a hexdump utility for a Computer Architecture class. ... The file opens correctly, it loops and prints ... but it wont get the character. ... RTFM about other printf formats. ...
    (microsoft.public.vc.language)
  • Re: Macro that deletes the last character in a cell
    ... Richard, would you be so kind as to explain your use of the $ character ... big white space that opens). ... I need a macro that will open the cell, ...
    (microsoft.public.excel.programming)
  • Re: updating tools
    ... >When I use backspace to correct my mistake, vi does not open the proper ... It can't find the file and opens a new one. ... Use ctrl-W to "erase word backwards" which works only on ... If you check man ed, or man edlin, you may find a single character ...
    (comp.lang.perl.misc)