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
↓ 4 callers
Method
ReadRegister
ReadRegister returns the stored value of a register.
pkg/saa1099/saa1099.go:93
↓ 4 callers
Method
ReadSDA
()
pkg/ula/ula.go:331
↓ 4 callers
Method
ReadSector
()
pkg/sam/wd1772.go:65
↓ 4 callers
Method
Reg
(name string)
pkg/debugger/condition.go:44
↓ 4 callers
Method
Render
The display is drawn line-accurately: each scan line is rendered with the memory + ASIC state (mode, CLUT, border) as of the moment the beam passed it
pkg/sam/display.go:43
↓ 4 callers
Method
Reset
Reset restores the paging state to the model's power-on defaults: port 7FFD = 0, port 1FFD = 0, port DFFD = 0, special paging disabled, page map back
pkg/memory/memory.go:1156
↓ 4 callers
Method
Resolution
Resolution returns the current resolution selector (0/1/2).
pkg/next/layer2/layer2.go:87
↓ 4 callers
Method
ResolvePage
ResolvePage returns the physical 8K RAM page (0..) that a CPU read at addr currently maps to through the MMU / classic paging, or -1 if addr maps to R
pkg/memory/memory.go:533
↓ 4 callers
Method
SaveDisk
SaveDisk serialises the disk in the given drive back to a file on host disk. Fails if no disk is currently mounted.
pkg/plus3fdc/plus3fdc.go:72
↓ 4 callers
Method
SaveMicrodrive
SaveMicrodrive writes the cartridge currently in drive `which` back to disk as a .mdr file. Returns an error if the drive is empty or the IF1 isn't en
pkg/peripherals/manager.go:351
↓ 4 callers
Method
Selected
Selected returns the currently-selected palette index (0..7).
pkg/next/palette/palette.go:154
↓ 4 callers
Method
SetAllReadHook
SetAllReadHook installs a callback fired on EVERY Read (logical address + value), regardless of ROM/RAM/divMMC routing. Pass nil to remove. Used by --
pkg/memory/memory.go:1607
↓ 4 callers
Method
SetByteLogger
SetByteLogger installs a per-byte callback fired on every SPI data byte clocked through the card. write=true means host -> card (WriteData), write=fal
pkg/next/sdcard/spi.go:181
↓ 4 callers
Method
SetIOBus
SetIOBus attaches the port bus used for IO endpoints. Optional.
pkg/next/dma/dma.go:153
↓ 4 callers
Method
SetKempstonButton
SetKempstonButton sets or clears a Kempston joystick button bit.
pkg/ula/ula.go:1322
↓ 4 callers
Method
SetLEPR
(v byte)
pkg/sam/memory.go:195
↓ 4 callers
Method
SetLogger
SetLogger installs a per-command callback for debugging. Pass nil to disable. The callback receives the 6-bit command index, the 32-bit argument, and
pkg/next/sdcard/spi.go:170
↓ 4 callers
Method
SetMicrodriveWriteProtect
SetMicrodriveWriteProtect toggles the write-protect flag on the cartridge currently in drive `which`.
pkg/peripherals/manager.go:384
↓ 4 callers
Method
SetMultifaceActive
SetMultifaceActive pages the Next Multiface overlay in (true — done on the MF NMI, before it vectors to $0066) or out (false — done on RETN). The MF R
pkg/memory/memory.go:355
↓ 4 callers
Method
SetNextCopper
SetNextCopper installs the Spectrum Next Copper coprocessor. The compositor pass calls Step once per active scanline so MOVEs affecting palette / Laye
pkg/ula/ula.go:443
↓ 4 callers
Method
SetNextDAC
SetNextDAC installs the Spectrum Next four-channel DAC bank. Port writes are forwarded to it after the NextRegs / DMA priority checks; the bank intern
pkg/ula/ula.go:455
↓ 4 callers
Method
SetNextI2C
SetNextI2C installs the Spectrum Next i2c bus (RTC at $68). Ports $103B / $113B dispatch to it when present.
pkg/ula/ula.go:437
↓ 4 callers
Method
SetOverBorder
SetOverBorder sets NextReg $15 bit 1 ("sprites over border").
pkg/next/sprite/sprite.go:93
↓ 4 callers
Method
SetPagingTracer
SetPagingTracer installs a per-write callback on the classic paging ports. Pass nil to disable.
pkg/memory/memory.go:342
↓ 4 callers
Method
SetPaletteOffset
SetPaletteOffset installs the NR$70 palette offset (bits 3:0).
pkg/next/layer2/layer2.go:90
↓ 4 callers
Method
SetPriority
SetPriority stores the 2-bit NR$44 priority (bits 1:0) for the entry.
pkg/next/palette/palette.go:43
↓ 4 callers
Method
SetRTC
SetRTC installs the RTC backing the M_GETDATE handler. When set, M_GETDATE returns the current host date packed into the guest's DE / HL / C registers
pkg/next/esxdos/esxdos.go:135
↓ 4 callers
Method
SetScrollX
SetScrollX / SetScrollY set the tilemap pixel scroll offsets (NR$2F:$30 = X, 10-bit; NR$31 = Y, 8-bit per FPGA nr_30_tm_scrollx/nr_31). The tilemap wr
pkg/next/tilemap/tilemap.go:120
↓ 4 callers
Method
SetScrollY
SetScrollY installs the 8-bit Layer 2 Y scroll (NR$17, layer2.vhd:156).
pkg/next/layer2/layer2.go:103
↓ 4 callers
Method
SetStubProtected
SetStubProtected toggles write-shadow protection on bank 1 offset $0009. When true, any guest write to that byte is silently dropped. Enable this when
pkg/next/divmmc/divmmc.go:627
↓ 4 callers
Method
SetTStatePtr
(p *uint64)
pkg/z80/z80.go:343
↓ 4 callers
Method
SetTilemap
SetTilemap attaches the tilemap layer (Layer 3). nil unhooks. Compositor uses the tilemap's "on_top" bit (NR$6B bit 0) to decide whether to paint it a
pkg/next/compositor/compositor.go:101
↓ 4 callers
Function
SortedKeys
SortedKeys returns the PCs in the map in ascending numerical order. Used by both surfaces to render a stable list.
pkg/debugger/breakpoints.go:43
↓ 4 callers
Function
String
String returns the version with the product name, e.g. "zx_go v1.0 RC1".
pkg/version/version.go:34
↓ 4 callers
Method
SwitchModel
SwitchModel changes the current Spectrum model and reconfigures memory
pkg/memory/memory.go:1182
↓ 4 callers
Method
Sync
Sync flushes any buffered writes to stable storage. A no-op (nil) for read-only handles.
pkg/next/sdcard/sdcard.go:72
↓ 4 callers
Method
Transparency
Transparency returns the currently-installed transparency index.
pkg/next/compositor/compositor.go:380
↓ 4 callers
Method
Tstates
Tstates returns the T-state offset at which the active input block began recording. Used by the driver to seed CPU.tstates so memory contention timing
pkg/rzx/playback.go:127
↓ 4 callers
Method
TypeRune
TypeRune injects the Spectrum SYMBOL-SHIFT combination for the typed character r (e.g. '.', ';', ':') as a brief overlay pulse, independent of the hos
pkg/keyboard/keyboard.go:359
↓ 4 callers
Function
WireDivMMCEntryPoints
WireDivMMCEntryPoints installs the NextReg $B8 / $BB handlers. These two registers gate which instruction-fetch PCs trigger the divMMC overlay paging-
pkg/next/wire.go:342
↓ 4 callers
Function
WirePeripheral3
WirePeripheral3 installs the NextReg $09 OnWrite handler. NextReg $09 is "Peripheral 3" per nextreg.txt; the only field with a side-effect outside the
pkg/next/wire.go:235
↓ 4 callers
Function
WireTilemap
WireTilemap installs the NextReg $6B / $6C / $6E / $6F OnWrite handlers that drive the Spectrum Next tilemap layer: $6B bit 7 enable, bit 6 mode (0=
pkg/next/wire.go:1156
↓ 4 callers
Method
Write
Write writes buf to the file at the current cursor; for read-only or directory handles, returns an error.
pkg/next/sdcard/sdcard.go:55
↓ 4 callers
Method
WriteAddress
WriteAddress latches the register selected for the next data write.
pkg/saa1099/saa1099.go:69
↓ 4 callers
Method
WriteCS
(val byte)
pkg/next/divmmc/divmmc.go:52
↓ 4 callers
Method
WriteDataPort
WriteDataPort writes one byte to the MDR data port. Every motor-on drive sees the write. Mirrors port_mdr_out at if1.c:803-839.
pkg/if1/microdrive.go:395
↓ 4 callers
Method
WriteROMByte
(addr int, val byte)
pkg/memory/next.go:439
↓ 4 callers
Method
WriteSector
WriteSector overwrites the sector at (cyl, head, sector); fails if out of range or write-protected.
pkg/sam/disk.go:77
↓ 4 callers
Method
ZCTO
ZCTO returns the registered zero-count/timeout output (o_zc_to), asserted for one i_CLK cycle when the counter reaches zero (ctc_chan.vhd:183).
pkg/next/ctc/ctc.go:90
↓ 4 callers
Method
adc16
16-bit add with carry. Undocumented F3/F5 come from the HIGH byte of the result (bits 11 and 13), not the low byte.
pkg/z80/z80.go:4165
↓ 4 callers
Method
add
(reg byte)
cmd/zx_go/nrtrace_cmd.go:22
↓ 4 callers
Method
add16
16-bit arithmetic
pkg/z80/z80.go:3892
↓ 4 callers
Method
addIX
Helper functions for IX operations
pkg/z80/z80.go:3236
↓ 4 callers
Method
addIY
Helper functions for IY operations
pkg/z80/z80.go:3268
↓ 4 callers
Method
allocCluster
allocCluster reserves a new cluster, sets its FAT entry to EOC, and returns the cluster number. Returns 0 if the disk is full.
pkg/next/sdcard/fat16.go:244
↓ 4 callers
Function
applyKeepAliveDither
applyKeepAliveDither adds a per-sample pseudo-random dither in [-amp, amp] to buf in place, advancing rng (a non-zero xorshift32 state). amp<=0 is a n
pkg/audio/keepalive.go:20
↓ 4 callers
Function
assertFilesEqual
assertFilesEqual compares two parsed RZX files block-by-block. We don't use reflect.DeepEqual on the whole file because internal cursor state (current
pkg/rzx/format_test.go:262
↓ 4 callers
Function
bootNextToMenu
bootNextToMenu cold-boots NextZXOS to its main menu, or skips the test if the Next ROMs / SD image are not installed (both are licensed, gitignored co
cmd/zx_go/nex_load_test.go:57
↓ 4 callers
Function
borderColourIndex
borderColourIndex extracts the 4-bit CLUT index from a BORDER value: low three bits plus bit 5 (mask 0x27).
pkg/sam/display.go:112
↓ 4 callers
Function
buildRawSectorTrack
buildRawSectorTrack wraps a flat block of sector bytes in a track byte stream using the supplied gap layout. Sector IDs start at baseSectorID and coun
pkg/plus3fdc/raw.go:24
↓ 4 callers
Function
buildTestTree
--- tests ---------------------------------------------------------------
pkg/next/sdcard/fat32_test.go:154
↓ 4 callers
Method
cmdGraph
cmdGraph walks the History ring, filters entries by the supplied branch-source class, aggregates (caller → callee) edges, and returns the top-N most-f
cmd/zx_go/debugger.go:1652
↓ 4 callers
Method
cmdListBreakpoints
()
cmd/zx_go/debugger.go:1503
↓ 4 callers
Method
cmdTraceNRDeltas
cmdTraceNRDeltas arms a NextReg-transition tracer that logs ONLY writes that actually change the stored value (i.e. value-deltas). Distinct from `nr-t
cmd/zx_go/nrdeltas_cmd.go:121
↓ 4 callers
Method
contendAt
--- FUSE-style per-cycle timing helpers --- These advance the T-state counter ONE machine cycle at a time and apply ULA memory contention at the cycl
pkg/z80/z80.go:392
↓ 4 callers
Function
countScreenPixels
countScreenPixels counts non-zero pixels in the screen area
pkg/z80/plus3_menu_test.go:74
↓ 4 callers
Method
cpuBank
cpuBank returns the 16K ROM bank currently mapped at $0000 on 128K-class machines. Mirrors cmd/zx_go/debugger.go's lookup so the cond.bank reference r
pkg/debugger/debugger.go:453
↓ 4 callers
Function
createTestROMsPlus
Helper to create plus2 and plus3 ROM files in addition to base ROMs
pkg/memory/memory_test.go:655
↓ 4 callers
Method
curDisk
()
pkg/betadisk/fdc.go:99
↓ 4 callers
Method
currentTstates
currentTstates returns the CPU's current T-state counter via the memory package's shared TStates pointer (set by the CPU at construction for memory co
pkg/peripherals/manager.go:43
↓ 4 callers
Function
defaultCrashConfig
defaultCrashConfig is what `--crash-detect` (with no per-heuristic flags) turns on. Conservative — pc-region and sp-high stay opt-in to avoid Next fal
cmd/zx_go/crashdetect.go:202
↓ 4 callers
Function
directoryExists
(p string)
cmd/zx_go/bp_snapshot.go:65
↓ 4 callers
Function
divmmcFlagsFrom
divmmcFlagsFrom extracts the divMMC paging snapshot from a pager value via the same duck-typed interfaces get-divmmc uses. conmem is E3 bit 7. A nil p
cmd/zx_go/debugger.go:78
↓ 4 callers
Function
edBlockCost
Per-access memory contention for the ED block opcodes (LDI/LDD/LDIR/LDDR, CPI/CPD/CPIR/CPDR, INI/IND/INIR/INDR, OUTI/OUTD/OTIR/OTDR). The block memory
pkg/z80/memc_edblock_test.go:17
↓ 4 callers
Method
effectiveJoystick
effectiveJoystick is effectiveJoystickFor applied to the live model.
cmd/zx_go/main.go:1024
↓ 4 callers
Method
emit
()
cmd/zx_go/debug.go:349
↓ 4 callers
Method
emitFiller
emitFiller writes n copies of the gap filler byte. No clock marks set.
pkg/plus3fdc/track.go:177
↓ 4 callers
Function
ensureFileExt
ensureFileExt appends ext to path (and renames the file on disk) when path doesn't already end in ext, case-insensitively. Used by the save dialogs so
cmd/zx_go/main.go:1547
↓ 4 callers
Function
findSignEnd
findSignEnd returns the file's sign-end block payload, or nil.
pkg/rzx/sign.go:26
↓ 4 callers
Function
fixedClockBus
()
pkg/next/rtc/i2c_test.go:66
↓ 4 callers
Method
flushRaster
flushRaster renders up to the current raster position; the video-write hook and display-affecting OUTs call it before mutating state.
pkg/sam/display.go:70
↓ 4 callers
Method
formatAddr
--- helpers ---
pkg/debugger/debugger.go:559
↓ 4 callers
Function
generateSquareWaveFrame
generateSquareWaveFrame is the box-filter square-wave reconstruction shared by the beeper and the tape-loading sound: it integrates a 1-bit signal (to
pkg/ula/ula.go:2009
↓ 4 callers
Function
ignore
()
pkg/next/dma/dma.go:181
↓ 4 callers
Method
importAndRunNex
importAndRunNex copies data onto the SD card and starts the loader macro. It runs on its own goroutine (the SD write can be large) with the emulator p
cmd/zx_go/nexload_macro.go:160
↓ 4 callers
Function
initialDataCRC
initialDataCRC returns the CRC accumulator state after the implied 3×A1 sync prefix and the data address mark (FB for normal data, F8 for deleted), ma
pkg/plus3fdc/upd765.go:888
↓ 4 callers
Function
listSymbols
listSymbols returns every (addr, name) pair sorted by address. Used by the `sym` (no-arg) debugger command.
cmd/zx_go/debug.go:105
↓ 4 callers
Method
loadSZXRamPage
loadSZXRamPage loads a RAM page from SZX block
pkg/snapshot/szx.go:241
↓ 4 callers
Method
loadSZXZ80Regs
loadSZXZ80Regs loads Z80 CPU registers from SZX block
pkg/snapshot/szx.go:181
↓ 4 callers
Function
loadTapeFile
loadTapeFile mounts a .tap/.tzx tape image into the emulator's ULA tape player and starts it playing — the headless-mode equivalent of the GUI's "Open
cmd/zx_go/tapeload.go:18
↓ 4 callers
Method
lookupPhys
lookupPhys returns the last-writer record for a physical pool cell.
cmd/zx_go/provenance.go:103
↓ 4 callers
Function
memReader
memReader builds a readFunc from a sparse map of byte values. Anything not in the map reads as 0x00.
pkg/debugger/backtrace_test.go:7
↓ 4 callers
Function
mixInt16
mixInt16 adds src into dst element-wise with int16 saturation. Used to fold the DAC frame into the beeper frame without wrap-around pops.
pkg/ula/ula.go:1966
↓ 4 callers
Function
mountRootFor
(d *Dispatcher)
pkg/next/esxdos/file_handlers_test.go:58
↓ 4 callers
Function
newAudioTestULA
newAudioTestULA returns a bare ULA struct suitable for the audio generator tests. It has no real memory or audio system attached; the tests only use t
pkg/ula/audio_test.go:176
↓ 4 callers
Function
newSnapshotConfig
(emu *emulator, f *cliFlags)
cmd/zx_go/debug.go:325
↓ 4 callers
Function
newTracingULA
(mem *memory.Memory)
pkg/z80/debug_plus3_test.go:25
↓ 4 callers
Function
nexPressCombo
nexPressCombo presses a set of matrix keys together, holds, releases, then pauses — long enough for the NextZXOS 50 Hz key scan to register a distinct
cmd/zx_go/nexload_os_test.go:32
↓ 4 callers
Function
nextTestROMs
nextTestROMs lays down the minimal ROM blobs memory.New(ModelNext) needs, so the test is self-contained (no dependency on the repo's roms/ tree or its
cmd/zx_go/timetravel_nextstate_test.go:19
↓ 4 callers
Function
nr02NMIHarness
nr02NMIHarness wires a dispatcher + memory + CPU and returns both the dispatcher and the CPU so tests can observe PendingNMI.
pkg/next/wire_nr02_nmi_test.go:14
← previous
next →
1,001–1,100 of 5,503, ranked by callers