MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 3 callersMethodRemoveInterface2Cartridge
RemoveInterface2Cartridge ejects any inserted IF2 cartridge and resets the CPU back into BASIC.
pkg/testharness/testharness.go:332
↓ 3 callersMethodRemovePostFetchHook
RemovePostFetchHook deregisters a post-fetch hook by name.
pkg/z80/z80.go:1063
↓ 3 callersFunctionRenderIndexed
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 callersMethodReset
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 callersMethodReset
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 callersMethodResetPaging
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 callersMethodResetSPI
()
pkg/next/wire.go:35
↓ 3 callersMethodRestore
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 callersMethodRoot
Root returns the embeddable canvas object.
pkg/debugger/timetravel_widget.go:109
↓ 3 callersMethodRow
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 callersMethodSP
()
pkg/debugger/backtrace_widget.go:16
↓ 3 callersFunctionSaveOverrides
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 callersMethodSavePagingState
SavePagingState captures the current paging configuration into a PagingState.
pkg/memory/memory.go:1835
↓ 3 callersMethodSaveScreenshot
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 callersMethodSaveTAP
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 callersMethodSetBetaDisk
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 callersMethodSetBorderTracer
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 callersMethodSetClip
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 callersMethodSetClock
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 callersMethodSetConfigWriteHook
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 callersMethodSetCovox
(on bool)
pkg/audiodac/audiodac.go:39
↓ 3 callersMethodSetCycleSink
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 callersMethodSetDAC
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 callersMethodSetDiscipleInhibit
SetDiscipleInhibit sets the Disciple inhibit state
pkg/peripherals/manager.go:680
↓ 3 callersMethodSetDivMMCRAM
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 callersMethodSetFallbackColour
SetFallbackColour installs the NR$4A fallback RGBA — shown where every layer is transparent at a pixel.
pkg/next/compositor/compositor.go:356
↓ 3 callersMethodSetInhibit
SetInhibit sets the inhibit state.
pkg/disciple/disciple.go:761
↓ 3 callersMethodSetLayer2ActiveBank
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 callersMethodSetMode80
SetMode80 is the dual.
pkg/next/tilemap/tilemap.go:78
↓ 3 callersMethodSetMultifaceEnabled
SetMultifaceEnabled sets the Multiface enabled state
pkg/peripherals/manager.go:687
↓ 3 callersMethodSetPageLogger
SetPageLogger installs a diagnostic hook fired on overlay paged-state transitions (see pageLogger). Pass nil to disable.
pkg/next/divmmc/divmmc.go:603
↓ 3 callersMethodSetPersistPath
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 callersMethodSetPlus3Speedlock
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 callersMethodSetPlus3WriteProtect
SetPlus3WriteProtect toggles the per-drive write-protect flag.
pkg/peripherals/manager.go:84
↓ 3 callersMethodSetScrollY
(v int)
pkg/next/tilemap/tilemap.go:121
↓ 3 callersMethodSetTilemapTransparency
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 callersMethodSetTrace
SetTrace registers a callback invoked at every RST 8 dispatch. Pass nil to disconnect.
pkg/next/esxdos/esxdos.go:112
↓ 3 callersMethodSetTrigger
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 callersMethodSetZeroOnTop
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 callersMethodSnapshot
Snapshot returns a copy of the current map for iteration/listing without holding the lock.
pkg/debugger/bpset.go:59
↓ 3 callersMethodSpecDrumEnabled
SpecDrumEnabled / CovoxEnabled report the current state.
pkg/audiodac/audiodac.go:42
↓ 3 callersMethodSpeedLocked
SpeedLocked reports whether the speed selector is pinned (LockSpeedSelect).
pkg/z80/z80.go:653
↓ 3 callersMethodStartRecording
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 callersMethodTilemapIs80Col
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 callersMethodWaitIfPaused
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 callersFunctionWire
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 callersFunctionWireAltROM
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 callersFunctionWireClipWindows
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 callersFunctionWireConfigModeRAMPage
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 callersFunctionWireJoystickIOMode
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 callersFunctionWirePeripheral1
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 callersFunctionWirePeripheral2
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 callersFunctionWireROMBank
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 callersMethodWrite
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 callersMethodWriteBackTo
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 callersMethodWriteBlock
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 callersMethodWriteIntEnable
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 callersMethodWriteSCL
(bit bool)
pkg/ula/ula.go:329
↓ 3 callersMethodWriteTrackReg
(v byte)
pkg/betadisk/fdc.go:104
↓ 3 callersMethodZeroOnTop
ZeroOnTop reports the NextReg $15 bit 6 "sprite_priority" mode.
pkg/next/sprite/sprite.go:140
↓ 3 callersMethodactiveAY
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 callersMethodaddress
address: lores.vhd:82-98.
pkg/next/lores/lores.go:78
↓ 3 callersMethodaltROMBuffer
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 callersMethodappendEdges
(edges []CallEdge)
pkg/debugger/heatmap_widget.go:116
↓ 3 callersFunctionapplyDirectBootNextRegs
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 callersFunctionassertSnapshotsEqual
(t *testing.T, want, got *snapshot.Snapshot)
pkg/rzx/snapshot_test.go:128
↓ 3 callersFunctionb2u
(v bool)
cmd/zx_go/nrpanel_cmd.go:50
↓ 3 callersFunctionbasis
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 callersFunctionblankTRD
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 callersFunctionbuild48KSNA
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 callersFunctionbuildRawMGT
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 callersMethodcapture
(name string, regs [256]byte)
cmd/zx_go/nrsnap_cmd.go:25
↓ 3 callersFunctioncaptureBankContext
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 callersFunctioncaptureNextStateFromEmu
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 callersMethodchannelLevel
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 callersMethodcheckRAMUninit
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 callersFunctionclearSymbol
clearSymbol removes a single symbol-table entry. No-op when the entry doesn't exist.
cmd/zx_go/debug.go:97
↓ 3 callersMethodcmdListTp
cmdListTp prints every active tracepoint with its hit count.
cmd/zx_go/debugger.go:1568
↓ 3 callersMethodcmdProvenancePhys
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 callersMethodcmdReadMemory
(args []string)
cmd/zx_go/debugger.go:1275
↓ 3 callersMethodcmdWriteMemory
(args []string)
cmd/zx_go/debugger.go:1287
↓ 3 callersMethodcompleteNoResult
completeNoResult finishes a command that has no result phase, returning the FDC to the idle command-accepting state.
pkg/plus3fdc/upd765.go:540
↓ 3 callersMethodcondState
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 callersFunctionconfigStringToMultifaceVariant
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 callersFunctioncontainsField
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 callersMethodcrashDetectStatus
()
cmd/zx_go/crashdetect_cmd.go:49
↓ 3 callersFunctioncreateTestROMs128
createTestROMs128 sets up 48.rom + 128-0/1.rom for 128K models.
pkg/peripherals/manager_test.go:675
↓ 3 callersMethodcurrentDisk
currentDisk returns the disk currently selected by the f.us field.
pkg/plus3fdc/upd765.go:586
↓ 3 callersFunctiondiskWithSector
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 callersMethoddispatchJoystick
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 callersFunctiondistinctDisplayBytes
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 callersFunctiondrainAccepted
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 callersMethoddriveReadBit
driveReadBit presents the current MSB of readData on SDA.
pkg/next/rtc/i2c.go:195
↓ 3 callersMethoddriveReady
driveReady reports whether the given logical drive (0..3) currently has a disk in its physical slot.
pkg/plus3fdc/upd765.go:581
↓ 3 callersFunctiondsSeed
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 callersMethodemitMark
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 callersMethodemitSync
emitSync writes the sync field (the gap's syncLen sync bytes).
pkg/plus3fdc/track.go:190
↓ 3 callersFunctionenDis
(v bool)
cmd/zx_go/layerstate_cmd.go:56
↓ 3 callersMethodendTypeII
endTypeII clears Busy/DRQ, sets the given residual status bits, ends any transfer, and raises INTRQ.
pkg/betadisk/fdc.go:274
↓ 3 callersMethodexplainPoppedReturn
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
← previousnext →1,201–1,300 of 5,503, ranked by callers