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
Function
scaleToWindowSize
scaleToWindowSize maps a percentage (100/125/150/200/300) to the fyne window size. The returned height is padded by the menu-bar height so the emulato
cmd/zx_go/main.go:2295
↓ 6 callers
Function
selectRow
selectRow returns the IN high byte that selects exactly one matrix row.
pkg/sam/typedrune_test.go:6
↓ 6 callers
Method
setFAT
(c, v uint32)
pkg/next/sdcard/fat32.go:215
↓ 6 callers
Method
setLineInterrupt
setLineInterrupt programs the line-interrupt target (OUT 0xF9). Lines 0-191 fire the maskable INT a second time at (line+68)·384; >=192 disables it. T
pkg/sam/io.go:162
↓ 6 callers
Method
tapeLoadingActive
tapeLoadingActive reports whether a tape is mid-load (playing with blocks still to load) — the window in which fast-tape turbo applies.
cmd/zx_go/main.go:915
↓ 6 callers
Function
tapeTrapROMActive
installTapeTrap installs a fast-load trap on the CPU that intercepts the 48K ROM LD-BYTES routine at 0x0556 and synthesises the load directly from the
cmd/zx_go/main.go:2009
↓ 6 callers
Method
timerExpired
timerExpired: tx_timer(PRESCALER_BITS-1 downto 1) == 0, i.e. timer in {0,1} (uart_tx.vhd:131).
pkg/next/uart/serial.go:100
↓ 6 callers
Method
timerExpired
()
pkg/next/uart/serial.go:476
↓ 6 callers
Method
updatePaging
updatePaging resolves the four section read/write pointers from the registers.
pkg/sam/memory.go:124
↓ 6 callers
Function
withConfigMode
Spec-derived tests for NextReg write handlers. Each test pins a code path that exists in the canonical FPGA VHDL at `_tools/reference/tbblue-fpga/cor
pkg/next/wire_specderived_test.go:30
↓ 6 callers
Function
xorChecksum
xorChecksum returns the standard tape block checksum: the XOR of every byte (flag through last data byte).
pkg/ula/tape_format_test.go:49
↓ 5 callers
Function
AddFileToFAT32
AddFileToFAT32 inserts data as a file named fileName under the directory dirPath (e.g. "imported", or "games/imported") into an existing in-memory FAT
pkg/next/sdcard/fat32_add.go:19
↓ 5 callers
Method
AutosaveDue
AutosaveDue reports whether enough frames have elapsed since the last automatic snapshot to warrant a new one. Drivers call this after each StoreFrame
pkg/rzx/recording.go:189
↓ 5 callers
Method
BankPeek
(kind string, bank, off, n int)
pkg/debugger/bankaccess_test.go:29
↓ 5 callers
Function
DistroURL
DistroURL returns the configured distro download URL.
pkg/next/install/download.go:27
↓ 5 callers
Method
Duration
Duration returns the T-state cost of the most recent transfer (per-byte cycle cost × bytes moved). The emulator charges this to the CPU clock so a con
pkg/next/dma/dma.go:517
↓ 5 callers
Method
EnableInterface1
EnableInterface1 turns on the Sinclair Interface 1 — the same path the GUI takes when the user clicks "Enable Interface 1". Pulls the embedded if1-2.r
pkg/testharness/testharness.go:297
↓ 5 callers
Method
EnableInterface1
EnableInterface1 attaches an Interface 1 with the supplied ROM image bytes. Allowed only on the 48K Spectrum.
pkg/peripherals/manager.go:153
↓ 5 callers
Method
EnableKempstonMouse
EnableKempstonMouse attaches a Kempston mouse to the peripheral bus. The mouse is idle until Move / SetButton calls arrive from the host event loop. I
pkg/peripherals/manager.go:268
↓ 5 callers
Method
FindAtOrBefore
FindAtOrBefore returns the latest entry whose insn ≤ target, or nil if none. Used by tt-rewind to pick the snapshot to restore.
cmd/zx_go/timetravel.go:248
↓ 5 callers
Method
FormatLine
FormatLine produces a one-line description suitable for the breakpoints list in either the telnet `list-breakpoints` output or the visual breakpoints
pkg/debugger/breakpoints.go:29
↓ 5 callers
Method
GetROMManager
GetROMManager returns the ROM manager
pkg/memory/memory.go:1146
↓ 5 callers
Method
GetTracer
GetTracer returns the currently-installed TraceFunc (or nil). Used by chained-tracer patterns so a new caller can wrap the existing tracer rather than
pkg/next/nextregs/dispatcher.go:263
↓ 5 callers
Function
GetVariantName
GetVariantName returns a human-readable name for the variant
pkg/multiface/multiface.go:353
↓ 5 callers
Method
HasPriority
HasPriority reports whether the Layer 2 priority bit (NR$44 bit 7, the high priority bit) is set — i.e. this pixel is promoted above the lower layers
pkg/next/palette/palette.go:51
↓ 5 callers
Method
IM
()
pkg/debugger/backtrace_widget.go:18
↓ 5 callers
Method
Is80Col
Is80Col reports whether NR$6B bit 6 (80-column mode) is set. In that mode the tilemap is 80 tiles × 8px = 640 pixels wide, so the caller must render i
pkg/next/tilemap/tilemap.go:115
↓ 5 callers
Method
IsInhibited
IsInhibited reports whether the DISCiPLE is inhibited.
pkg/disciple/disciple.go:736
↓ 5 callers
Method
KempstonMouseButton
KempstonMouseButton presses or releases a Kempston mouse button. btn is the button index (0 = right, 1 = left).
pkg/peripherals/manager.go:300
↓ 5 callers
Method
LineHeight
LineHeight returns the active framebuffer height (192 for 256×192, else 256).
pkg/next/layer2/layer2.go:248
↓ 5 callers
Method
List
List satisfies BreakpointsStore (alias of Snapshot).
pkg/debugger/bpset.go:72
↓ 5 callers
Method
List
()
pkg/debugger/breakpoints_widget.go:20
↓ 5 callers
Function
Load
Load reads config.json. If the file does not exist (fresh install) it returns a zero Config and no error. A corrupt file returns an error so the calle
pkg/config/config.go:66
↓ 5 callers
Function
LoadImage
LoadImage wraps a raw .TRD dump, inferring 80/40-track and single/double-sided geometry from its length. The 327680-byte size is ambiguous (40-track D
pkg/betadisk/image.go:57
↓ 5 callers
Method
LoadMicrodrive
LoadMicrodrive parses a .mdr cartridge file from disk and inserts it into the IF1's drive `which` (0-based). Mirrors the shape of LoadPlus3Disk so the
pkg/peripherals/manager.go:336
↓ 5 callers
Method
MicrodriveWriteProtected
MicrodriveWriteProtected reports whether the cartridge in drive `which` is currently write-protected. Returns false if the slot is empty or the IF1 is
pkg/peripherals/manager.go:398
↓ 5 callers
Method
MixedLevel
MixedLevel returns the mean of the four channel levels as an 8-bit unsigned value. The mixer in pkg/ula uses this to fold DAC output into the global a
pkg/next/dac/dac.go:136
↓ 5 callers
Function
New
New returns a hard-reset channel (equivalent to holding i_reset).
pkg/next/ctc/ctc.go:48
↓ 5 callers
Function
NewPageMapWidget
NewPageMapWidget builds a fresh diagram bound to mem. Pass a non-nil NextProvider to enable the 8-slot view; passing nil leaves the diagram in 4-slot
pkg/debugger/pagemap.go:99
↓ 5 callers
Method
OnTop
OnTop reports whether NR$6B bit 0 (tm_on_top) is set. When on, the FPGA renders the tilemap as ALWAYS opaque over every layer below — even nibble-0 pi
pkg/next/tilemap/tilemap.go:109
↓ 5 callers
Method
Open
Open opens a file under the mount root. esxDOS flags: bit 0 = read, bit 1 = write, bit 2 = create (if missing), bit 4 = truncate.
pkg/next/sdcard/sdcard.go:149
↓ 5 callers
Method
PageOut
PageOut unmaps the shadow ROM, restoring access to the main Spectrum ROM. Called when the IF1 ROM finishes its current command and returns control to
pkg/if1/if1.go:120
↓ 5 callers
Method
Read
Read fills buf and returns the number of bytes read; for files, this advances the file cursor.
pkg/next/sdcard/sdcard.go:51
↓ 5 callers
Function
ReadEmbeddedROM
ReadEmbeddedROM reads a ROM file from the embedded filesystem. Returns the data and nil error on success, or nil and an error if not found.
pkg/roms/embed.go:10
↓ 5 callers
Function
ReadFile
ReadFile reads a .mdr file from disk and parses it.
pkg/microdrive/microdrive.go:314
↓ 5 callers
Method
ReadSector
ReadSector returns a copy of the sector at (cyl, head, sector), or false if the address is out of range.
pkg/sam/disk.go:65
↓ 5 callers
Method
Refresh
Refresh recomputes the selected analysis from the live ring.
pkg/debugger/heatmap_widget.go:88
↓ 5 callers
Method
Reset
Reset clears all four DAC levels to 0 and the event-timing state.
pkg/next/dac/dac.go:123
↓ 5 callers
Method
RestorePagingState
RestorePagingState restores a previously saved paging configuration. If state is nil or was never saved, this is a no-op.
pkg/memory/memory.go:1850
↓ 5 callers
Method
Rollback
Rollback removes everything after the LAST snapshot block in the recording, returning that snapshot. The recording is left ready to resume from that p
pkg/rzx/recording.go:296
↓ 5 callers
Method
RunFrame
RunFrame executes approximately one 50 Hz frame, stepping the CPU and driving the ZX8x interrupts from a T-state line clock. The maskable INT (once pe
pkg/zx8x/machine.go:116
↓ 5 callers
Method
SaveTZX
SaveTZX writes the currently loaded blocks back to a TZX file. Each block is emitted using the same TZX block-ID it parsed as on load: standard-speed
pkg/ula/tzx.go:24
↓ 5 callers
Method
Seek
Seek sets the file cursor relative to whence (0 = start, 1 = current, 2 = end).
pkg/next/sdcard/sdcard.go:59
↓ 5 callers
Method
SeekToBlock
SeekToBlock positions the tape at the given block index. Playback is stopped (the caller can call Play afterwards). Out-of-range indices are clamped t
pkg/ula/tape.go:299
↓ 5 callers
Method
SelectRegister
SelectRegister latches the register that will be read or written via the data port. Only the low 4 bits are significant.
pkg/ay/ay.go:197
↓ 5 callers
Method
SelectSprite
(v byte)
pkg/ula/ula.go:302
↓ 5 callers
Method
SetBetaActive
SetBetaActive forces the Beta ROM paging state (used by save-state restore). It is a no-op unless the Beta ROM has been enabled.
pkg/memory/memory.go:1115
↓ 5 callers
Method
SetClip
SetClip installs the sprite clip window (NextReg $19 coords X1,X2,Y1,Y2). X is in 2-pixel units (matching the FPGA), Y in 1-pixel units.
pkg/next/sprite/sprite.go:118
↓ 5 callers
Method
SetDFFD
SetDFFD applies a write to port $DFFD, the Spectrum Next high RAM-bank extension. Bits 3:0 are the most-significant bits of the $C000-slot RAM bank se
pkg/memory/memory.go:556
↓ 5 callers
Method
SetHEPR
(v byte)
pkg/sam/memory.go:196
↓ 5 callers
Method
SetNextDMA
SetNextDMA installs the Spectrum Next zxnDMA controller. Port 0x6B writes are forwarded as command bytes. Passing nil unhooks.
pkg/ula/ula.go:429
↓ 5 callers
Method
SetNextDivMMC
SetNextDivMMC installs the divMMC pager's port-write hook so OUT (0xE3) reaches it. The pager itself is also wired via the CPU M1 pre-fetch hook (for
pkg/ula/ula.go:482
↓ 5 callers
Method
SetNextSpritePort
SetNextSpritePort installs the sprite engine's $303B select/status port handler. Passing nil unhooks.
pkg/ula/ula.go:433
↓ 5 callers
Method
SetPeripherals
SetPeripherals sets the peripheral manager for I/O port delegation
pkg/ula/ula.go:1757
↓ 5 callers
Method
SetROMBank
SetROMBank changes which of the four 16K ROM banks is visible at 0x0000-0x3FFF. Called from the NextReg 0x8E handler. Writes through to port7FFD bit 4
pkg/memory/next.go:134
↓ 5 callers
Method
SetRender
SetRender swaps the frame source and repaints.
pkg/debugger/imageview.go:59
↓ 5 callers
Method
SetSDHC
SetSDHC toggles the OCR's CCS bit so this card advertises SDHC/SDXC capacity (block-addressed CMD17 args) instead of the default SDSC (byte-addressed)
pkg/next/sdcard/spi.go:160
↓ 5 callers
Method
SetScrollX
SetScrollX installs the 9-bit Layer 2 X scroll (NR$71 bit0 || NR$16). Only the low 9 bits are kept. Feeds the FPGA address generator (layer2.vhd:152).
pkg/next/layer2/layer2.go:97
↓ 5 callers
Method
SetSide
SetSide selects the head (0/1) — driven from the SAM port address bit 2.
pkg/sam/wd1772.go:56
↓ 5 callers
Method
SetSpecDrum
SetSpecDrum / SetCovox enable or disable each device.
pkg/audiodac/audiodac.go:38
↓ 5 callers
Method
SetTransparency
SetTransparency installs the palette index that should be treated as "see-through" for the Layer 2 layer.
pkg/next/compositor/compositor.go:339
↓ 5 callers
Method
SimulateNMI
SimulateNMI manually triggers an NMI (for testing or programmatic use)
pkg/keyboard/keyboard.go:526
↓ 5 callers
Function
TStatesPerLineFor
TStatesPerLineFor returns the documented T-states-per-scanline for a machine model: 224 for the 48K (312 lines * 224 = 69888 T-states/frame), 228 for
pkg/ula/ula.go:40
↓ 5 callers
Method
Tick
Tick advances the channel by exactly one i_CLK rising edge with i_iowr = 0.
pkg/next/ctc/ctc.go:122
↓ 5 callers
Method
Wide
Wide reports whether this history's entries carry BC/DE/HL/IX/IY.
pkg/debugger/history.go:126
↓ 5 callers
Function
WireContentionDisable
WireContentionDisable installs the NextReg 0x08 OnWrite handler. NextReg 0x08 is officially "Peripheral 3" and exposes multiple behaviour bits (port-F
pkg/next/wire.go:564
↓ 5 callers
Function
WireLayer2
WireLayer2 installs the NextReg 0x12 / 0x13 / 0x69 OnWrite handlers. 0x12 / 0x13 select the active / shadow framebuffer banks; 0x69 bit 7 enables Laye
pkg/next/wire.go:597
↓ 5 callers
Function
WireLayerPriority
WireLayerPriority installs the NextReg 0x15 OnWrite/OnRead handlers. The compositor reads p.Get() to drive the 5-source ordering rules from the NextRe
pkg/next/wire.go:718
↓ 5 callers
Function
WireMMU
Other subsystems (CPU speed at NextReg 0x07, palette at 0x40–0x44, etc.) have their own Wire* functions below; this one is scoped to just the MMU regi
pkg/next/wire.go:1737
↓ 5 callers
Function
WireSprites
WireSprites installs the NextReg sprite-select (0x34), attribute-byte (0x35-0x39), and auto-incrementing attribute (0x75-0x79) handlers. NR$35-$39 wr
pkg/next/wire.go:692
↓ 5 callers
Method
Write9
Write9 stores both bytes of a 9-bit palette value (NextReg 0x44 behaviour: two consecutive writes — first the high 8 bits, then the second byte carryi
pkg/next/palette/palette.go:264
↓ 5 callers
Method
WriteBlock
WriteBlock writes 512 bytes into the image at the given LBA. Returns an error if the source is read-only.
pkg/next/sdcard/image_source.go:43
↓ 5 callers
Method
af
Helper functions for register pairs
pkg/z80/z80.go:3791
↓ 5 callers
Method
applyForcedCPUSpeed
applyForcedCPUSpeed enforces the user's "CPU Speed" override (cpuSpeedForce) on the live CPU. Called once per executed frame: - Auto (0), no CPU, or a
cmd/zx_go/main.go:1041
↓ 5 callers
Method
banks
banks returns a freshly-constructed accessor for the current emulator. Kept allocation-light because every debugger command builds one — these are tin
cmd/zx_go/bank_access.go:86
↓ 5 callers
Function
bitSet
bitSet sets bit i in the bitmap.
pkg/plus3fdc/track.go:142
↓ 5 callers
Method
bpset
bpset returns the shared breakpoint store, lazily allocating one if unset. Production always pre-sets d.bps in newRemoteDebugger (before any goroutine
cmd/zx_go/debugger.go:1382
↓ 5 callers
Function
bytes
(read readFunc, start uint16, count int)
pkg/debugger/disasm.go:60
↓ 5 callers
Function
ccfRun
ccfRun runs CCF starting from given A and F.
pkg/z80/flags_misc_test.go:23
↓ 5 callers
Method
chain
(c uint32)
pkg/next/sdcard/fat32_test.go:77
↓ 5 callers
Method
classifyBranch
classifyBranch sets c.BranchSource / c.BranchFrom based on the just-executed instruction's opcode if the PC took an unexpected path. The classifier is
pkg/z80/z80.go:945
↓ 5 callers
Method
clockLow
()
pkg/next/rtc/i2c_test.go:13
↓ 5 callers
Method
clutColour
clutColour resolves a 4-bit CLUT index → its master-palette colour.
pkg/sam/display.go:146
↓ 5 callers
Method
cmdClearTp
cmdClearTp removes one tracepoint (by PC) or all if no arg.
cmd/zx_go/debugger.go:1587
↓ 5 callers
Method
cmdTp
cmdTp adds a tracepoint at PC. The CPU does NOT halt at PC; instead, an slog.Info("tp-hit") record is emitted with full register state every time PC f
cmd/zx_go/debugger.go:1547
↓ 5 callers
Function
configureClassicIntTiming
configureClassicIntTiming sets the maskable frame interrupt to the hardware-faithful narrow pulse for 128K-family models, replacing the legacy "held f
cmd/zx_go/main.go:769
↓ 5 callers
Function
crc16CCITT
crc16CCITT computes the SD data-block CRC: CRC-16/CCITT with polynomial 0x1021 and initial value 0x0000 (the "XMODEM" variant the SD Physical Layer sp
pkg/next/sdcard/spi.go:516
↓ 5 callers
Method
currentTrack
currentTrack returns the track at the current US / HD / PCN, or nil if the selected drive has no disk in it.
pkg/plus3fdc/upd765.go:710
↓ 5 callers
Method
daa
DAA (Decimal Adjust Accumulator) implementation
pkg/z80/z80.go:2260
↓ 5 callers
Function
decodeWavHeader
(t *testing.T, b []byte)
pkg/audio/audio_test.go:245
← previous
next →
801–900 of 5,503, ranked by callers