MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 2 callersMethodApplyAttrByte
ApplyAttrByte decodes attribute byte idx (0..4) into the currently-selected sprite. Shared by the NextReg $35-$39/$75-$79 path and the port-$57 stream
pkg/next/sprite/sprite.go:164
↓ 2 callersFunctionBankPeekFrom
BankPeekFrom implements the bounds-checked peek logic on top of a backend's Bank() lookup. Backends embed this so their Bank() is the only method they
pkg/debugger/bankaccess.go:46
↓ 2 callersFunctionBankPokeFrom
BankPokeFrom is the symmetric counterpart to BankPeekFrom. The write goes directly into the backend's bank slice, so the running emulator sees the cha
pkg/debugger/bankaccess.go:67
↓ 2 callersFunctionBanner
Banner prints the ZX_Go startup banner to stderr in Spectrum rainbow stripes. No-op when stderr is not a TTY.
pkg/zxlog/zxlog.go:112
↓ 2 callersMethodClock
Clock advances one i_CLK rising edge for line level rxIn. After the call, Avail()/Byte()/FramingError()/ParityError() report this cycle's outputs.
pkg/next/uart/serial.go:556
↓ 2 callersMethodComposeWideTilemapRow
ComposeWideTilemapRow composites the native 640-pixel tilemap over dst, a 640-pixel RGBA row already holding the doubled lower layers.
pkg/ula/ula.go:285
↓ 2 callersMethodContendMemory
ContendMemory adds contention delay if the address is in contended memory.
pkg/memory/memory.go:757
↓ 2 callersMethodCurrentA
()
pkg/next/dma/dma.go:511
↓ 2 callersMethodDestination
()
pkg/next/dma/dma.go:504
↓ 2 callersMethodDisableKempstonMouse
DisableKempstonMouse detaches the Kempston mouse.
pkg/peripherals/manager.go:278
↓ 2 callersMethodDisableZXPrinter
DisableZXPrinter detaches the ZX Printer. Any accumulated print rows are dropped — callers who want to keep the bitmap should Save() first.
pkg/peripherals/manager.go:248
↓ 2 callersMethodDivMMCState
DivMMCState returns a one-line summary of the divMMC pager state: paged-in, MAPRAM, selected bank, automap on/off.
pkg/debugger/debugger.go:56
↓ 2 callersMethodEFF7Value
EFF7Value returns the current $EFF7 latch as it reads back on real hardware: bit 3 = portEFF7Reg3, bit 2 = portEFF7Reg2, all other bits 0. Exposed mai
pkg/memory/memory.go:630
↓ 2 callersMethodEjectDisk
EjectDisk removes the disk in the given drive, if any.
pkg/plus3fdc/plus3fdc.go:66
↓ 2 callersMethodEnableAudio
EnableAudio initializes and starts the audio system. Call this from the application (not tests) after creating the ULA.
pkg/ula/ula.go:1733
↓ 2 callersMethodEnabled
()
cmd/zx_go/timetravel.go:93
↓ 2 callersMethodFEReadCount
FEReadCount returns the monotonic count of port-$FE reads. The fast-load turbo samples this per frame: a high read rate means the CPU is in a tape loa
pkg/ula/ula.go:1787
↓ 2 callersMethodFinalise
Finalise consolidates the recording for distribution: removes any intermediate (non-first) snapshot blocks and merges adjacent input recording blocks
pkg/rzx/recording.go:378
↓ 2 callersMethodFrame
Frame ticks any peripheral that needs a per-frame pulse. Call once per emulator frame (50 Hz) after ExecuteFrame + Render. Currently only the ZX Print
pkg/peripherals/manager.go:227
↓ 2 callersMethodGenerateAudio
GenerateAudio fills buf with one frame of interleaved left/right 16-bit audio from the SAA1099 (buf length should be 2·SamplesPerFrame). The GUI calls
pkg/sam/audio.go:16
↓ 2 callersMethodGenerateSamples
GenerateSamples generates `count` audio samples (mono, signed 16-bit). The caller is expected to upmix to stereo if needed.
pkg/ay/ay.go:640
↓ 2 callersMethodGetRAM
GetRAM returns the Multiface RAM data
pkg/multiface/multiface.go:335
↓ 2 callersFunctionGetROMTypeName
GetROMTypeName returns a human-readable name for a ROM type
pkg/roms/rom_manager.go:277
↓ 2 callersMethodHandleOpcodeRead
HandleOpcodeRead handles opcode reads that might trigger peripheral actions
pkg/peripherals/manager.go:541
↓ 2 callersMethodHandlePortWrite
HandlePortWrite forwards FDC data writes. Writes to the status port are undefined on the µPD765 (it's read-only) but we report the port as handled so
pkg/plus3fdc/plus3fdc.go:109
↓ 2 callersMethodHandles
Handles reports whether the given I/O port is one of the Beta registers.
pkg/betadisk/interface.go:25
↓ 2 callersMethodHardReset
HardReset applies i_reset = '1' for a cycle: every reset_hard-guarded register returns to its power-on value (ctc_chan.vhd:175,190,266,281).
pkg/next/ctc/ctc.go:56
↓ 2 callersMethodHasActiveSprites
HasActiveSprites reports whether the sprite layer is wired AND enabled, so the ULA knows whether to run the sprite border pass.
pkg/ula/ula.go:272
↓ 2 callersMethodHasMedia
HasMedia reports whether a backing block source is present.
pkg/next/sdcard/spi.go:214
↓ 2 callersMethodHiResLayer2Active
HiResLayer2Active reports whether Layer 2 is in a hi-res mode (NR$70 resolution 1/2). When true the ULA renders the wide Layer 2 path (renderHiResLaye
pkg/ula/ula.go:289
↓ 2 callersMethodIEO
IEO returns the daisy-chain output (true = chain open below this controller).
pkg/next/im2.go:316
↓ 2 callersMethodIM
()
pkg/debugger/debugger.go:554
↓ 2 callersMethodIdAt
IdAt is the exported entry point for walking a track's byte stream to find the next IDAM. Used by external packages (e.g. disciple) that implement the
pkg/plus3fdc/track.go:384
↓ 2 callersMethodInjectP
InjectP loads a ZX81 .P snapshot (a raw dump from $4009, including the saved system variables) and resumes execution at the ROM's LOAD-return entry, s
pkg/zx8x/machine.go:164
↓ 2 callersMethodInsertInterface2Cartridge
InsertInterface2Cartridge loads a 16KB .rom file and inserts it into the Interface 2 cartridge slot. On subsequent memory reads in the 0x0000-0x3FFF w
pkg/peripherals/manager.go:185
↓ 2 callersMethodInsertMicrodrive
InsertMicrodrive inserts the cartridge file at path into the IF1's drive `slot` (0-based). Requires that EnableInterface1 has already been called.
pkg/testharness/testharness.go:314
↓ 2 callersMethodIntN
IntN reports the active-low INT line (true = inactive). /INT is asserted to the CPU when this is false.
pkg/next/im2.go:299
↓ 2 callersMethodIsPagedIn
IsPagedIn reports whether the divMMC overlay is currently masking memory at 0x0000–0x3FFF. This is the EFFECTIVE state — the FBLabs FPGA core maps the
pkg/next/divmmc/divmmc.go:346
↓ 2 callersMethodList
List returns a snapshot of the current watches in insertion order.
pkg/debugger/regwatch.go:99
↓ 2 callersFunctionLoadInstalledROM
LoadInstalledROM reads filename from the install dir ONLY — it does NOT fall back to any embedded copy. Use this when the question is literally "did t
pkg/next/install/install.go:377
↓ 2 callersFunctionLoadO
LoadO injects a ZX80 .O snapshot into mem, starting at $4000.
pkg/zx8x/snapshot.go:23
↓ 2 callersFunctionLoadP
LoadP injects a ZX81 .P snapshot into mem, starting at $4009. Bytes that would fall outside the 16-bit address space are dropped.
pkg/zx8x/snapshot.go:18
↓ 2 callersMethodLoadPeripheralROMs
LoadPeripheralROMs loads ROMs for peripheral devices. Each ROM is treated as optional: if the file isn't present in the user's roms/ directory or in
pkg/roms/rom_manager.go:202
↓ 2 callersMethodLoadPlus3Disk
LoadPlus3Disk parses a DSK image and attaches it to the given drive of the +3 FDC (0 = A, 1 = B).
pkg/peripherals/manager.go:69
↓ 2 callersMethodMMUSlots
MMUSlots returns the bank index visible in each of the 8K MMU slots. The Z80 has 8 slots of 8 KB; -1 marks "ROM" or "unmapped".
pkg/debugger/debugger.go:53
↓ 2 callersMethodMicrodriveSlotCount
MicrodriveSlotCount returns the number of microdrive slots the Interface 1 hardware supports (8). Exposed via the peripheral manager so UI code can it
pkg/peripherals/manager.go:329
↓ 2 callersMethodMixInto
MixInto sums all three TurboSound chips into buf, so the Engine satisfies the audio system's AY source (audio.AYSource). Each AY.MixInto adds (saturat
pkg/ay/engine.go:90
↓ 2 callersMethodMountSDCard
MountSDCard installs a directory-backed SD card on the Spectrum Next harness. Subsequent esxDOS F_OPEN / F_READ / F_FSTAT calls from guest code resolv
pkg/testharness/next.go:225
↓ 2 callersFunctionNew
New creates a new AudioSystem instance.
pkg/audio/audio.go:147
↓ 2 callersFunctionNewBus
NewBus wraps an RTC register model with the bit-banged i2c slave.
pkg/next/rtc/i2c.go:49
↓ 2 callersFunctionNewFIFOP
NewFIFOP returns a reset FIFO-pointer manager with the given depth.
pkg/next/uart/serial.go:275
↓ 2 callersFunctionNewLegacy
NewLegacy creates a Memory instance with the legacy interface for compatibility
pkg/memory/memory.go:875
↓ 2 callersFunctionNewPaletteView
px per swatch cell → 288×288 grid NewPaletteView builds the widget. provider may be nil (renders an all-black grid until one is set).
pkg/debugger/paletteview.go:32
↓ 2 callersFunctionNewSounDrive
NewSounDrive returns a SounDrive with the four channels at mid-scale ($80), matching soundrive.vhd's reset state.
pkg/next/dac/soundrive.go:32
↓ 2 callersFunctionNewWithBreakpoints
NewWithBreakpoints is New with an externally-supplied shared breakpoint set (pass the emulator's so the telnet and visual debuggers share one store).
pkg/debugger/debugger.go:231
↓ 2 callersMethodNextEntry
NextEntry reads the next directory entry (for directory handles). Returns io.EOF when the directory is exhausted.
pkg/next/sdcard/sdcard.go:79
↓ 2 callersMethodPCM_L
PCM_L returns the 9-bit left output (chA + chB), per soundrive.vhd.
pkg/next/dac/soundrive.go:74
↓ 2 callersMethodPCM_R
PCM_R returns the 9-bit right output (chC + chD), per soundrive.vhd.
pkg/next/dac/soundrive.go:77
↓ 2 callersMethodPaletteOffset
PaletteOffset returns the current NR$70 palette offset.
pkg/next/layer2/layer2.go:93
↓ 2 callersFunctionParseChannels
ParseChannels decodes a comma-separated list as used in the `--trace=` flag. Unknown channels return an error so typos don't silently disable a reques
pkg/trace/trace.go:220
↓ 2 callersFunctionParseUDI
ParseUDI parses a UDI image from a byte slice.
pkg/plus3fdc/udi.go:48
↓ 2 callersMethodPressCAPSShift
PressCAPSShift sets or releases the CAPS SHIFT bit on the Spectrum keyboard matrix directly. Used to drive extended keyword entry sequences where the
pkg/testharness/testharness.go:231
↓ 2 callersMethodPressKeyShift
PressKeyShift marks a host key as held down with the host shift modifier active — i.e. the Spectrum CAPS SHIFT bit gets set alongside the base key. Us
pkg/testharness/testharness.go:193
↓ 2 callersMethodROM
ROM returns a read-only view of the loaded ROM bytes. nil if no ROM is loaded.
pkg/if1/if1.go:88
↓ 2 callersMethodROMMappingNR8E
ROMMappingNR8E reconstructs the NextReg $8E ("Spectrum 128K Memory Mapping") READ value from the live paging ports. Per nextreg.txt lines 870-885 and
pkg/memory/next.go:278
↓ 2 callersMethodRead8
Read8 returns the NextReg $41 read-back: the 8 most-significant bits (8:1) of the 9-bit palette value at the current index in the selected (write-targ
pkg/next/palette/palette.go:242
↓ 2 callersMethodReadBlock
ReadBlock copies 512 bytes for the given LBA into dst. dst is guaranteed to be exactly 512 bytes.
pkg/next/sdcard/spi.go:50
↓ 2 callersMethodReadSelected
ReadSelected returns the value of the currently selected register, used by reads of port 0xFFFD.
pkg/ay/ay.go:238
↓ 2 callersMethodRearmFPGABootROM
RearmFPGABootROM re-enables bootrom mode using the retained image. Models zxnext.vhd:5108-5110: the NR reset block (hard OR soft reset) re-asserts boo
pkg/memory/next.go:378
↓ 2 callersMethodRefresh
Refresh repaints from the current provider. Reads the provider exactly once so the count label and the rendered sheet always agree, even though the pr
pkg/debugger/spriteview.go:88
↓ 2 callersMethodReg
(name string)
pkg/debugger/debugger.go:467
↓ 2 callersMethodReg
(name string)
cmd/zx_go/debugger.go:118
↓ 2 callersMethodReleaseKeyShift
ReleaseKeyShift releases a key that was pressed with PressKeyShift.
pkg/testharness/testharness.go:203
↓ 2 callersMethodRemoveInterface2Cartridge
RemoveInterface2Cartridge ejects any currently inserted cartridge. Memory reads at 0x0000-0x3FFF fall back to the internal BASIC ROM on the next read.
pkg/peripherals/manager.go:202
↓ 2 callersFunctionRenderSpriteSheet
RenderSpriteSheet tiles pre-resolved sprites into a sheet: each sprite is SpritePixels RGBA values (row-major 16×16), drawn at the given integer `scal
pkg/debugger/spritesheet.go:19
↓ 2 callersFunctionRenderSwatch
RenderSwatch draws `count` colours into a grid of `cols` columns, each cell `cell`×`cell` pixels, filling every cell with the colour returned by color
pkg/debugger/swatch.go:14
↓ 2 callersMethodReset
Reset reinitialises all three chips and selects chip 0.
pkg/ay/engine.go:102
↓ 2 callersMethodReset
Reset resets the CPU to its initial state.
pkg/z80/z80.go:468
↓ 2 callersMethodReset
Reset returns the chip to power-on state (all registers clear → silent).
pkg/saa1099/saa1099.go:62
↓ 2 callersMethodReset
Reset forces the module's registers to their reset values (multiface.vhd :126,141,156,175) and recomputes the outputs.
pkg/multiface/core.go:70
↓ 2 callersMethodReset
Reset restores the register file to power-on defaults, leaving OnRead/OnWrite handlers intact. Used by the GUI's "Reboot" menu item so a fresh boot do
pkg/next/nextregs/dispatcher.go:88
↓ 2 callersMethodReset
Reset returns the ULA to power-on state. The microdrive bus is reset too — see Bus.Reset for what that clears.
pkg/if1/ula.go:91
↓ 2 callersMethodResetWriteLatches
ResetWriteLatches drops the half-completed NR$44 pending-pair state. Called from the emulator's Reboot path so a stale half- pair from the previous bo
pkg/next/palette/palette.go:295
↓ 2 callersMethodRestoreMMU
RestoreMMU re-applies a SnapshotMMU capture via SetMMU, so the slot mapping (and any derived read/write page maps) is rebuilt exactly.
pkg/memory/memory.go:1794
↓ 2 callersMethodRestorePool
RestorePool copies a SnapshotPool result back into the live pool. Short/nil entries and length mismatches are clamped by copy(), so a snapshot from a
pkg/memory/memory.go:1771
↓ 2 callersMethodRestoreRAM
([][]byte)
cmd/zx_go/timetravel_nextstate.go:15
↓ 2 callersMethodSP
()
pkg/debugger/debugger.go:552
↓ 2 callersMethodSave
Save writes the accumulated rows to a PNG file. Returns an error if nothing has been printed yet or the file can't be written.
pkg/zxprinter/zxprinter.go:353
↓ 2 callersMethodSavePlus3Disk
SavePlus3Disk writes the disk in the given drive back to a DSK file.
pkg/peripherals/manager.go:79
↓ 2 callersMethodScreenImage
ScreenImage returns the current rendered screen image. The returned RGBA pointer is owned by the ULA and may be overwritten by the next Render call (i
pkg/testharness/testharness.go:274
↓ 2 callersMethodSetAccessor
SetAccessor rewires the backend. Pass nil to disconnect.
pkg/debugger/nextreg_widget.go:78
↓ 2 callersMethodSetAllWriteHook
SetAllWriteHook installs a callback fired on every successful Write that lands a byte in RAM (logical address + value), regardless of dispatch path. P
pkg/memory/memory.go:1615
↓ 2 callersMethodSetAutoIncDisable
SetAutoIncDisable sets the NR$43 bit-7 palette auto-increment-disable latch. When true, Write8/Write9 leave the index unchanged after a write.
pkg/next/palette/palette.go:112
↓ 2 callersMethodSetAutomap
SetAutomap enables or disables the automatic-paging mechanism. Disabling without CONMEM (port $E3 bit 7) also drops the currently-mapped overlay so th
pkg/next/divmmc/divmmc.go:310
↓ 2 callersMethodSetBorderClip
SetBorderClip sets NextReg $15 bit 5 ("border clip enable").
pkg/next/sprite/sprite.go:96
↓ 2 callersMethodSetContentionEnabled
SetContentionEnabled toggles ASIC contention (false = the ZX_GO_SAM_NO_CONTENTION A/B mode: no memory or I/O wait states at all).
pkg/sam/contention.go:53
↓ 2 callersMethodSetEntryPoints0
SetEntryPoints0 updates NextReg $B8 (Divmmc Entry Points 0), reconfiguring which of $0000/$0008/$0038 fetches trigger the overlay. Called from the Nex
pkg/next/divmmc/divmmc.go:636
↓ 2 callersMethodSetEntryPoints1
SetEntryPoints1 updates NextReg $BB (Divmmc Entry Points 1), reconfiguring the $3DXX trap, $1FF8 page-out, and the ROM-3 fetch hooks ($04C6 / $04D7 /
pkg/next/divmmc/divmmc.go:645
↓ 2 callersMethodSetEntryPointsTiming0
SetEntryPointsTiming0 updates NextReg $BA (Divmmc EP Timing 0). Cooperates with NR$B9 (epValid0) to gate the RST entry points.
pkg/next/divmmc/divmmc.go:660
↓ 2 callersMethodSetEntryPointsValid0
SetEntryPointsValid0 updates NextReg $B9 (Divmmc EP Validation 0). Per zxnext.vhd:2891-2895, gates the RST entry points: RST n only fires when B8[n] A
pkg/next/divmmc/divmmc.go:653
← previousnext →1,401–1,500 of 5,503, ranked by callers