Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JiapengLi/mJPatch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: lobaro/mJPatch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 17, 2022

  1. Copy the full SHA
    a8cd003 View commit details
Showing with 7 additions and 7 deletions.
  1. +7 −7 mjp.c
14 changes: 7 additions & 7 deletions mjp.c
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ static int mjp_read(mjp_dt_t addr)
int mjp_start(mjp_des_wr_t des_wr_cb, mjp_org_rd_t org_rd_cb, mjp_copy_t copy_cb)
{
memset(&mjp, 0, sizeof(mjp_t));
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
mjp.last_dt = MJP_EOF;
mjp.des_wr_cb = des_wr_cb;
mjp.org_rd_cb = org_rd_cb;
@@ -145,7 +145,7 @@ int mjp_apply_feed(int dt)
}
if (val != 0) {
mjp.ofile_addr += val;
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
}
break;
case EQL:
@@ -167,7 +167,7 @@ int mjp_apply_feed(int dt)
mjp.ofile_addr++;
}
}
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
}
break;
case BKT:
@@ -177,7 +177,7 @@ int mjp_apply_feed(int dt)
}
if (val != 0) {
mjp.ofile_addr -= val;
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
}
break;
default:
@@ -291,7 +291,7 @@ int mjp_parse_feed(int dt)
if (val != 0) {
mjp_log_cmd(mjp.cmd, mjp.ofile_addr, mjp.dfile_addr, val);
mjp.ofile_addr += val;
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
}
break;
case EQL:
@@ -304,7 +304,7 @@ int mjp_parse_feed(int dt)
mjp_log_cmd(mjp.cmd, mjp.ofile_addr, mjp.dfile_addr, val);
mjp.dfile_addr += val;
mjp.ofile_addr += val;
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
}
break;
case BKT:
@@ -316,7 +316,7 @@ int mjp_parse_feed(int dt)
if (val != 0) {
mjp_log_cmd(mjp.cmd, mjp.ofile_addr, mjp.dfile_addr, val);
mjp.ofile_addr -= val;
mjp.cmd = MJP_EOF;
mjp.cmd = MJP_MOD;
}
break;
default: