Skip to content

Commit

Permalink
print_opcode_mask: fix inverted condition (bit 1: allowed)
Browse files Browse the repository at this point in the history
  • Loading branch information
smx-smx committed Aug 4, 2024
1 parent 25eb8b4 commit c705626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xzre.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ void main_shared(){

void print_opcode_mask(u64 mask, int mask_offset){
for(unsigned i=0x80 + mask_offset; mask; mask >>= 1, i++){
// bit 1: this opcode is forbidden
BOOL allowed = (mask & 1) == 0;
// bit 1: this opcode is allowed
BOOL allowed = (mask & 1) == 1;
printf("%s 0x%"PRIX8" (0x%"PRIX8") -> %s\n",
(allowed) ? "+" : "-",
(u8)i, XZDASM_OPC(i),
Expand Down

0 comments on commit c705626

Please sign in to comment.