Skip to content

Commit 84c844f

Browse files
Fixed optimizer for 6502.
1 parent 9c032f7 commit 84c844f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ugbc/src/targets/atari/_optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ static int optim_remove_unused_temporary( Environment * _environment ) {
10921092
if ( ! result ) result = po_buf_match(buf[0], " AND *", v1 );
10931093
if ( ! result ) result = po_buf_match(buf[0], " EOR *", v1 );
10941094
if ( ! result ) result = po_buf_match(buf[0], " LD* *", v2, v1 );
1095-
if ( ! result ) result = po_buf_match(buf[0], " ORA *", v2, v1 );
1095+
if ( ! result ) result = po_buf_match(buf[0], " ORA *", v1 );
10961096
if ( ! result ) result = po_buf_match(buf[0], " SBC *", v1 );
10971097
if ( ! result ) result = po_buf_match(buf[0], " CMP *", v1 );
10981098
if ( ! result ) result = po_buf_match(buf[0], " CPX *", v1 );

0 commit comments

Comments
 (0)