Skip to content

Commit

Permalink
fix bitmanip immediate ops using register
Browse files Browse the repository at this point in the history
  • Loading branch information
celerizer committed Jan 2, 2025
1 parent 560c157 commit 42b821b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions emu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2389,19 +2389,28 @@ H8_OP(op6f)
H8_OP(op70)
{
/** BSET #xx:3, Rd */
rs_rd_b(system, *rd_b(system, system->dbus.bh), rd_b(system, system->dbus.bl), bset);
h8_byte_t immediate;

immediate.u = system->dbus.bh;
rs_rd_b(system, immediate, rd_b(system, system->dbus.bl), bset);
}

H8_OP(op71)
{
/** BNOT #xx:3, Rd */
rs_rd_b(system, *rd_b(system, system->dbus.bh), rd_b(system, system->dbus.bl), bnot);
h8_byte_t immediate;

immediate.u = system->dbus.bh;
rs_rd_b(system, immediate, rd_b(system, system->dbus.bl), bnot);
}

H8_OP(op72)
{
/** BCLR #xx:3, Rd */
rs_rd_b(system, *rd_b(system, system->dbus.bh), rd_b(system, system->dbus.bl), bclr);
h8_byte_t immediate;

immediate.u = system->dbus.bh;
rs_rd_b(system, immediate, rd_b(system, system->dbus.bl), bclr);
}

H8_OP(op73)
Expand Down

0 comments on commit 42b821b

Please sign in to comment.