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
↓ 6 callers
Method
EnableBeta
EnableBeta installs the Beta Disk TR-DOS ROM and arms the $3Dxx auto-paging. rom is the 16 KB TR-DOS ROM; shorter blobs are zero-padded, longer ones t
pkg/memory/memory.go:1083
↓ 6 callers
Method
EntryPoints1
()
pkg/next/wire.go:46
↓ 6 callers
Method
GetMapping
GetMapping returns the current mapping for a physical key, or an empty slice if the key is not mapped.
pkg/keyboard/keyboard.go:558
↓ 6 callers
Method
GetRAMWriteHook
GetRAMWriteHook returns the currently-installed RAM-write hook, or nil if none. Useful for layering: e.g. the debugger can chain its watchpoint check
pkg/memory/memory.go:1586
↓ 6 callers
Method
GetROMPage
GetROMPage returns a direct pointer to a ROM page (0-3).
pkg/memory/memory.go:1801
↓ 6 callers
Method
HEPR
()
pkg/sam/memory.go:222
↓ 6 callers
Method
Halted
()
pkg/debugger/backtrace_widget.go:19
↓ 6 callers
Method
HandleNMI
HandleNMI handles Non-Maskable Interrupt (typically from Multiface red button)
pkg/peripherals/manager.go:532
↓ 6 callers
Method
HandleRETN
HandleRETN is the post-RETN unmap hook. divMMC pages itself out when the CPU executes RETN from within the overlay — this is how the NMI handler (RST
pkg/next/divmmc/divmmc.go:688
↓ 6 callers
Method
Hint
Hint returns a short human-readable description of where this frame came from. Empty for speculative frames.
pkg/debugger/backtrace.go:126
↓ 6 callers
Method
IFF1
()
pkg/debugger/backtrace_widget.go:17
↓ 6 callers
Function
InstallROM
InstallROM reads the file at srcPath, copies it under Path() preserving the source basename, and computes the SHA-256 digest. The destination is overw
pkg/next/install/install.go:109
↓ 6 callers
Method
IsKempstonMouseEnabled
IsKempstonMouseEnabled reports whether the Kempston mouse is currently attached.
pkg/peripherals/manager.go:286
↓ 6 callers
Method
IsRecording
IsRecording reports whether a WAV recording is currently in progress.
pkg/audio/audio.go:403
↓ 6 callers
Method
LEPR
()
pkg/sam/memory.go:221
↓ 6 callers
Function
Load
Load reads a cartridge from the filesystem. The file must be exactly 16384 bytes; any other size returns an error. The returned Cartridge has Name set
pkg/if2/if2.go:43
↓ 6 callers
Function
LoadDisk
LoadDisk parses a SAM disk image, detecting MGT (by size) or SAD (by header signature). EDSK / SBT are not yet supported.
pkg/sam/disk.go:91
↓ 6 callers
Method
LoadDisk
LoadDisk loads a disk image into the specified drive.
pkg/disciple/disciple.go:688
↓ 6 callers
Method
LoadOverrides
LoadOverrides applies a JSON map of physical key name -> []MappingEntry from the given file path. Missing files are not an error (overrides are option
pkg/keyboard/keyboard.go:572
↓ 6 callers
Method
MicrodriveCartridgeInserted
MicrodriveCartridgeInserted reports whether drive `which` has a cartridge. Used by the UI to grey out menu items when there's nothing to save / eject
pkg/peripherals/manager.go:412
↓ 6 callers
Method
Mode
Mode returns the low 2 bits decoded as compositor.PriorityMode.
pkg/next/wire.go:663
↓ 6 callers
Function
NewCharGen
NewCharGen returns a CharGen backed by the given character-generator data (the character-set region of the ZX80/ZX81 ROM).
pkg/zx8x/video.go:137
↓ 6 callers
Function
PCHistogram
PCHistogram tallies PC occurrences in the supplied entries and returns them sorted by descending count. Ties are broken by PC ascending for determinis
pkg/debugger/heatmap.go:17
↓ 6 callers
Method
Palette
Palette returns a specific palette by index (0..7), or nil for out-of-range.
pkg/next/palette/palette.go:169
↓ 6 callers
Function
ParseDiskImage
ParseDiskImage parses an in-memory disk image of any supported format, dispatching by signature. Headerless formats (MGT / IMG / TRD / D40 / D80) have
pkg/plus3fdc/disk.go:131
↓ 6 callers
Function
ParseFile
ParseFile reads and parses a .NEX file from disk.
pkg/next/nex/nex.go:146
↓ 6 callers
Method
PostFetchHook
PostFetchHook is the callback the Z80 should invoke after each opcode fetch but before dispatch. Pages the IF1 ROM OUT when PC matches the page-out tr
pkg/if1/if1.go:207
↓ 6 callers
Method
PostStep
PostStep is the PostFetchHook companion to Step. It applies the $1FF8-$1FFF page-out trigger AFTER the M1 opcode fetch has completed, matching the FPG
pkg/next/divmmc/divmmc.go:582
↓ 6 callers
Method
RawBytes
RawBytes returns a copy of the cartridge's data area sized to its declared length. The returned slice is independent of the cartridge.
pkg/microdrive/microdrive.go:127
↓ 6 callers
Method
ReadData
ReadData returns the next byte of a read transfer (Beta port $7F read).
pkg/betadisk/fdc.go:283
↓ 6 callers
Method
ReadDataPort
ReadDataPort reads one byte from the MDR data port. The IF1 ULA returns the AND of all motor-on drives' bytes (active-low bus). Mirrors port_mdr_in at
pkg/if1/microdrive.go:385
↓ 6 callers
Method
ReadROMByte
(addr int)
pkg/memory/next.go:438
↓ 6 callers
Method
Refresh
Refresh pulls fresh state and updates every cell. Called from the debugger's per-tick refresh.
pkg/debugger/pagemap.go:142
↓ 6 callers
Method
ResetInstructionCount
ResetInstructionCount zeros the instruction counter. RZX playback calls this at the start of each frame so the per-frame target from the recording can
pkg/z80/z80.go:663
↓ 6 callers
Function
SDCardImage
SDCardImage returns the host file path to use as a raw SD-card image, or "" if none configured. Resolution order: 1. $ZX_GO_NEXT_SD_IMG env var (test
pkg/next/install/install.go:327
↓ 6 callers
Method
SerializeDSK
SerializeDSK returns the EDSK bytes for this disk. Each track's sectors are walked from the byte stream, CRCs are recomputed to detect imaging-time er
pkg/plus3fdc/save.go:29
↓ 6 callers
Method
SetBlock
SetBlock writes a Block back into block N (0-based). Mirrors libspectrum_microdrive_set_block (microdrive.c:150-175).
pkg/microdrive/microdrive.go:179
↓ 6 callers
Method
SetDefaultAttr
SetDefaultAttr writes NR$6C (used when StripFlags is set).
pkg/next/tilemap/tilemap.go:91
↓ 6 callers
Method
SetEFF7
SetEFF7 applies a write to port $EFF7 (decoded as address&$F0FF==$E0F7, zxnext.vhd:2604 — high nibble $E, low byte $F7; a classic incompletely decoded
pkg/memory/memory.go:611
↓ 6 callers
Method
SetMapping
SetMapping replaces the mapping for a single physical key. Multiple MappingEntry values represent compound keystrokes (e.g. CAPS SHIFT + 5 for cursor
pkg/keyboard/keyboard.go:543
↓ 6 callers
Method
SetMount
SetMount installs an SD-card backend and registers the esxDOS file-API handlers that need it (F_OPEN through F_READDIR). Passing nil unregisters those
pkg/next/esxdos/esxdos.go:206
↓ 6 callers
Method
SetNextRegs
SetNextRegs installs the NextReg port handler. Called once during ModelNext construction; passing nil unhooks (useful for tests).
pkg/ula/ula.go:413
↓ 6 callers
Method
SetPortTracer
SetPortTracer installs a per-access callback fired after every port read and write that completes through ReadPort / WritePort. Pass nil to disable. U
pkg/ula/ula.go:492
↓ 6 callers
Method
SetProvider
SetProvider swaps the sprite source and repaints.
pkg/debugger/spriteview.go:79
↓ 6 callers
Method
SetRZXRecordHook
SetRZXRecordHook installs (or removes, with hook=nil) the RZX recording sink. The hook is called once per IN-port read with the value the real periphe
pkg/ula/ula.go:1304
↓ 6 callers
Method
SetWriteLogger
SetWriteLogger installs a hook fired on every successful write to divMMC RAM. Used for diagnostics that need to know exactly which divMMC bank/offset
pkg/next/divmmc/divmmc.go:964
↓ 6 callers
Method
SetWriteProtect
SetWriteProtect toggles the per-drive write-protect flag.
pkg/plus3fdc/upd765.go:297
↓ 6 callers
Method
Snapshots
Snapshots returns a copy of the current ring (oldest first) so callers can inspect without locking.
cmd/zx_go/timetravel.go:238
↓ 6 callers
Method
Source
Source / Destination / Length — accessors for tests. Source is the port A start address, Destination the port B start address.
pkg/next/dma/dma.go:503
↓ 6 callers
Method
StartRecording
StartRecording opens path for writing and begins capturing the mixed mono audio output as a 16-bit PCM WAV file at SampleRate. If a recording is alrea
pkg/audio/audio.go:354
↓ 6 callers
Method
ToneFrequency
ToneFrequency returns channel c's tone frequency in Hz.
pkg/saa1099/saa1099.go:104
↓ 6 callers
Method
Update
Update advances the tape state by the given number of T-states. Returns the current EAR bit value.
pkg/ula/tape.go:321
↓ 6 callers
Method
UseZX8xLayout
UseZX8xLayout switches the keyboard to the Sinclair ZX80/ZX81 matrix. Letter, digit, SPACE and SHIFT positions match the Spectrum, but the ZX8x has no
pkg/keyboard/keyboard.go:396
↓ 6 callers
Method
Write
(addr uint16, val byte)
pkg/zx8x/snapshot.go:5
↓ 6 callers
Method
WriteMemory
WriteMemory writes a single byte. Writes to ROM areas are silently ignored, the same as the real CPU.
pkg/testharness/testharness.go:268
↓ 6 callers
Method
WriteProtect
WriteProtect reports whether the cartridge is currently write-protected.
pkg/microdrive/microdrive.go:102
↓ 6 callers
Method
WriteSector
WriteSector overwrites the 256-byte sector at (cylinder, side, sector). buf must be exactly one sector.
pkg/betadisk/image.go:101
↓ 6 callers
Method
WriteSector
(v byte)
pkg/sam/wd1772.go:66
↓ 6 callers
Method
allocCluster
()
pkg/next/sdcard/fat32.go:231
↓ 6 callers
Method
appendDirent
appendDirent writes one 32-byte entry into the first free slot of the directory chain rooted at dirClus, extending the chain when full. Returns false
pkg/next/sdcard/fat32.go:264
↓ 6 callers
Function
bisectFirstDivergence
bisectFirstDivergence binary-searches for the first checkpoint at which our state stops matching a reference oracle. It is the automated form of the "
cmd/zx_go/bisect.go:20
↓ 6 callers
Function
bitTest
bitTest returns true if bit i in the bitmap is set.
pkg/plus3fdc/track.go:147
↓ 6 callers
Function
buildSyntheticFile
buildSyntheticFile constructs an in-memory RZX with one of every block type so the round-trip tests exercise the full parser/writer.
pkg/rzx/format_test.go:12
↓ 6 callers
Function
buildValidSector
--------------------------------------------------------------------------- The three checksums (block header, record header, data) — full hand-built
pkg/microdrive/spec_test.go:227
↓ 6 callers
Method
clockHigh
()
pkg/next/rtc/i2c_test.go:12
↓ 6 callers
Method
cmdClearBreakpoint
(args []string)
cmd/zx_go/debugger.go:1491
↓ 6 callers
Method
cmdDisasmBank
cmdDisasmBank disassembles N instructions starting at OFF inside the underlying buffer of KIND BANK, ignoring whatever the CPU has mapped. KIND values
cmd/zx_go/bank_access.go:164
↓ 6 callers
Method
cmdGetMemory
(args []string)
cmd/zx_go/debugger.go:1249
↓ 6 callers
Method
cmdSnapshotOnBP
cmdSnapshotOnBP implements `snapshot-on-bp DIR` (empty DIR to disable). The directory must already exist; the debugger refuses to mkdir for safety.
cmd/zx_go/bp_snapshot.go:22
↓ 6 callers
Method
cmdWatchZero
cmdWatchZero arms/disarms the zero-bank tracer. watch-zero on — halt on next M1 into a 16-byte-zero region watch-zero off — disarm
cmd/zx_go/debugger.go:1623
↓ 6 callers
Function
collect
()
cmd/zx_go/crashdetect_test.go:31
↓ 6 callers
Function
decodeBCD
decodeBCD unpacks a single BCD byte (00..99) into decimal.
pkg/next/esxdos/esxdos.go:169
↓ 6 callers
Method
enabled
enabled reports whether any heuristic is active.
cmd/zx_go/crashdetect.go:36
↓ 6 callers
Method
envEnabled
(g int)
pkg/saa1099/saa1099.go:133
↓ 6 callers
Method
executeDDCBInstruction
executeDDCBInstruction handles DD CB prefixed instructions (IX indexed bit / shift / rotate operations). Every opcode in this space operates on (IX+d)
pkg/z80/z80.go:3306
↓ 6 callers
Function
fileSubmenu
fileSubmenu groups a run of menu items under a single labelled parent entry (a fyne submenu via ChildMenu). Used to tame the otherwise huge flat File
cmd/zx_go/main.go:1536
↓ 6 callers
Method
flushSQLite
flushSQLite writes the buffered rows to a SQLite file at path, creating the `m1` table. A monotonically increasing `seq` column preserves execution or
cmd/zx_go/tracedb.go:86
↓ 6 callers
Method
formatProv
formatProv renders one last-writer record for the debugger reply.
cmd/zx_go/provenance_cmd.go:95
↓ 6 callers
Method
generatePulsesData
generatePulsesData is generatePulses plus the count of pulses that precede the trailing inter-block pause (the pilot/sync/data pulses).
pkg/ula/tape.go:401
↓ 6 callers
Function
isUnderTempDir
isUnderTempDir returns true if abs is plausibly inside a system temp directory. macOS uses /var/folders/... for t.TempDir; Linux uses /tmp; Windows us
pkg/next/install/installtest/installtest.go:70
↓ 6 callers
Method
lookup
lookup returns the last-writer record for a logical address. The returned record's valid field is false if nothing has written that address since the
cmd/zx_go/provenance.go:87
↓ 6 callers
Function
makeFrames
(n int)
pkg/rzx/recording_test.go:445
↓ 6 callers
Function
makePlaybackFile
makePlaybackFile builds a tiny RZX with one snapshot block followed by an IRB containing three frames: a normal one with two IN bytes, a repeat-last f
pkg/rzx/playback_test.go:11
↓ 6 callers
Function
markedMem
markedMem builds a Memory whose ROM and RAM pages carry recognisable markers so tests can tell which physical page a section resolves to.
pkg/sam/memory_test.go:7
↓ 6 callers
Function
mkText
(c color.Color)
pkg/debugger/debugger.go:570
↓ 6 callers
Method
mountTRD
mountTRD reads a .TRD image from path and mounts it in the given Beta drive (0..3), enabling the Beta interface if it isn't already.
cmd/zx_go/betadisk.go:67
↓ 6 callers
Function
newContendMem
iter 347: I/O + memory contention model tests. Two layers: 1. contentionDelay() — the per-T-state ULA hold pattern {6,5,4,3,2,1,0,0} over the 128-T c
pkg/memory/io_contention_test.go:21
↓ 6 callers
Function
newLoopDetector
(threshold int, onStall func(pc uint16, count int))
cmd/zx_go/debug.go:222
↓ 6 callers
Function
newTimeTravelBuffer
newTimeTravelBuffer constructs the ring. Returns nil if everyInsns/maxEntries are not sensible.
cmd/zx_go/timetravel.go:176
↓ 6 callers
Method
next
()
pkg/debugger/condition.go:193
↓ 6 callers
Method
octave
(c int)
pkg/saa1099/saa1099.go:95
↓ 6 callers
Method
onPortWrite
onPortWrite records one guest OUT (wire to the ULA port tracer, write side). Port-level records are what disambiguate multi-occupant RAM code in oracl
cmd/zx_go/readtape.go:111
↓ 6 callers
Method
pageInROM
pageInROM pages in the Multiface ROM overlay.
pkg/multiface/multiface.go:270
↓ 6 callers
Method
pauseAckTimeout
pauseAckTimeout is the configured pause-ack wait, defaulting to 2s when unset. Settable at runtime via `set-pause-timeout`.
cmd/zx_go/debugger.go:668
↓ 6 callers
Method
peek
()
pkg/debugger/condition.go:186
↓ 6 callers
Function
physKey
physKey packs a 16K bank index and a 14-bit intra-bank offset into a single map key. Offset is masked to 14 bits ($0000-$3FFF), so the bank shifts lef
cmd/zx_go/provenance.go:71
↓ 6 callers
Method
readByte
readByte clocks 8 bits out of the slave MSB-first, then sends the master's ACK (true) or NAK (false) on the 9th clock.
pkg/next/rtc/i2c_test.go:48
↓ 6 callers
Method
record
record stamps the last-writer record for addr. It is a no-op when the tracker is disabled so arming/disarming is free on the hot path.
cmd/zx_go/provenance.go:77
↓ 6 callers
Function
redirectConfig
(t *testing.T)
pkg/config/config_test.go:10
↓ 6 callers
Function
save
(t *testing.T, img image.Image, path string)
cmd/zx_go/snaprender_test.go:92
← previous
next →
701–800 of 5,503, ranked by callers