Skip to content

Instantly share code, notes, and snippets.

@kurianbenoy
Created November 5, 2018 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurianbenoy/613b868dcbf26d44c47fffc06cd290b9 to your computer and use it in GitHub Desktop.
Save kurianbenoy/613b868dcbf26d44c47fffc06cd290b9 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void main()
{
FILE *p;
char label[100],opcode[100],operand[100],c;
p = fopen("assembly.txt","r");
while((c= fgetc(p) != EOF)
{
if (feof(p))
break;
printf("%c\n",c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment