This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Make .TXT on .ASM

I need to make an .asm program to save some values in a .txt file.
Using C would be much easier, although I cant use it this time.
Any idea how to do it?

Parents
  • #include <stdio.h>

    FILE *f1;

    main()

    { int cont = 00;

    int address = 30;

    f1 = fopen ("out.txt", "wt");

    for (cont = 0;cont <= 10; cont = cont + 1) { fprintf (f1, "%d\t%d\n", cont, address); address = address + 1; } fclose (f1);
    }

    I need this program in assembly, is it possible?

Reply
  • #include <stdio.h>

    FILE *f1;

    main()

    { int cont = 00;

    int address = 30;

    f1 = fopen ("out.txt", "wt");

    for (cont = 0;cont <= 10; cont = cont + 1) { fprintf (f1, "%d\t%d\n", cont, address); address = address + 1; } fclose (f1);
    }

    I need this program in assembly, is it possible?

Children