Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
bfasm optimizations: ditch ip/g
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos committed Nov 23, 2020
1 parent 16b3654 commit 3dca1be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bfasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int main(int argc, char * argv[]) {
if(vm) for (n = 0; n < sizeof(uvm); n++) m[n + 20 + sizeof(s)] = uvm[n];
else for (n = 0; n < sizeof(ubf); n++) m[n + 20 + sizeof(s)] = ubf[n];
m[6] = 0;
m[8] = 0;
m[8] = tiny * 2;
m[9] = STACK;
m[10] = m[9] + 2;
outbf();
Expand Down Expand Up @@ -450,8 +450,8 @@ Lab:;
m[6] = 1;
outbf(); /* last */

if(skipped_inits != 4 && tiny) {
fprintf(stderr, "*** ERROR: Skipped %d prologues; expected 4. Can't build tiny code.\n", skipped_inits);
if(skipped_inits > 6 && tiny) {
fprintf(stderr, "*** ERROR: Skipped %d prologues; more than 6. Can't build tiny code.\n", skipped_inits);
return 1;
}

Expand Down

0 comments on commit 3dca1be

Please sign in to comment.