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
↓ 9 callers
Function
CallGraph
CallGraph aggregates history entries whose Source matches the supplied filter into (From → To) edges, sorted by descending count. Ties broken by (From
pkg/debugger/callgraph.go:31
↓ 9 callers
Method
Dispatch
Dispatch is the unconditional RST $08 trap runner. Equivalent to HookFunc's callback but skips the divMMC-signature gate. Tests use this to drive the
pkg/next/esxdos/esxdos.go:305
↓ 9 callers
Method
EnableDisciple
EnableDisciple enables the DISCiPLE disk interface with auto-paging hooks on the CPU. The DISCiPLE starts paged out (safe for mid-session enable). Use
pkg/testharness/testharness.go:341
↓ 9 callers
Method
EnableDisciple
EnableDisciple enables the Disciple disk interface
pkg/peripherals/manager.go:96
↓ 9 callers
Method
EntryPoints0
()
pkg/next/wire.go:44
↓ 9 callers
Method
GetRAM
GetRAM returns the 8KB RAM.
pkg/disciple/disciple.go:756
↓ 9 callers
Method
HMPR
()
pkg/sam/memory.go:219
↓ 9 callers
Method
HasMoreBlocks
HasMoreBlocks returns true if at least one more block is available.
pkg/ula/tape.go:241
↓ 9 callers
Method
Intrq
Intrq reports the interrupt-request line (set at command completion).
pkg/betadisk/fdc.go:94
↓ 9 callers
Method
IsBetaActive
IsBetaActive reports whether the TR-DOS ROM is currently paged over the system ROM.
pkg/memory/memory.go:1111
↓ 9 callers
Method
IsRedButtonPressed
IsRedButtonPressed returns whether the red button is pressed
pkg/multiface/multiface.go:320
↓ 9 callers
Method
IsZXPrinterEnabled
IsZXPrinterEnabled reports whether the printer is attached.
pkg/peripherals/manager.go:255
↓ 9 callers
Method
LMPR
Register read-backs. VMPR reads OR in the RXMIDI status bit; the others read back the stored value.
pkg/sam/memory.go:218
↓ 9 callers
Method
LoadDisk
LoadDisk parses a disk image (DSK / EDSK / UDI / MGT / IMG / TRD) and attaches it to the given physical drive (0 = A, 1 = B). Replaces any previously-
pkg/plus3fdc/plus3fdc.go:30
↓ 9 callers
Method
LoadROMsForModel
LoadROMsForModel loads all ROMs required for a specific Spectrum model
pkg/roms/rom_manager.go:176
↓ 9 callers
Function
New
New returns a zero-initialised keymap.
pkg/next/keymap/keymap.go:26
↓ 9 callers
Function
NewDefault
NewDefault builds a SAM machine from the bundled ROM 3.0.
pkg/sam/embed.go:18
↓ 9 callers
Method
PreFetchHook
PreFetchHook is the callback the Z80 should invoke before each opcode fetch. Pages the IF1 ROM IN when PC matches one of the page-in triggers. The che
pkg/if1/if1.go:197
↓ 9 callers
Method
Push
Push appends an entry, overwriting the oldest if the ring is full. Hot path — keep allocations to zero.
pkg/debugger/history.go:139
↓ 9 callers
Method
RestartAll
RestartAll calls restart() on every drive. The IF1 ULA does this after every CTR or NET port access — once the host has finished a command, the drives
pkg/if1/microdrive.go:376
↓ 9 callers
Method
SelectChip
SelectChip sets the active TurboSound chip (0..2), clamping higher values. Driven by the $FFFD chip-select protocol (write 0xFF/0xFE/0xFD to select ch
pkg/ay/engine.go:41
↓ 9 callers
Method
SelectSlot
SelectSlot applies a port $303B write: sets the current sprite and the pattern-RAM upload cursor (ports.txt 0x303B).
pkg/ula/ula.go:305
↓ 9 callers
Method
SetDataAt
SetDataAt writes the raw byte at the given absolute offset.
pkg/microdrive/microdrive.go:118
↓ 9 callers
Method
SetResolution
SetResolution installs the NR$70 resolution (0 = 256×192, 1 = 320×256, 2 = 640×256). Higher bits are ignored.
pkg/next/layer2/layer2.go:84
↓ 9 callers
Method
SetRom3Query
SetRom3Query installs the predicate that reports whether ROM3 is the currently-selected machine ROM. rom3 entry points engage automap only when it ret
pkg/next/divmmc/divmmc.go:674
↓ 9 callers
Function
WireLineInterrupt
WireLineInterrupt installs NR$22 / NR$23 OnWrite handlers so the guest can program a per-frame "line interrupt" — a second INT pulse asserted when the
pkg/next/wire.go:1333
↓ 9 callers
Method
Write8
Write8 stores an 8-bit palette value (NextReg 0x41 write behaviour: high 8 of 9 bits, low blue bit forced to 0) at the current index, then advances th
pkg/next/palette/palette.go:221
↓ 9 callers
Method
WriteAddrLow
WriteAddrLow handles a write to NextReg $29 — addr[7:0].
pkg/next/keymap/keymap.go:36
↓ 9 callers
Method
WriteNR44
WriteNR44 implements the NextReg 0x44 two-byte protocol against the Bank's internal latch (pending9/have9). The first call stashes val and arms the la
pkg/next/palette/palette.go:281
↓ 9 callers
Function
applySnapshotToEmulator
applySnapshotToEmulator applies a loaded snapshot to the running emulator.
cmd/zx_go/main.go:1596
↓ 9 callers
Function
buildZ80V2V3
buildZ80V2V3 assembles a minimal v2/v3 file (one compressed bank) and returns the loaded snapshot. addlLen selects the version (23=v2, 54/55=v3); hwMo
pkg/snapshot/z80_format_test.go:399
↓ 9 callers
Method
cmdBankPeek
cmdBankPeek parses `bank-peek KIND BANK OFF [LEN]` and returns either a hexdump line or an ERR.
cmd/zx_go/bank_access.go:92
↓ 9 callers
Method
cmdContUntil
cmdContUntil arms a one-shot conditional-continue. The CPU resumes (or stays running if it was already running) until the expression evaluates true at
cmd/zx_go/contuntil_cmd.go:35
↓ 9 callers
Method
cmdSetBreakpoint
(args []string)
cmd/zx_go/debugger.go:1393
↓ 9 callers
Method
cmdSetReg
cmdSetReg writes a CPU register. Accepts 8-bit (A/B/C/D/E/H/L/F/I/R) or 16-bit (AF/BC/DE/HL/IX/IY/SP/PC) register names — case-insensitive. Used by lo
cmd/zx_go/debugger.go:1321
↓ 9 callers
Function
createTestTAP
(t *testing.T, dir string)
pkg/ula/tape_test.go:10
↓ 9 callers
Method
currentROMBank
currentROMBank returns the bank index (0-3) currently mapped at $0000-$3FFF. Used for bank-filtered breakpoints.
cmd/zx_go/debugger.go:577
↓ 9 callers
Function
generateBeeperFrame
generateBeeperFrame synthesises one frame's worth of mono beeper samples from a list of speaker-toggle events. Returns the samples and the speaker sta
pkg/ula/ula.go:2000
↓ 9 callers
Function
rawDirent
rawDirent builds one 32-byte 8.3 directory entry. name11 must be the 11-byte padded form.
pkg/next/sdcard/fat32.go:291
↓ 9 callers
Method
setIXh
(v byte)
pkg/z80/z80.go:3805
↓ 9 callers
Method
setIXl
(v byte)
pkg/z80/z80.go:3806
↓ 9 callers
Method
setIYh
(v byte)
pkg/z80/z80.go:3807
↓ 9 callers
Method
setIYl
(v byte)
pkg/z80/z80.go:3808
↓ 9 callers
Method
syncMMUFromPage
syncMMUFromPage updates the two 8K MMU slots that correspond to the given 16K page slot (0..3) from the current memoryPageReadMap, and clears mmuOverr
pkg/memory/memory.go:660
↓ 9 callers
Function
ulaTest
ULA setter/getter coverage: SetTapePlayer + GetTapePlayer, Reset clears border/mic/speaker/AY state, SetPeripherals nil-safe, SetNextDMA / Compositor
pkg/ula/ula_test.go:514
↓ 8 callers
Method
ActiveVideoLine
ActiveVideoLine returns the current raster line within the frame, derived from the CPU's T-state position (T-states since frame start / T-states-per-l
pkg/ula/ula.go:968
↓ 8 callers
Method
Add
Add inserts or replaces a watch keyed by Reg.
pkg/debugger/regwatch.go:62
↓ 8 callers
Method
AdvanceMotor
AdvanceMotor rotates the motor-on bit through the daisy chain. Called by the IF1 ULA when it sees a falling edge on the comms clock with comms-data lo
pkg/if1/microdrive.go:355
↓ 8 callers
Function
AssertSandboxed
AssertSandboxed fails the test if install.Path() resolves to somewhere outside a temp directory. Call this from test fixtures that are about to write
pkg/next/install/installtest/installtest.go:51
↓ 8 callers
Method
BetaPreFetch
BetaPreFetch advances the Beta Disk auto-paging state machine for an instruction fetch at pc. Call it from the CPU's pre-fetch hook so the byte fetche
pkg/memory/memory.go:1126
↓ 8 callers
Method
Bytes
Bytes returns the underlying image data. Tests and callers that want to inspect contents (e.g. for verifying a NextZXOS write landed at the right LBA)
pkg/next/sdcard/image_source.go:86
↓ 8 callers
Method
Clock
Clock advances one i_CLK rising edge and returns o_Tx for this cycle. VHDL register ordering reproduced (all sampled off the SAME clock edge): - fall
pkg/next/uart/serial.go:187
↓ 8 callers
Method
Close
Close closes the audio system and releases resources.
pkg/audio/audio.go:337
↓ 8 callers
Method
EnableZXPrinter
EnableZXPrinter attaches a ZX Printer to the peripheral bus. Prints accumulate in a bitmap buffer the caller can access via ZXPrinter() → Bitmap()/Sav
pkg/peripherals/manager.go:236
↓ 8 callers
Function
EncodeSnapshot
EncodeSnapshot wraps a snapshot.Snapshot in an RZX SnapshotBlock by asking the snapshot package to serialise itself in the requested format. The on-th
pkg/rzx/snapshot.go:16
↓ 8 callers
Method
FPGABootROMActive
FPGABootROMActive reports whether the bootrom is currently masking the low ROM area. Exposed for debug snapshots and tests.
pkg/memory/next.go:386
↓ 8 callers
Method
GenerateFrame
(samplesPerFrame, tstatesPerFrame int)
pkg/ula/ula.go:361
↓ 8 callers
Method
HandlePortRead
HandlePortRead handles IN (0xFB). Returns the current drum / stylus status bits the ROM polls for. The port decode is loose — any port with bit 2 clea
pkg/zxprinter/zxprinter.go:125
↓ 8 callers
Method
InsertDisk
InsertDisk loads a disk; Eject removes it.
pkg/sam/wd1772.go:51
↓ 8 callers
Method
Instructions
Instructions returns the instruction count the CPU should execute during the current frame. The driver passes this to CPU.ExecuteRZXFrame. Mirrors lib
pkg/rzx/playback.go:111
↓ 8 callers
Method
IsBreakPressed
IsBreakPressed returns whether the BREAK key is currently pressed
pkg/keyboard/keyboard.go:492
↓ 8 callers
Method
IsInterface2CartridgeInserted
()
pkg/peripherals/manager.go:210
↓ 8 callers
Function
NewHistory
NewHistory returns a History sized to hold size entries. size <= 0 disables recording (Push is a no-op).
pkg/debugger/history.go:130
↓ 8 callers
Function
Read
Read parses a .mdr byte slice into a fresh Cartridge. The buffer length must be a whole number of blocks (10..254) optionally plus one trailing byte f
pkg/microdrive/microdrive.go:297
↓ 8 callers
Method
ReadData
()
pkg/ula/ula.go:402
↓ 8 callers
Method
ReadRAM
(idx int)
pkg/memory/next.go:436
↓ 8 callers
Method
ReadStatusPort
ReadStatusPort returns the AND of all drives' status bits, plus the caller-supplied bus-wide bits (DTR, BUSY) ORed in by the ULA. Mirrors the drive lo
pkg/if1/microdrive.go:404
↓ 8 callers
Method
Record
(tstateOffset int, val byte)
pkg/ula/ula.go:359
↓ 8 callers
Method
Refresh
Refresh re-pulls the ring and updates labels.
pkg/debugger/timetravel_widget.go:118
↓ 8 callers
Method
Save
Save saves a snapshot to a file.
pkg/snapshot/snapshot.go:155
↓ 8 callers
Method
Select
Select applies a NextReg 0x06 ("Peripheral 2") write. Per the FPGA spec, bits 1-0 are the AUDIO CHIP MODE (00 = YM, 01 = AY, 10 = ZXN-8950, 11 = hold
pkg/ay/engine.go:34
↓ 8 callers
Method
SetActive
SetActive selects which palette (first=0, second=1) the given layer uses for rendering. Only the low bit of which is honoured. This lets render code u
pkg/next/palette/palette.go:180
↓ 8 callers
Method
SetEntryPoints0
(val byte)
pkg/next/wire.go:43
↓ 8 callers
Method
SetFPGABootROM
SetFPGABootROM installs the Spectrum Next FPGA bootrom image and enables bootrom mode. While active, reads at $0000-$3FFF come from the supplied 8 KB
pkg/memory/next.go:349
↓ 8 callers
Method
SetLayer2MapControl
SetLayer2MapControl applies a write to the legacy Layer-2 port $123B (zxnext.vhd:3915-3922). Bit 4 clear configures the map (bit0=write-enable, bit1=v
pkg/memory/memory.go:1623
↓ 8 callers
Method
SetMode40
SetMode40 is a convenience for tests: clears the 80-col bit.
pkg/next/tilemap/tilemap.go:75
↓ 8 callers
Method
SetNow
SetNow installs a time provider — useful for tests that need a deterministic clock. Pass nil to revert to time.Now().
pkg/next/rtc/rtc.go:52
↓ 8 callers
Method
SetRZXPlaybackHook
SetRZXPlaybackHook installs (or removes, with hook=nil) the RZX playback IN-byte source. The hook returns ok=true with the next recorded byte, or ok=f
pkg/ula/ula.go:1292
↓ 8 callers
Method
SetSide
SetSide chooses the active head (0 or 1).
pkg/betadisk/fdc.go:91
↓ 8 callers
Method
SetSpeedlockEnabled
SetSpeedlockEnabled turns the Speedlock copy-protection workaround on or off. When enabled, repeated READ DATA commands on the same sector return prog
pkg/plus3fdc/upd765.go:311
↓ 8 callers
Method
SetTracer
SetTracer installs a per-access callback. Pass nil to disable. The callback fires AFTER the access — the value parameter is the value that was written
pkg/next/nextregs/dispatcher.go:269
↓ 8 callers
Method
SetTstates
SetTstates overrides the T-state counter. Used by RZX playback to align timing with the recorded T-state offset before resuming the CPU from a snapsho
pkg/z80/z80.go:569
↓ 8 callers
Method
TypeRune
TypeRune overlays the SAM key combination for the typed host symbol r as a brief pulse, independent of the host keyboard layout. Returns true if r is
pkg/sam/keyboard.go:121
↓ 8 callers
Function
WireMachineType
WireMachineType installs the NextReg $03 OnWrite handler for the config-mode bookkeeping side of machine-type selection. Real hardware (per TBBlue FPG
pkg/next/wire.go:413
↓ 8 callers
Method
WriteAddrHigh
WriteAddrHigh handles a write to NextReg $28. Bit 7 selects joymap, bit 0 is the high bit (addr[8]) of the address.
pkg/next/keymap/keymap.go:30
↓ 8 callers
Method
ZXPrinter
ZXPrinter returns the attached printer or nil. Used by the UI for Save / Clear menu actions.
pkg/peripherals/manager.go:261
↓ 8 callers
Function
addSymbol
addSymbol adds or updates a single symbol-table entry. Used by the runtime `sym $ADDR NAME` debugger command so users can name addresses they've ident
cmd/zx_go/debug.go:86
↓ 8 callers
Function
blankMGT
blankMGT builds an empty 800K MGT disk (used by tests and formatting).
pkg/sam/disk.go:141
↓ 8 callers
Method
checkSDCommand
checkSDCommand is fed from the SD card's command logger on every command the card receives (it carries the live cpu.PC). When an armed `break-on-sd` s
cmd/zx_go/debugger.go:737
↓ 8 callers
Method
cmdNRTrace
cmdNRTrace adds NextReg numbers to the live trace set, lists the current set, or clears it. nr-trace list active nr-trace REG[,REG…] add
cmd/zx_go/nrtrace_cmd.go:65
↓ 8 callers
Method
cmdProvenance
cmdProvenance arms/disarms the tracer or queries one address. provenance show armed state provenance on arm (start recor
cmd/zx_go/provenance_cmd.go:64
↓ 8 callers
Function
fakeROM
fakeROM returns an 8KB ROM image where each byte is the low 8 bits of its address. Lets the tests confirm a specific byte came from the IF1 ROM rather
pkg/if1/if1_test.go:13
↓ 8 callers
Method
idAt
idAt walks the track byte stream from position start, looking for an IDAM (sync mark + 0xFE with clock). Returns (cylinder, head, sector, size, idEndP
pkg/plus3fdc/track.go:440
↓ 8 callers
Function
mmuTestROMs
mmuTestROMs lays down minimal ROM blobs so memory.New succeeds for whatever model the caller asks for. Identical content to the existing tests but pri
pkg/memory/mmu_test.go:15
↓ 8 callers
Function
newCrashDetector
newCrashDetector returns nil when cfg disables every heuristic so callers can skip installing the hook entirely.
cmd/zx_go/crashdetect.go:69
↓ 8 callers
Function
newHandler
(w io.Writer, level slog.Level, colored bool)
pkg/zxlog/zxlog.go:167
↓ 8 callers
Function
newMatrixPager
divMMC state-transition matrix — the cross-product of automap × CONMEM × entry-point-gate × page-out trigger, driven as full transition sequences. The
pkg/next/divmmc/state_matrix_test.go:11
↓ 8 callers
Function
newTraceDB
newTraceDB allocates a ring of the given capacity. A non-positive capacity yields nil (disabled).
cmd/zx_go/tracedb.go:52
↓ 8 callers
Method
onExecute
onExecute marks an instruction boundary (wire to AddPreFetchHook). It counts executions of startPC and arms once the startHit-th is seen.
cmd/zx_go/readtape.go:64
↓ 8 callers
Method
onRead
onRead records one RAM read (wire to SetRAMReadHook). bank16k is the physical 16K bank, off the byte offset within it, val the byte read.
cmd/zx_go/readtape.go:79
← previous
next →
501–600 of 5,503, ranked by callers