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
↓ 5 callers
Function
dsSector
(d *Disciple)
pkg/disciple/datasheet_test.go:123
↓ 5 callers
Function
dumpScreen
dumpScreen writes the current frame to a PNG if SAM_RENDER_OUT_DIR is set.
pkg/sam/integration_test.go:31
↓ 5 callers
Function
enabledIF1Manager
Covers the IF1-enabled microdrive paths in PeripheralManager; the disabled-IF1 nil-guard branches are covered separately.
pkg/peripherals/microdrive_enabled_test.go:13
↓ 5 callers
Method
env
()
cmd/zx_go/crashdetect_test.go:16
↓ 5 callers
Method
envApplied
envApplied returns the envelope-controlled L/R amplitude; the right channel is inverted when the envelope's L/R-mirror bit (bit 0) is set.
pkg/saa1099/saa1099.go:252
↓ 5 callers
Method
fetch
fetch reads the next byte at PC and increments R (opcode fetch only).
pkg/z80/z80.go:3756
↓ 5 callers
Method
fire
(kind crashKind, pc uint16, detail string)
cmd/zx_go/crashdetect.go:150
↓ 5 callers
Method
flush
flush writes any buffered tape lines to the underlying writer.
cmd/zx_go/readtape.go:137
↓ 5 callers
Method
flushTo
flushTo renders rendered-frame lines [renderCursor, target) and advances the cursor. Each line is drawn with the border/CLUT/screen state current at t
pkg/sam/display.go:75
↓ 5 callers
Function
formatLayerState
formatLayerState renders the decoded video-layer configuration from the relevant NextRegs, read via rd. Pure function (reader injected) for unit testi
cmd/zx_go/layerstate_cmd.go:21
↓ 5 callers
Method
get
(name string)
cmd/zx_go/nrsnap_cmd.go:37
↓ 5 callers
Function
getFormatName
getFormatName returns a human-readable name for the snapshot format
cmd/zx_go/main.go:1520
↓ 5 callers
Function
hexInt
(t *testing.T, s string)
pkg/rzx/sign_test.go:19
↓ 5 callers
Function
installFakeDistroForLoad
installFakeDistroForLoad writes a 16K distro ROM so memory.New can succeed in tests that need a constructed harness. MUST be preceded by installtest.
pkg/testharness/next_loadnex_test.go:23
↓ 5 callers
Function
installTapeTrap
(emu *emulator)
cmd/zx_go/main.go:2027
↓ 5 callers
Function
intCPU
Interrupt + NMI T-state counts, IM 0/1/2 vector handling, and NMI semantics (vector $0066, PC push, IFF/IM effects): IM1=13T, IM2=19T, NMI=11T. intCPU
pkg/z80/int_timing_vector_test.go:11
↓ 5 callers
Function
makeTestMemory
makeTestMemory creates a Memory bound to a test ROM directory so PageMapWidget.Refresh has real values to read.
pkg/debugger/pagemap_test.go:22
↓ 5 callers
Method
modeP3
mode decode (multiface.vhd:105-118)
pkg/multiface/core.go:79
↓ 5 callers
Function
newFAT32Reader
(t *testing.T, img []byte)
pkg/next/sdcard/fat32_test.go:24
↓ 5 callers
Function
newNextTestMemory
(t *testing.T)
pkg/memory/altrom_gate_test.go:94
↓ 5 callers
Function
newReadTape
newReadTape builds a recorder writing to w. Recording arms at the startHit-th execution of startPC; with startPC==0 && startHit<=0 it arms immediately
cmd/zx_go/readtape.go:54
↓ 5 callers
Function
newRemoteFor
Covers the remoteDebugger bank-command parsers — cmdBankPeek / cmdBankPoke / cmdDisasmBank / cmdListBanks. These take raw arg slices and return protoc
cmd/zx_go/bank_cmd_test.go:16
↓ 5 callers
Function
newTestRomDir
Covers emuBanks.Bank / BankPeek / BankPoke for the memory-only kinds (ram, rom, altrom). The divmmc-ram path requires an *emulator and is tested separ
cmd/zx_go/bank_access_test.go:20
↓ 5 callers
Function
nexRunFrames
This file proves the faithful path for loading .nex games that depend on the NextZXOS runtime: instead of bank-injecting (which overwrites the OS's ow
cmd/zx_go/nexload_os_test.go:20
↓ 5 callers
Method
noiseRate
(g int)
pkg/saa1099/saa1099.go:108
↓ 5 callers
Function
oneLine
oneLine collapses a multi-line debugger response into a single line for slog readability. The full response is still complete; this just replaces \r\n
cmd/zx_go/bpaction_cmd.go:44
↓ 5 callers
Function
padName83
(base, ext string)
pkg/next/sdcard/fat32.go:510
↓ 5 callers
Function
physicalDrive
physicalDrive returns the physical drive index (0 = A, 1 = B) for a µPD765 unit-select value. The +3 only wires US0, so of the two US bits only bit 0
pkg/plus3fdc/upd765.go:277
↓ 5 callers
Method
pop
()
pkg/z80/z80.go:3858
↓ 5 callers
Method
process
process high-pass-filters samples in place. The first sample after a reset lazily seeds the filter from the current level, so a steady power-on/reset
pkg/ula/dcblock.go:49
↓ 5 callers
Method
ramPage
ramPage returns the read/write pointers for internal RAM page p (masked to 5 bits); absent pages (e.g. 16-31 on a 256K machine) resolve to scratch.
pkg/sam/memory.go:106
↓ 5 callers
Method
readByte
readByte returns the byte at position i, substituting random data if the byte is marked weak. Used by the FDC's data transfer path; speed matters more
pkg/plus3fdc/track.go:421
↓ 5 callers
Function
regName
regName returns the canonical register name for the 3-bit register encoding used in Z80 instruction tables: 0=B 1=C 2=D 3=E 4=H 5=L 6=(HL) 7=A.
pkg/z80/timing_table_test.go:298
↓ 5 callers
Function
runDDCB
WZ/MEMPTR for DDCB / FDCB indexed instructions. Per Sean Young's "Undocumented Z80 Documented" §3.4, every DDCB / FDCB instruction sets MEMPTR = IX+d
pkg/z80/memptr_ddcb_test.go:15
↓ 5 callers
Function
runSLL
SLL / SLI undocumented opcode tests. SLL ("Shift Left Logical" — sometimes called SLI for "Shift Left and Insert") is the CB-prefix opcode set $30-$3
pkg/z80/sll_test.go:29
↓ 5 callers
Function
saaWrite
saaWrite drives the SAA1099 through the SAM port interface: address latch on port 0x01FF, data on port 0x00FF.
pkg/sam/audio_test.go:7
↓ 5 callers
Function
samAt
The SAM ASIC exposes the raster position through two read-only "light pen" registers on port 0xF8: LPEN (port & 0x1FF == 0x0F8, horizontal) and HPEN (
pkg/sam/lightpen_test.go:10
↓ 5 callers
Function
screenAddrForRowCol
screenAddrForRowCol returns the offset within a 16K screen RAM page where pixel-row `row` (0..191), column `col` (0..31, units of 8 pixels) is stored.
pkg/ula/ula.go:1278
↓ 5 callers
Method
sdaLine
sdaLine is the wired-AND bus level both parties observe.
pkg/next/rtc/i2c.go:54
↓ 5 callers
Method
selectedBank
selectedBank returns the divMMC RAM bank index (0..NumBanks-1) that should be visible at 0x2000-0x3FFF, based on the low bits of port 0xE3.
pkg/next/divmmc/divmmc.go:747
↓ 5 callers
Function
sendCommandNoCSToggle
sendCommandNoCSToggle emits a 6-byte command frame without touching CS. Used to model the FPGA bootrom's init pattern, which asserts CS once and keeps
pkg/next/sdcard/spi_test.go:288
↓ 5 callers
Function
serveZip
(t *testing.T, zipBytes []byte)
pkg/next/install/download_test.go:43
↓ 5 callers
Method
set
(bit int, val byte)
pkg/z80/z80.go:4086
↓ 5 callers
Function
setupRepeat
WZ/MEMPTR on repeating block instructions. Per Sean Young's "Undocumented Z80 Documented" §4.2: every repeating block instruction (LDIR / LDDR / CPIR
pkg/z80/memptr_repeat_test.go:18
↓ 5 callers
Method
sharedBreakpoints
sharedBreakpoints returns the emulator's single shared breakpoint store, creating it on first use. Both the telnet debugger and the visual debugger ca
cmd/zx_go/main.go:281
↓ 5 callers
Method
startNexloadMacro
startNexloadMacro reboots into a clean NextZXOS and begins driving the .nexload command to load the .nex at sdPath (an absolute SD-card path) via the
cmd/zx_go/nexload_macro.go:188
↓ 5 callers
Method
stop
stop: SDA low->high while SCL high.
pkg/next/rtc/i2c_test.go:24
↓ 5 callers
Method
stopInput
stopInput closes the active input block. Idempotent. Called automatically by AddSnap and Stop.
pkg/rzx/recording.go:124
↓ 5 callers
Method
stopRZXPlayback
stopRZXPlayback tears down an active playback session. Idempotent. Safe to call from any goroutine — the atomic.Pointer clear plus the ULA hook clear
cmd/zx_go/main.go:1771
↓ 5 callers
Method
syncAllMMU
syncAllMMU resyncs all 8 MMU slots from the classic page maps. Called once at the end of each setupNN configuration and from Reset(); not called from
pkg/memory/memory.go:686
↓ 5 callers
Method
tapeAudioMuted
tapeAudioMuted reports whether beeper audio should be muted because a fast-tape load is in progress. Crucially this is decoupled from the per-tick tur
cmd/zx_go/main.go:931
↓ 5 callers
Method
tick
tick computes every combinational signal from the CURRENT (pre-edge) state — just as the VHDL processes read the registers' current values — then appl
pkg/next/ctc/ctc.go:127
↓ 5 callers
Function
writeBlock
writeBlock emits a generic block: the 1-byte ID, the 4-byte inclusive-of-header length, then the payload. blockLen MUST equal 1 (ID) + 4 (length) + le
pkg/rzx/write.go:106
↓ 5 callers
Method
writeRecording
writeRecording appends a mono sample buffer to the active WAV file.
pkg/audio/audio.go:410
↓ 5 callers
Function
writeScreenshotPNG
writeScreenshotPNG renders the current frame and writes it as a PNG to w. Works for every machine type: emu.ula.Render() returns the composited frameb
cmd/zx_go/main.go:1573
↓ 5 callers
Function
writeSectorForScan
writeSector is a helper for SCAN tests: writes a known byte pattern into sector R=1 cyl=0 of drive 0.
pkg/plus3fdc/upd765_test.go:477
↓ 4 callers
Method
AY
AY returns the AY-3-8912 sound chip instance, or nil for models that do not have one (e.g. the 48K).
pkg/ula/ula.go:574
↓ 4 callers
Method
ActiveBank
ActiveBank returns the currently-installed active bank index.
pkg/next/layer2/layer2.go:67
↓ 4 callers
Method
BankPeek
BankPeek copies n bytes starting at `off` in `kind` bank `bank`. Returns ErrZeroLength if n <= 0, ErrOffsetOutOfRange if [off, off+n) exits the bank.
pkg/debugger/bankaccess.go:26
↓ 4 callers
Method
BankPoke
BankPoke writes `data` into `kind` bank `bank` starting at `off`. Returns ErrOffsetOutOfRange if the write would exit the bank.
pkg/debugger/bankaccess.go:31
↓ 4 callers
Method
BeamPosition
BeamPosition returns the current raster beam position derived from the CPU T-state counter: the scanline (0-based, 9-bit) and the horizontal position
pkg/ula/ula.go:981
↓ 4 callers
Method
Bitmap
Bitmap renders all accumulated rows as a greyscale image. Each pixel is either 0xFF (dark, burned by the stylus) or 0x00 (white). Returns an empty ima
pkg/zxprinter/zxprinter.go:320
↓ 4 callers
Method
Blocks
Blocks returns a snapshot of the tape's block list. The slice is freshly allocated and safe for the caller to keep.
pkg/ula/tape.go:259
↓ 4 callers
Method
Capacity
Capacity returns the maximum number of entries the ring can hold. Used by the debugger command to print "of N capacity" in the help / list output.
pkg/debugger/history.go:186
↓ 4 callers
Method
ComposeWideLayer2Row
ComposeWideLayer2Row overlays the hi-res Layer 2 row onto dst, an RGBA row Layer2Width pixels wide already holding the lower layers.
pkg/ula/ula.go:294
↓ 4 callers
Method
CurrentB
()
pkg/next/dma/dma.go:512
↓ 4 callers
Method
DFFDValue
DFFDValue returns the current $DFFD high RAM-bank extension value (bits 3:0). Exposed mainly for tests; production callers should derive bank mappings
pkg/memory/memory.go:589
↓ 4 callers
Function
Date
Date returns the build timestamp formatted for humans as "YYYY-MM-DD HH:MM:SS UTC" (date, time, and time zone). It uses the ldflags-injected BuildDate
pkg/version/version.go:43
↓ 4 callers
Method
Dirty
Dirty reports whether any guest write has landed in the image since load (or the last WriteBackTo). Drives the opt-in write-back policy: an untouched
pkg/next/sdcard/image_source.go:59
↓ 4 callers
Method
Emit
Emit implements Emitter.
pkg/trace/trace.go:54
↓ 4 callers
Method
Empty
Empty reports whether the set has no active watches. Hot-path helper so the pre-fetch hook can skip the State allocation when there's nothing to do.
pkg/debugger/regwatch.go:114
↓ 4 callers
Method
Empty
Empty reports whether any channel is enabled. When false, the CLI can skip every hook-install step and the program runs at full speed.
pkg/trace/trace.go:212
↓ 4 callers
Method
Finished
Finished reports whether the playback has run off the end of the file. After Frame returns ErrPlaybackFinished, this method returns true and all other
pkg/rzx/playback.go:98
↓ 4 callers
Function
FrameIntTiming
Frame-interrupt timing model, transcribed from the FPGA core so the whole class of INT-timing behaviour conforms in one place (timing.md §1a/§1c). See
pkg/next/inttiming.go:22
↓ 4 callers
Method
Geometry
Geometry reports the disk's cylinders, heads, sectors-per-track and sector size.
pkg/sam/disk.go:33
↓ 4 callers
Method
GetPortTracer
GetPortTracer returns the currently-installed PortTracer (or nil). Used by chained-tracer patterns where a new caller wants to run alongside any pre-e
pkg/ula/ula.go:497
↓ 4 callers
Method
GetRAMReadHook
GetRAMReadHook returns the currently-installed RAM-read hook, or nil. Allows chaining without clobbering a prior hook.
pkg/memory/memory.go:1683
↓ 4 callers
Method
HandleMemoryWrite
HandleMemoryWrite handles memory writes that might be intercepted by peripherals
pkg/peripherals/manager.go:604
↓ 4 callers
Method
HandlePortRead
HandlePortRead handles I/O port reads from peripherals
pkg/peripherals/manager.go:432
↓ 4 callers
Method
HasActiveTilemap
HasActiveTilemap reports whether the compositor has a tilemap layer wired AND enabled. ULA uses this to decide whether to run the border-area pass for
pkg/ula/ula.go:261
↓ 4 callers
Method
HasPalette
HasPalette reports whether the 512-byte palette block is present. The palette accompanies a loading screen unless the no-palette bit is set.
pkg/next/nex/nex.go:132
↓ 4 callers
Method
InsertInterface2Cartridge
InsertInterface2Cartridge loads a 16KB .rom cartridge image and inserts it into the Interface 2 cartridge slot, then resets the CPU so the cartridge c
pkg/testharness/testharness.go:322
↓ 4 callers
Method
InsertMicrodrive
InsertMicrodrive places the supplied cartridge into the IF1's drive `which` (0-based). Used by tests and any caller that has already parsed a *microdr
pkg/peripherals/manager.go:366
↓ 4 callers
Method
Instruction
Instruction returns the decoded instruction at index i. Indexes past MaxInstructions return a NOOP.
pkg/next/copper/copper.go:147
↓ 4 callers
Method
IntEnabled
IntEnabled returns the interrupt-enable bit (o_int_en, ctc_chan.vhd:276).
pkg/next/ctc/ctc.go:93
↓ 4 callers
Method
Interface2CartridgeName
Interface2CartridgeName returns the display name of the currently inserted cartridge, or an empty string if none is inserted.
pkg/peripherals/manager.go:216
↓ 4 callers
Method
IsMemSwapped
IsMemSwapped reports whether ROM and RAM positions are swapped.
pkg/disciple/disciple.go:746
↓ 4 callers
Method
KempstonMouseMove
KempstonMouseMove accumulates host mouse deltas into the Kempston X / Y counters. No-op if the mouse isn't enabled.
pkg/peripherals/manager.go:292
↓ 4 callers
Method
LoadNEX
LoadNEX parses a .NEX file and loads its banks into Spectrum Next memory, then prepares the CPU to run from the .NEX entry point (SP, PC, border set f
pkg/testharness/next.go:268
↓ 4 callers
Function
New
New returns a DAC with both devices disabled and the output centred (silent).
pkg/audiodac/audiodac.go:35
↓ 4 callers
Function
NewHistoryWide
NewHistoryWide is like NewHistory but flags the buffer as "producers will populate BC/DE/HL/IX/IY on every Push". Viewers gate the wide columns on thi
pkg/debugger/history.go:119
↓ 4 callers
Function
NewMemoryWithRAM
NewMemoryWithRAM builds the SAM memory with internalKB (256 or 512) of internal RAM and externalMB (0..4) of external RAM, at the power-on register st
pkg/sam/memory.go:83
↓ 4 callers
Function
NewScreen
NewScreen returns an all-paper Screen that decodes characters via cg.
pkg/zx8x/video.go:35
↓ 4 callers
Function
NextBootFilter
NextBootFilter returns a SkipFile predicate that excludes large distro files the early boot path doesn't need. Tunes the 1 GB FAT16 image down to a fe
pkg/next/sdcard/fat16.go:573
↓ 4 callers
Method
OpenDir
OpenDir opens a directory for enumeration via Handle.NextEntry.
pkg/next/sdcard/sdcard.go:35
↓ 4 callers
Function
ParseTRD
ParseTRD parses an in-memory TR-DOS TRD image. TR-DOS disks are always formatted as 2 sides × 80 cylinders × 16 sectors × 256 bytes (655360 bytes tota
pkg/plus3fdc/raw.go:269
↓ 4 callers
Method
PressSymbolShift
PressSymbolShift sets or releases the SYMBOL SHIFT bit directly. Companion to PressCAPSShift for E-mode keyword entry.
pkg/testharness/testharness.go:237
↓ 4 callers
Method
Priority
Priority returns the 2-bit NR$44 priority for the entry.
pkg/next/palette/palette.go:46
↓ 4 callers
Function
ReadFile
ReadFile is a thin wrapper around Read that loads the file from disk first. Mirrors the Load(path) shape of pkg/snapshot.Snapshot so RZX file handling
pkg/rzx/read.go:16
↓ 4 callers
Method
ReadNR44
ReadNR44 returns the NextReg $44 read-back. Per zxnext.vhd:6047 (nr_palette_dat(10 downto 9) & "00000" & nr_palette_dat(0)): bits 7:6 are the 2-bit pr
pkg/next/palette/palette.go:250
← previous
next →
901–1,000 of 5,503, ranked by callers