Skip to content

Z80NAssembly Class

Definition

public static class Z80NAssembly

View source

Properties

Name Description
OpcodeDefinitions

Methods

Name Description
ADD(Z80Assembly.RegisterBC, Z80Assembly.RegisterA)
ADD(Z80Assembly.RegisterBC, ReferenceOrWord)
ADD(Z80Assembly.RegisterDE, Z80Assembly.RegisterA)
ADD(Z80Assembly.RegisterDE, ReferenceOrWord)
ADD(Z80Assembly.RegisterHL, Z80Assembly.RegisterA)
ADD(Z80Assembly.RegisterHL, ReferenceOrWord)
BRLC(Z80Assembly.RegisterDE, Z80Assembly.RegisterB)
BSLA(Z80Assembly.RegisterDE, Z80Assembly.RegisterB)
BSRA(Z80Assembly.RegisterDE, Z80Assembly.RegisterB)
BSRF(Z80Assembly.RegisterDE, Z80Assembly.RegisterB)
BSRL(Z80Assembly.RegisterDE, Z80Assembly.RegisterB)
EnumerateOpcodeDefinitions()
JP(Port<Z80Assembly.RegisterC>)
JP(ReadOnlySpan<Z80Assembly.RegisterC>)
LDDRX() LDDRX — Load and Decrement Extended Repeated. Copies the byte at (HL) to (DE) unless it equals A, then decrements HL, increments DE and decrements BC, repeating until BC is zero.
LDDX() LDDX — Load and Decrement Extended. Copies the byte at (HL) to (DE) unless it equals A, then decrements HL, increments DE and decrements BC.
LDIRX() LDIRX — Load and Increment Extended Repeated. Copies the byte at (HL) to (DE) unless it equals A, then increments HL and DE and decrements BC, repeating until BC is zero.
LDIX() LDIX — Load and Increment Extended. Copies the byte at (HL) to (DE) unless it equals A, then increments HL and DE and decrements BC.
LDPIRX() LDPIRX — Load Pattern Repeated Extended. Copies bytes to (DE) from an eight byte aligned pattern at HL, skipping bytes that equal A, repeating until BC is zero.
LDWS() LDWS — Load with Screen Increment. Copies the byte at (HL) to (DE), then increments L and D, matching the ZX Spectrum screen memory layout.
MIRROR(Z80Assembly.RegisterA)
MUL(Z80Assembly.RegisterD, Z80Assembly.RegisterE)
NEXTREG(ReferenceOrByte, Z80Assembly.RegisterA)
NEXTREG(ReferenceOrByte, ReferenceOrByte) NEXTREG NN,NN — Next Register. Writes a value to the specified ZX Spectrum Next hardware register.
OUTINB() OUTINB — Output and Increment with No Decrement. Writes the byte at (HL) to port (C), then increments HL, leaving B unchanged.
PIXELAD() PIXELAD — Pixel Address. Sets HL to the ZX Spectrum screen address of the pixel with coordinates in D and E.
PIXELDN() PIXELDN — Pixel Down. Updates HL from a ZX Spectrum screen address to the address of the pixel directly below.
PUSH(ReferenceOrWord) PUSH NNNN — Push. Pushes the register pair onto the stack.
SETAE() SETAE — Set A by E. Sets A to a mask with the single bit selected by the lower three bits of E set.
SWAPNIB() SWAPNIB — Swap Nibbles. Swaps the high and low nibbles of A.
TEST(ReferenceOrByte) TEST NN — Test. Performs a bitwise AND of the operand with A to set the flags, discarding the result.