[][src]Module zeerust::ops

This module provides the symbolic representation of all z80 instructions You can construct these yourself, or you can parse binaries using zeerust::cpu::opcodes.

Enums

JumpConditional

Jumps and Returns can be conditional on certain flags being set

Location8

Anywhere an 8-bit value could could come from or be stored to

Location16

Anywhere a 16-bit value could could come from or be stored to

Op

Op represents a single operation. This representation (and backing implementation) is more expressive than the processor itself. For example ADD8(Location8::Reg(Reg8::D), Location8::Immediate(10)) is a valid representation, but the Z80 features no such instruction. Usually executing an instruction like this will just work, but in some cases a panic will occur (Such as attempting to store to an immediate, which doesn't make any sense). It is probably best to stick to the "guide rails" of the Z80 operations.

Reg8

8 bit registers

Reg16

16-bit registers

StatusFlag

Status Flags. Implemented in the Z80 as a bitfield on register F