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
↓ 3 callers
Method
RemoveInterface2Cartridge
RemoveInterface2Cartridge ejects any inserted IF2 cartridge and resets the CPU back into BASIC.
pkg/testharness/testharness.go:332
↓ 3 callers
Method
RemovePostFetchHook
RemovePostFetchHook deregisters a post-fetch hook by name.
pkg/z80/z80.go:1063
↓ 3 callers
Function
RenderIndexed
RenderIndexed turns a palette-indexed framebuffer (rows of byte indices, row-major) into an *image.RGBA via colorOf. Pure function — the shared pixel
pkg/debugger/indexed.go:13
↓ 3 callers
Method
Reset
Reset restores the power-on state: position cleared, no buttons pressed. Does not detach the mouse from the peripheral bus.
pkg/kempmouse/kempmouse.go:60
↓ 3 callers
Method
Reset
Reset performs a cold reset: the Z80 restarts at $0000 with ROM0 paged in and the ASIC paging/registers, border, line interrupt and raster state retur
pkg/sam/sam.go:109
↓ 3 callers
Method
ResetPaging
ResetPaging zeroes the classic paging shadows (port_7FFD, port_1FFD and port_DFFD). Mirrors the FPGA reset block at zxnext.vhd:3647-3648 (`port_7ffd_r
pkg/memory/next.go:301
↓ 3 callers
Method
ResetSPI
()
pkg/next/wire.go:35
↓ 3 callers
Method
Restore
Restore applies the given snapshot back to the emulator. Pause management lives inside applySnapshotToEmulator. On the Next, the full machine state (w
cmd/zx_go/timetravel.go:287
↓ 3 callers
Method
Root
Root returns the embeddable canvas object.
pkg/debugger/timetravel_widget.go:109
↓ 3 callers
Method
Row
Row returns the 8 horizontal pixels for scanline (0..7) of the character referenced by display byte b. Bit 7 of the result is the leftmost pixel; a se
pkg/zx8x/video.go:144
↓ 3 callers
Method
SP
()
pkg/debugger/backtrace_widget.go:16
↓ 3 callers
Function
SaveOverrides
SaveOverrides writes the given override map (physical key name -> MappingEntry list) to path as JSON. The caller chooses which entries to persist; thi
pkg/keyboard/keyboard.go:595
↓ 3 callers
Method
SavePagingState
SavePagingState captures the current paging configuration into a PagingState.
pkg/memory/memory.go:1835
↓ 3 callers
Method
SaveScreenshot
SaveScreenshot captures the current screen and writes it as a PNG to path. Useful for human debugging when an automated test fails — pop the saved ima
pkg/testharness/testharness.go:280
↓ 3 callers
Method
SaveTAP
SaveTAP writes the currently loaded blocks back to a TAP file. Each block is emitted as a 16-bit little-endian length followed by the raw block bytes
pkg/ula/tape.go:108
↓ 3 callers
Method
SetBetaDisk
SetBetaDisk attaches (or, with nil, detaches) the Beta Disk / TR-DOS interface. Port I/O is gated on Memory.IsBetaActive so it only intercepts the $1F
pkg/ula/ula.go:470
↓ 3 callers
Method
SetBorderTracer
Render generates the current frame. SetBorderTracer installs a callback fired on every ULA border- colour change (whatever even-address port was used)
pkg/ula/ula.go:605
↓ 3 callers
Method
SetClip
SetClip sets the tilemap clip window (NR$1B). Visible pixels are X in [x1*2, x2*2+1] (in 40-col 2-pixel units; the bounds double in 80-col so the defa
pkg/next/tilemap/tilemap.go:128
↓ 3 callers
Method
SetClock
SetClock attaches a CPU-T-state source. With it, burst-mode + prescaler transfers interleave with the CPU via Step(). Optional — without it, burst tra
pkg/next/dma/dma.go:162
↓ 3 callers
Method
SetConfigWriteHook
SetConfigWriteHook installs a debug callback fired on every successful config-mode write. Called from headless test paths hunting load-path corruption
pkg/memory/next.go:536
↓ 3 callers
Method
SetCovox
(on bool)
pkg/audiodac/audiodac.go:39
↓ 3 callers
Method
SetCycleSink
SetCycleSink attaches the callback used to charge a continuous-mode transfer's T-state duration to the CPU clock. Optional.
pkg/next/dma/dma.go:157
↓ 3 callers
Method
SetDAC
SetDAC attaches a Spectrum Next DAC bank whose output will be mixed into the beeper + AY stream. Pass nil to detach.
pkg/audio/audio.go:320
↓ 3 callers
Method
SetDiscipleInhibit
SetDiscipleInhibit sets the Disciple inhibit state
pkg/peripherals/manager.go:680
↓ 3 callers
Method
SetDivMMCRAM
SetDivMMCRAM wires a divMMC RAM accessor. Without this, NR$04 values $08..$0F (the divMMC RAM 16 KB banks per FPGA nextreg.txt) behave as if the bank
pkg/memory/next.go:448
↓ 3 callers
Method
SetFallbackColour
SetFallbackColour installs the NR$4A fallback RGBA — shown where every layer is transparent at a pixel.
pkg/next/compositor/compositor.go:356
↓ 3 callers
Method
SetInhibit
SetInhibit sets the inhibit state.
pkg/disciple/disciple.go:761
↓ 3 callers
Method
SetLayer2ActiveBank
SetLayer2ActiveBank / SetLayer2ShadowBank record NR$12 / NR$13 — the 16K RAM bank holding the first segment of Layer-2 (and its shadow). Used by the L
pkg/memory/memory.go:1637
↓ 3 callers
Method
SetMode80
SetMode80 is the dual.
pkg/next/tilemap/tilemap.go:78
↓ 3 callers
Method
SetMultifaceEnabled
SetMultifaceEnabled sets the Multiface enabled state
pkg/peripherals/manager.go:687
↓ 3 callers
Method
SetPageLogger
SetPageLogger installs a diagnostic hook fired on overlay paged-state transitions (see pageLogger). Pass nil to disable.
pkg/next/divmmc/divmmc.go:603
↓ 3 callers
Method
SetPersistPath
SetPersistPath enables battery-backed persistence of the NVRAM at the given file path, loading any existing contents immediately. Pass "" to disable p
pkg/next/rtc/rtc.go:123
↓ 3 callers
Method
SetPlus3Speedlock
SetPlus3Speedlock toggles the Speedlock copy-protection workaround on the +3 FDC. Enable this for games that use Speedlock; leave it off for normal so
pkg/peripherals/manager.go:91
↓ 3 callers
Method
SetPlus3WriteProtect
SetPlus3WriteProtect toggles the per-drive write-protect flag.
pkg/peripherals/manager.go:84
↓ 3 callers
Method
SetScrollY
(v int)
pkg/next/tilemap/tilemap.go:121
↓ 3 callers
Method
SetTilemapTransparency
SetTilemapTransparency installs the tilemap transparency nibble (NextReg 0x4C, low 4 bits). A tilemap pixel is transparent when the low nibble of its
pkg/next/compositor/compositor.go:335
↓ 3 callers
Method
SetTrace
SetTrace registers a callback invoked at every RST 8 dispatch. Pass nil to disconnect.
pkg/next/esxdos/esxdos.go:112
↓ 3 callers
Method
SetTrigger
SetTrigger sets the external clock/trigger input level (i_clk_trg). In HW this must be synchronized to i_CLK; it is sampled on the next Tick.
pkg/next/ctc/ctc.go:83
↓ 3 callers
Method
SetZeroOnTop
SetZeroOnTop sets the NextReg $15 bit 6 "sprite_priority" mode: when true the lowest-numbered sprite is drawn in front of higher-numbered overlapping
pkg/next/sprite/sprite.go:137
↓ 3 callers
Method
Snapshot
Snapshot returns a copy of the current map for iteration/listing without holding the lock.
pkg/debugger/bpset.go:59
↓ 3 callers
Method
SpecDrumEnabled
SpecDrumEnabled / CovoxEnabled report the current state.
pkg/audiodac/audiodac.go:42
↓ 3 callers
Method
SpeedLocked
SpeedLocked reports whether the speed selector is pinned (LockSpeedSelect).
pkg/z80/z80.go:653
↓ 3 callers
Method
StartRecording
StartRecording begins capturing the audio output to a WAV file. Returns nil if no audio system is available (in which case recording is silently skipp
pkg/ula/ula.go:1708
↓ 3 callers
Method
TilemapIs80Col
TilemapIs80Col reports whether the tilemap is in 80-column (640-pixel) mode. When true the ULA renders the wide path (renderWide) and the 320-pixel pa
pkg/ula/ula.go:281
↓ 3 callers
Method
WaitIfPaused
WaitIfPaused blocks the calling goroutine (the headless loop) while the debugger is in paused state. Returns immediately if not paused. Called between
cmd/zx_go/debugger.go:591
↓ 3 callers
Function
Wire
Wire is the umbrella that installs every NextReg handler in one call. Callers who want finer-grained control can still call the individual Wire* helpe
pkg/next/wire.go:870
↓ 3 callers
Function
WireAltROM
WireAltROM installs the NextReg $8C (Alternate ROM) OnWrite handler. Per the SpecNext wiki and TBBlue FPGA verilog, $8C controls a 32 KB alternative R
pkg/next/wire.go:1446
↓ 3 callers
Function
WireClipWindows
WireClipWindows installs the faithful clip-window behaviour for NR$18-$1B plus the NR$1C index reset/read-back, replacing the old single-byte approxim
pkg/next/wire.go:963
↓ 3 callers
Function
WireConfigModeRAMPage
WireConfigModeRAMPage installs the NextReg $04 OnWrite handler. NextReg $04 ("MMU Bank 0 selection in config mode" / REG_RAMPAGE) is the FPGA-firmware
pkg/next/wire.go:514
↓ 3 callers
Function
WireJoystickIOMode
WireJoystickIOMode installs the NextReg $0B OnWrite handler. Per nextreg.txt + zxnext.vhd: bit 7 = 1 to enable I/O mode bits 5:4 = I/O Mode (00=bit
pkg/next/wire.go:123
↓ 3 callers
Function
WirePeripheral1
WirePeripheral1 installs the NextReg 0x0A OnWrite handler. NextReg 0x0A ("Peripheral 1 Setting") holds mouse / joystick / AY-mode bits; it does NOT co
pkg/next/wire.go:537
↓ 3 callers
Function
WirePeripheral2
WirePeripheral2 installs the NextReg 0x06 OnWrite handler. NextReg 0x06 ("Peripheral 2 Setting") gates the AY audio-chip mode (bits 1:0; 11 = hold all
pkg/next/wire.go:74
↓ 3 callers
Function
WireROMBank
WireMMU installs OnWrite / OnRead handlers on the NextReg dispatcher for registers 0x50–0x57 so that guest code writing those registers (via port 0x25
pkg/next/wire.go:1414
↓ 3 callers
Method
Write
Write stores val at addr; ROM and write-protected/absent sections sink to scratch. A write to displayed video memory fires onVideoWrite (if set).
pkg/sam/memory.go:183
↓ 3 callers
Method
WriteBackTo
WriteBackTo persists the in-memory image to path. The previous file (if any) is first renamed to path+".bak" so an interrupted write cannot destroy th
pkg/next/sdcard/image_source.go:65
↓ 3 callers
Method
WriteBlock
WriteBlock copies 512 bytes from src into the LBA. Optional; returning nil from a read-only source rejects writes.
pkg/next/sdcard/spi.go:53
↓ 3 callers
Method
WriteIntEnable
WriteIntEnable performs the separate interrupt-enable write (the FPGA's nr_c5 path, i_int_en_wr). It must not overlap a port write. It updates only co
pkg/next/ctc/ctc.go:116
↓ 3 callers
Method
WriteSCL
(bit bool)
pkg/ula/ula.go:329
↓ 3 callers
Method
WriteTrackReg
(v byte)
pkg/betadisk/fdc.go:104
↓ 3 callers
Method
ZeroOnTop
ZeroOnTop reports the NextReg $15 bit 6 "sprite_priority" mode.
pkg/next/sprite/sprite.go:140
↓ 3 callers
Method
activeAY
activeAY returns the AY chip that should currently service port 0xFFFD / 0xBFFD traffic. On ModelNext with an Engine wired, this is engine.Active() —
pkg/ula/ula.go:525
↓ 3 callers
Method
address
address: lores.vhd:82-98.
pkg/next/lores/lores.go:78
↓ 3 callers
Method
altROMBuffer
altROMBuffer returns the alt-rom 16K buffer for the currently- selected alt-rom (0 or 1). Used by both the read and write paths.
pkg/memory/memory.go:450
↓ 3 callers
Method
appendEdges
(edges []CallEdge)
pkg/debugger/heatmap_widget.go:116
↓ 3 callers
Function
applyDirectBootNextRegs
applyDirectBootNextRegs seeds the dispatcher with the post-core-config personality. NR$0A (divMMC automap) goes through WriteReg so the pager's SetAut
cmd/zx_go/next_directboot.go:72
↓ 3 callers
Function
assertSnapshotsEqual
(t *testing.T, want, got *snapshot.Snapshot)
pkg/rzx/snapshot_test.go:128
↓ 3 callers
Function
b2u
(v bool)
cmd/zx_go/nrpanel_cmd.go:50
↓ 3 callers
Function
basis
basis converts a long name into its 8.3 basis (upper-cased, illegal chars replaced). fits83 reports that the cleaned name fits 8.3 with no character l
pkg/next/sdcard/fat32.go:472
↓ 3 callers
Function
blankTRD
blankTRD writes a zero-filled 640 KB (80-track double-sided) TR-DOS image to a temp file and returns its path.
cmd/zx_go/betadisk_test.go:14
↓ 3 callers
Function
build48KSNA
build48KSNA returns a minimal valid 48K .SNA byte stream with the given SP and a PC value pushed on the stack at SP within bank 0 (0xC000 area).
pkg/snapshot/sna_format_test.go:29
↓ 3 callers
Function
buildRawMGT
buildRawMGT constructs a minimal MGT image in memory. The image is a 2-side, 80-cylinder, 10 sectors × 512 byte DSDD disk; each sector is filled with
pkg/plus3fdc/raw_test.go:12
↓ 3 callers
Method
capture
(name string, regs [256]byte)
cmd/zx_go/nrsnap_cmd.go:25
↓ 3 callers
Function
captureBankContext
captureBankContext builds the compact paging-context string stored in each ttEntry. Mirrors fmtMMU/fmtDivMMC but is self-contained so it can run from
cmd/zx_go/timetravel.go:42
↓ 3 callers
Function
captureNextStateFromEmu
captureNextStateFromEmu captures full Next state from a live emulator. Returns nil for non-Next models (the Phase-1 ring already covers classic machin
cmd/zx_go/timetravel_nextstate.go:92
↓ 3 callers
Method
channelLevel
channelLevel computes the linearised output level (signed 16-bit) for one channel. It honours the mixer settings, channel volume register and envelope
pkg/ay/ay.go:572
↓ 3 callers
Method
checkRAMUninit
checkRAMUninit fires UninitReadObserver if pool byte (bank16k, off) was never written by the guest. Caller gates on m.TrackUninit.
pkg/memory/memory.go:1723
↓ 3 callers
Function
clearSymbol
clearSymbol removes a single symbol-table entry. No-op when the entry doesn't exist.
cmd/zx_go/debug.go:97
↓ 3 callers
Method
cmdListTp
cmdListTp prints every active tracepoint with its hit count.
cmd/zx_go/debugger.go:1568
↓ 3 callers
Method
cmdProvenancePhys
cmdProvenancePhys queries the physical-pool last-writer table by 16K bank + intra-bank offset, ignoring paging: provenance-phys BANK OFF who la
cmd/zx_go/provenance_cmd.go:118
↓ 3 callers
Method
cmdReadMemory
(args []string)
cmd/zx_go/debugger.go:1275
↓ 3 callers
Method
cmdWriteMemory
(args []string)
cmd/zx_go/debugger.go:1287
↓ 3 callers
Method
completeNoResult
completeNoResult finishes a command that has no result phase, returning the FDC to the idle command-accepting state.
pkg/plus3fdc/upd765.go:540
↓ 3 callers
Method
condState
condState builds the cpuState a Condition / RegWatch evaluates against, capturing the live divMMC paging snapshot so guards like `if dmmc == 1` resolv
cmd/zx_go/debugger.go:109
↓ 3 callers
Function
configStringToMultifaceVariant
configStringToMultifaceVariant inverts the above. An unrecognised or empty string returns Multiface128 (the package default) — callers must gate on cf
cmd/zx_go/main.go:2281
↓ 3 callers
Function
containsField
containsField reports whether needle appears anywhere in haystack. Used to test for a "key=value" pair inside the formatted divMMC state string.
pkg/debugger/pagemap.go:250
↓ 3 callers
Method
crashDetectStatus
()
cmd/zx_go/crashdetect_cmd.go:49
↓ 3 callers
Function
createTestROMs128
createTestROMs128 sets up 48.rom + 128-0/1.rom for 128K models.
pkg/peripherals/manager_test.go:675
↓ 3 callers
Method
currentDisk
currentDisk returns the disk currently selected by the f.us field.
pkg/plus3fdc/upd765.go:586
↓ 3 callers
Function
diskWithSector
diskWithSector builds an 800K MGT disk with a recognisable sector at (cyl, head, sector): byte i = base+i.
pkg/sam/wd1772_test.go:7
↓ 3 callers
Method
dispatchJoystick
dispatchJoystick translates a joystick direction (0=up..4=fire) into the appropriate hardware action for the active joystick interface. For Kempston t
cmd/zx_go/main.go:1077
↓ 3 callers
Function
distinctDisplayBytes
distinctDisplayBytes counts distinct bytes in the visible display page (a proxy for "has the ROM drawn content here").
pkg/sam/integration_test.go:21
↓ 3 callers
Function
drainAccepted
iter 366: CMD25 WRITE_MULTIPLE_BLOCK. The host sends CMD25 with a start LBA, then streams blocks each framed by a 0xFC token + 512 data + 2 CRC; each
pkg/next/sdcard/spi_cmd25_test.go:13
↓ 3 callers
Method
driveReadBit
driveReadBit presents the current MSB of readData on SDA.
pkg/next/rtc/i2c.go:195
↓ 3 callers
Method
driveReady
driveReady reports whether the given logical drive (0..3) currently has a disk in its physical slot.
pkg/plus3fdc/upd765.go:581
↓ 3 callers
Function
dsSeed
dsSeed returns the first data byte the position-dependent fill puts at offset 0 of a sector — i.e. the value dsTrack seeds (c,h,r) with.
pkg/plus3fdc/datasheet_test.go:94
↓ 3 callers
Method
emitMark
emitMark writes the 3×A1 address mark prefix (MFM only) with clock bits set on each. For FM the prefix is empty and the caller sets the clock bit on t
pkg/plus3fdc/track.go:205
↓ 3 callers
Method
emitSync
emitSync writes the sync field (the gap's syncLen sync bytes).
pkg/plus3fdc/track.go:190
↓ 3 callers
Function
enDis
(v bool)
cmd/zx_go/layerstate_cmd.go:56
↓ 3 callers
Method
endTypeII
endTypeII clears Busy/DRQ, sets the given residual status bits, ends any transfer, and raises INTRQ.
pkg/betadisk/fdc.go:274
↓ 3 callers
Method
explainPoppedReturn
explainPoppedReturn inspects the return word most recently consumed by a RET, given the CURRENT SP (i.e. AFTER the RET has incremented SP by 2). On th
cmd/zx_go/provenance.go:129
← previous
next →
1,201–1,300 of 5,503, ranked by callers