Skip to content

Commit

Permalink
Allow oiting a in notation for ALU instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillof committed Jul 3, 2024
1 parent c6f26dc commit e774c40
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions share/cpu/z80.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,21 @@


.addressing_mode a__immediate {
notation: a,n
notation [
: a,n
: n
]
arguments {
n: byte
}
encoding: .opcode, n
}

.addressing_mode a__indexed {
notation: a,(i+d)
notation [
: a,(i+d)
: (i+d)
]
arguments {
i: index_register
d: signed_byte
Expand Down Expand Up @@ -176,7 +182,10 @@
}

.addressing_mode a__indirect_hl {
notation: a,(hl)
notation [
: a,(hl)
: (hl)
]
}

.addressing_mode a__i_or_r {
Expand All @@ -188,7 +197,10 @@
}

.addressing_mode a__register {
notation: a,r
notation [
: a,r
: r
]
arguments {
r: register
}
Expand Down

0 comments on commit e774c40

Please sign in to comment.