Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conorarmstrong/zx_go
/ functions
Functions
5,503 in github.com/conorarmstrong/zx_go
⨍
Functions
5,503
◇
Types & classes
458
↓ 16 callers
Function
NewMemory
NewMemory builds the SAM memory with 512 KB internal RAM and no external RAM (the default config) from the two 16 KB ROM halves.
pkg/sam/memory.go:76
↓ 16 callers
Function
NewMicrodriveBus
NewMicrodriveBus creates a fresh bus with no cartridges inserted and all drives idle. Each slot starts with a freshly-allocated blank Cartridge so the
pkg/if1/microdrive.go:280
↓ 16 callers
Method
NextByte
NextByte returns the next IN-port byte for the current frame. The ULA's RZX playback hook calls this for every CPU IN instruction. Returns ErrPlayback
pkg/rzx/playback.go:141
↓ 16 callers
Method
RGB
RGB returns the (red, green, blue) channels for the entry at index, each expanded from its 3-bit packed form to a full 8-bit channel value via the sta
pkg/next/palette/palette.go:65
↓ 16 callers
Method
Reset
Reset clears all registers and internal state.
pkg/ay/ay.go:145
↓ 16 callers
Method
adc
Add with carry
pkg/z80/z80.go:3919
↓ 16 callers
Method
dec
(val byte)
pkg/z80/z80.go:3879
↓ 16 callers
Method
envLevel
envLevel returns the current 0-15 envelope level for generator g.
pkg/saa1099/saa1099.go:145
↓ 16 callers
Function
fakeSystem
fakeSystem produces an AudioSystem instance that's safe to use without an oto context — we exercise the queue logic only, not the playback path.
pkg/audio/audio_test.go:14
↓ 16 callers
Method
inc
Inc/Dec operations with proper flag handling
pkg/z80/z80.go:3867
↓ 16 callers
Method
ixh
()
pkg/z80/z80.go:3801
↓ 16 callers
Method
ixl
()
pkg/z80/z80.go:3802
↓ 16 callers
Method
iyh
()
pkg/z80/z80.go:3803
↓ 16 callers
Method
iyl
()
pkg/z80/z80.go:3804
↓ 16 callers
Method
sbc
Subtract with carry (borrow)
pkg/z80/z80.go:3946
↓ 16 callers
Method
togglePause
()
cmd/zx_go/main.go:1493
↓ 15 callers
Function
Disassemble
Disassemble disassembles count instructions starting from addr.
pkg/debugger/disasm.go:31
↓ 15 callers
Method
GetAltROM
GetAltROM exposes one of the two alt-ROM 16K buffers as a slice for the debugger's bank-inspect path. Bank 0/1 only; out-of-range returns nil.
pkg/memory/memory.go:460
↓ 15 callers
Method
GetDisciple
GetDisciple returns the Disciple interface (if enabled)
pkg/peripherals/manager.go:661
↓ 15 callers
Method
HandlePortRead
HandlePortRead is the peripheral-manager-compatible read handler. Decodes the port address against the three Kempston patterns and returns the corresp
pkg/kempmouse/kempmouse.go:103
↓ 15 callers
Method
HandlePortRead
HandlePortRead handles reads from Multiface I/O ports. On real hardware, IN to the Multiface port controls page-in/page-out based on A7: A7=1 pages in
pkg/multiface/multiface.go:211
↓ 15 callers
Method
HandleWrite
HandleWrite is the memory.PeripheralWrite hook. Writes to the 0x2000-0x3FFF window land in the bank selected by port 0xE3 EXCEPT when MAPRAM is set an
pkg/next/divmmc/divmmc.go:921
↓ 15 callers
Method
LoadROM
LoadROM loads a single ROM file. It tries the embedded ROMs first, then falls back to the filesystem path.
pkg/roms/rom_manager.go:141
↓ 15 callers
Method
Mode
()
pkg/next/compositor/compositor.go:56
↓ 15 callers
Function
New
New returns a dispatcher with the boot-path minimum handler set (M_GETHANDLE, M_DRVAPI) pre-registered. File API handlers (F_OPEN, F_READ, etc.) are N
pkg/next/esxdos/esxdos.go:121
↓ 15 callers
Function
ParseCondition
--- parser --- ParseCondition tokenizes + parses an expression. Returns an error positioning the failure within the input.
pkg/debugger/condition.go:78
↓ 15 callers
Function
ParseDSK
ParseDSK parses a DSK image from a byte slice. Both the original CPCEMU "MV - CPCEMU Disk-File" format and the EXTENDED CPC DSK variant are supported.
pkg/plus3fdc/disk.go:149
↓ 15 callers
Method
SetSpeedSelect
SetSpeedSelect installs the NextReg 0x07 speed selector. Only the low 2 bits are honoured; other bits are ignored. A no-op once the speed has been loc
pkg/z80/z80.go:629
↓ 15 callers
Method
StepInstructionWithIRQ
StepInstructionWithIRQ executes one Z80 instruction at the M1 sample point — mirrors the per-iteration body of ExecuteFrame so that debugger-driven si
pkg/z80/z80.go:1116
↓ 15 callers
Method
TapKey
TapKey presses a key, runs holdFrames frames, releases it, then runs gapFrames more frames. The default values (3 hold + 2 gap) give the Spectrum's ke
pkg/testharness/testharness.go:211
↓ 15 callers
Method
WriteData
WriteData feeds the next byte of a write transfer (Beta port $7F write), or just latches the data register when no write is in flight (e.g. before a S
pkg/betadisk/fdc.go:299
↓ 15 callers
Method
decompressZ80
decompressZ80 decompresses Z80 RLE compressed data
pkg/snapshot/z80.go:258
↓ 15 callers
Method
executeFDInstruction
(opcode byte)
pkg/z80/z80.go:3373
↓ 15 callers
Method
find
(dir uint32, name string)
pkg/next/sdcard/fat32_test.go:142
↓ 15 callers
Method
handleCommand
(line string)
cmd/zx_go/debugger.go:909
↓ 15 callers
Method
loadIXd
()
pkg/z80/z80.go:3251
↓ 15 callers
Method
loadIYd
()
pkg/z80/z80.go:3283
↓ 15 callers
Function
newTestULA
newTestULA constructs a minimal ULA for the RZX hook tests, reusing the test-ROM helpers from ula_test.go so we don't need a separate memory construct
pkg/ula/rzx_test.go:14
↓ 15 callers
Method
reboot
()
cmd/zx_go/main.go:1391
↓ 15 callers
Function
redirectConfig
redirectConfig is the local in-package helper. Cross-package callers should use install/installtest.RedirectConfig. We can't just import installtest h
pkg/next/install/install_test.go:22
↓ 15 callers
Method
statusByte
statusByte computes the active-low interrupt bits (1 = inactive) from the current frame-relative T-state: the frame INT is pending for samIntActiveCyc
pkg/sam/io.go:144
↓ 14 callers
Method
Checksum
Checksum verifies the three checksum fields of block N against the stored data using the same Z80-style ADC loop as the IF1 ROM (microdrive.c:185-250)
pkg/microdrive/microdrive.go:223
↓ 14 callers
Method
ComposeScanline
(y int, ulaRGBA []byte, dst []byte)
pkg/ula/ula.go:256
↓ 14 callers
Method
Disabled
Disabled reports whether AY output is suppressed (NextReg 0x06 bits 1-0 == 11, "hold all AY in reset").
pkg/ay/engine.go:53
↓ 14 callers
Method
Eval
Eval evaluates the parsed condition against the current state. Errors are programmer bugs (e.g. unknown register name caught at parse time would mean
pkg/debugger/condition.go:52
↓ 14 callers
Method
FindSector
FindSector locates a sector by R on the track by walking the byte stream for matching IDAMs. Returns nil if not present. Used by tests for verificatio
pkg/plus3fdc/disk.go:30
↓ 14 callers
Method
IsMultifaceEnabled
IsMultifaceEnabled returns whether Multiface is enabled
pkg/peripherals/manager.go:656
↓ 14 callers
Method
LoadROMBytes
LoadROMBytes installs an 8 KB ROM image from a byte slice. Used by the embedded-ROM fallback path in pkg/roms.
pkg/if1/if1.go:69
↓ 14 callers
Function
New
New returns a Bank with all channels at level 0 (silent).
pkg/next/dac/dac.go:46
↓ 14 callers
Function
New
New returns an RTC backed by the host system clock.
pkg/next/rtc/rtc.go:48
↓ 14 callers
Method
ReadStatus
ReadStatus returns the Main Status Register byte. The CPU reads this from port 0x2FFD on the +3.
pkg/plus3fdc/upd765.go:395
↓ 14 callers
Method
RemovePreFetchHook
RemovePreFetchHook deregisters a pre-fetch hook by name. Safe to call for a name that was never registered.
pkg/z80/z80.go:1038
↓ 14 callers
Method
Root
Root returns the panel's top-level object.
pkg/debugger/imageview.go:56
↓ 14 callers
Method
Save
Save writes config.json atomically (write-temp + rename) so a crash mid-write doesn't truncate the existing config.
pkg/config/config.go:87
↓ 14 callers
Method
Set
Set updates the stored byte.
pkg/next/wire.go:657
↓ 14 callers
Method
Start
Start positions the cursor at the `which`-th input recording block (0-indexed, ignoring non-IRB blocks) and returns the snapshot block that immediatel
pkg/rzx/playback.go:62
↓ 14 callers
Method
Status
Status returns the NextReg 0xA9 status byte: TX-ready always set (we accept any byte), RX-ready set when rxBuf has pending bytes.
pkg/next/uart/uart.go:44
↓ 14 callers
Method
StoreFrame
StoreFrame closes the in-progress frame, recording the supplied instruction count alongside the IN bytes captured since the previous StoreFrame. The b
pkg/rzx/recording.go:150
↓ 14 callers
Function
WirePeripheralMasks
WirePeripheralMasks installs OnWrite handlers for NR$81, $85, $89, $8A that apply the reserved-bit masks the FPGA enforces. Without these, the dispatc
pkg/next/wire.go:1041
↓ 14 callers
Method
WriteCommand
(val byte)
pkg/ula/ula.go:320
↓ 14 callers
Function
decodePort
decodePort returns the port class for an I/O address.
pkg/if1/ula.go:46
↓ 14 callers
Function
newBlankInert
newBlankInert builds a machine and asserts the inert-peripherals invariant indirectly by never wiring a Spectrum peripherals manager — the machine own
pkg/zx8x/ula_spec_test.go:577
↓ 14 callers
Function
newNextEmulator
newNextEmulator constructs the production Spectrum Next emulator from scratch (cold start). For runtime model switches use the classic newEmulator(mod
cmd/zx_go/next.go:200
↓ 14 callers
Method
onM1Fetch
onM1Fetch implements the CPU-generated display: an M1 fetch from the upper 32K (A15 = 1) with bit 6 clear is turned into a NOP while its byte is drawn
pkg/zx8x/machine.go:82
↓ 14 callers
Function
pushTTEntry
(t *timeTravelBuffer, insn uint64, pc uint16, label string)
cmd/zx_go/timetravel_test.go:26
↓ 14 callers
Method
record
record appends a row, evicting the oldest when full.
cmd/zx_go/tracedb.go:60
↓ 14 callers
Function
resetSymbolTable
======================================================================== Symbol map tests. ===========================================================
cmd/zx_go/debug_test.go:118
↓ 14 callers
Function
runFrames
(m *Machine, n int)
pkg/sam/integration_test.go:44
↓ 14 callers
Method
setStatus
(s string, isErr bool)
pkg/debugger/bankinspect.go:197
↓ 14 callers
Method
writeByte
writeByte sends 8 bits MSB-first and samples the slave's ACK on the 9th clock. Returns true when the slave ACKed (SDA pulled low).
pkg/next/rtc/i2c_test.go:32
↓ 13 callers
Method
Bank
Bank returns a slice aliasing the physical bytes of bank number `bank` in `kind`. Writes to the returned slice MUST be visible to the running emulator
pkg/debugger/bankaccess.go:21
↓ 13 callers
Method
Get
Get returns the raw byte.
pkg/next/wire.go:660
↓ 13 callers
Method
GetTapePlayer
GetTapePlayer returns the currently loaded tape player (or nil).
pkg/ula/ula.go:1827
↓ 13 callers
Method
LastE3
()
cmd/zx_go/debugger.go:1226
↓ 13 callers
Method
MemoryBus
Memory returns the underlying memory.Memory.
pkg/testharness/testharness.go:129
↓ 13 callers
Function
New
New returns an empty UART. Initial state: TX FIFO has space, RX FIFO is empty, AT+GMR returns DefaultVersion.
pkg/next/uart/uart.go:34
↓ 13 callers
Function
NewPlayback
NewPlayback wraps a parsed File for playback. Start must be called before any other method does useful work.
pkg/rzx/playback.go:51
↓ 13 callers
Function
NewULA
NewULA constructs a fresh IF1 ULA wrapping the supplied microdrive bus. If bus is nil a fresh one is allocated.
pkg/if1/ula.go:82
↓ 13 callers
Method
PatternByte
PatternByte returns the byte at the given pattern-RAM offset. Useful for tests; out-of-range returns 0.
pkg/next/sprite/sprite.go:423
↓ 13 callers
Method
ReadSector
ReadSector returns a copy of the 256-byte sector at (cylinder, side, sector).
pkg/betadisk/image.go:89
↓ 13 callers
Method
ReadStatus
()
pkg/ula/ula.go:312
↓ 13 callers
Method
RenderScanline
RenderScanline renders one raster line of the LoRes/Radastan layer into dst (one byte = one 8-bit palette index per output pixel). vc is the raster Y
pkg/next/lores/lores.go:160
↓ 13 callers
Method
RenderScanline
RenderScanline writes one row (LineWidth bytes) of palette-indexed pixels from the active framebuffer to dst, applying the FPGA's scroll + wrap + per-
pkg/next/layer2/layer2.go:267
↓ 13 callers
Function
SDCardRoot
SDCardRoot returns the host directory whose contents are exposed to the emulator as a virtual FAT16 SD card. Resolution order: 1. $ZX_GO_NEXT_SD_DIR
pkg/next/install/install.go:295
↓ 13 callers
Method
Selected
Selected returns the active chip index (0..2).
pkg/ay/engine.go:49
↓ 13 callers
Method
SetLMPR
Paging-register writes (called by the I/O port dispatch). LMPR, HMPR, LEPR and HEPR change the CPU map; VMPR only selects the displayed page.
pkg/sam/memory.go:193
↓ 13 callers
Method
SetRAMWriteHook
SetRAMWriteHook installs a debug callback fired on every successful RAM write that lands via the Memory.Write path. bank is the 16K SRAM index, addr i
pkg/memory/memory.go:1578
↓ 13 callers
Method
SetTapePlayer
SetTapePlayer sets the tape player for tape loading. The tape clock is re-synced to the current CPU T-state so playback starts "now" rather than jumpi
pkg/ula/ula.go:1794
↓ 13 callers
Method
SpeedSelect
SpeedSelect returns the currently-installed NextReg 0x07 speed selector (0..3). Useful for snapshot save and for the dispatcher to read back what was
pkg/z80/z80.go:658
↓ 13 callers
Method
Tick
Tick is called once per simulated frame. If the frame index is a multiple of `every`, a snapshot is emitted to stderr (via slog) and optionally a scre
cmd/zx_go/debug.go:341
↓ 13 callers
Method
ULA
ULA returns the underlying ULA. Most tests should use the ScreenImage / ScreenText helpers instead of touching this directly.
pkg/testharness/testharness.go:133
↓ 13 callers
Method
WriteFile
WriteFile serialises the cartridge to disk at the given path.
pkg/microdrive/microdrive.go:335
↓ 13 callers
Method
crashDetectSet
(args []string)
cmd/zx_go/crashdetect_cmd.go:115
↓ 13 callers
Function
headerText
(s string, c color.Color)
pkg/debugger/debugger.go:583
↓ 13 callers
Function
newNextMem
newNextMem builds a ModelNext memory.Memory using the sandboxed install dir so the test never touches the user's real config. Mirrors the helper patte
pkg/memory/next_nr8e_test.go:13
↓ 13 callers
Method
popC
popC pops a 16-bit value through contended read cycles (lo at SP, hi at SP+1).
pkg/z80/z80.go:459
↓ 13 callers
Function
runOneFrameHeadless
runOneFrameHeadless advances the CPU by one ULA frame. Normally that's a single ExecuteFrame call. ZX_GO_STEP_FRAME=1 instead drives the CPU through t
cmd/zx_go/headless.go:1038
↓ 13 callers
Function
transferCmd
transferCmd builds a complete zxnDMA / Z80-DMA command stream for a memory->memory transfer: RESET, WR0 (direction + src + length), WR1 (port A mode),
pkg/next/dma/dma_test.go:13
↓ 12 callers
Method
Count
Count returns the live down-counter (o_cpu_d, ctc_chan.vhd:168).
pkg/next/ctc/ctc.go:86
↓ 12 callers
Method
DataAt
DataAt reads the raw byte at the given absolute offset within the cartridge (0 .. Length()*BlockLen - 1). Used by the IF1 controller when streaming by
pkg/microdrive/microdrive.go:110
← previous
next →
301–400 of 5,503, ranked by callers