Skip to content

Commit

Permalink
Fix stupid bug where attempting to load A from a pointer would write …
Browse files Browse the repository at this point in the history
…to memory

rather than reading from it.
  • Loading branch information
davidgiven committed Feb 18, 2024
1 parent 596072f commit 434804f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cowbe/archz80.cow.ng
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,9 @@

sub E_ldax(ptr: RegId) is
R_flush(REG_A);
E("\tld (");
E("\tld a, (");
E_reg(ptr);
E("), a\n");
E_nl();
E(")\n");
end sub;

sub E_lda(sym: [Symbol], off: Size) is
Expand Down

0 comments on commit 434804f

Please sign in to comment.