MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 16 callersFunctionNewMemory
NewMemory builds the SAM memory with 512 KB internal RAM and no external RAM (the default config) from the two 16 KB ROM halves.
pkg/sam/memory.go:76
↓ 16 callersFunctionNewMicrodriveBus
NewMicrodriveBus creates a fresh bus with no cartridges inserted and all drives idle. Each slot starts with a freshly-allocated blank Cartridge so the
pkg/if1/microdrive.go:280
↓ 16 callersMethodNextByte
NextByte returns the next IN-port byte for the current frame. The ULA's RZX playback hook calls this for every CPU IN instruction. Returns ErrPlayback
pkg/rzx/playback.go:141
↓ 16 callersMethodRGB
RGB returns the (red, green, blue) channels for the entry at index, each expanded from its 3-bit packed form to a full 8-bit channel value via the sta
pkg/next/palette/palette.go:65
↓ 16 callersMethodReset
Reset clears all registers and internal state.
pkg/ay/ay.go:145
↓ 16 callersMethodadc
Add with carry
pkg/z80/z80.go:3919
↓ 16 callersMethoddec
(val byte)
pkg/z80/z80.go:3879
↓ 16 callersMethodenvLevel
envLevel returns the current 0-15 envelope level for generator g.
pkg/saa1099/saa1099.go:145
↓ 16 callersFunctionfakeSystem
fakeSystem produces an AudioSystem instance that's safe to use without an oto context — we exercise the queue logic only, not the playback path.
pkg/audio/audio_test.go:14
↓ 16 callersMethodinc
Inc/Dec operations with proper flag handling
pkg/z80/z80.go:3867
↓ 16 callersMethodixh
()
pkg/z80/z80.go:3801
↓ 16 callersMethodixl
()
pkg/z80/z80.go:3802
↓ 16 callersMethodiyh
()
pkg/z80/z80.go:3803
↓ 16 callersMethodiyl
()
pkg/z80/z80.go:3804
↓ 16 callersMethodsbc
Subtract with carry (borrow)
pkg/z80/z80.go:3946
↓ 16 callersMethodtogglePause
()
cmd/zx_go/main.go:1493
↓ 15 callersFunctionDisassemble
Disassemble disassembles count instructions starting from addr.
pkg/debugger/disasm.go:31
↓ 15 callersMethodGetAltROM
GetAltROM exposes one of the two alt-ROM 16K buffers as a slice for the debugger's bank-inspect path. Bank 0/1 only; out-of-range returns nil.
pkg/memory/memory.go:460
↓ 15 callersMethodGetDisciple
GetDisciple returns the Disciple interface (if enabled)
pkg/peripherals/manager.go:661
↓ 15 callersMethodHandlePortRead
HandlePortRead is the peripheral-manager-compatible read handler. Decodes the port address against the three Kempston patterns and returns the corresp
pkg/kempmouse/kempmouse.go:103
↓ 15 callersMethodHandlePortRead
HandlePortRead handles reads from Multiface I/O ports. On real hardware, IN to the Multiface port controls page-in/page-out based on A7: A7=1 pages in
pkg/multiface/multiface.go:211
↓ 15 callersMethodHandleWrite
HandleWrite is the memory.PeripheralWrite hook. Writes to the 0x2000-0x3FFF window land in the bank selected by port 0xE3 EXCEPT when MAPRAM is set an
pkg/next/divmmc/divmmc.go:921
↓ 15 callersMethodLoadROM
LoadROM loads a single ROM file. It tries the embedded ROMs first, then falls back to the filesystem path.
pkg/roms/rom_manager.go:141
↓ 15 callersMethodMode
()
pkg/next/compositor/compositor.go:56
↓ 15 callersFunctionNew
New returns a dispatcher with the boot-path minimum handler set (M_GETHANDLE, M_DRVAPI) pre-registered. File API handlers (F_OPEN, F_READ, etc.) are N
pkg/next/esxdos/esxdos.go:121
↓ 15 callersFunctionParseCondition
--- parser --- ParseCondition tokenizes + parses an expression. Returns an error positioning the failure within the input.
pkg/debugger/condition.go:78
↓ 15 callersFunctionParseDSK
ParseDSK parses a DSK image from a byte slice. Both the original CPCEMU "MV - CPCEMU Disk-File" format and the EXTENDED CPC DSK variant are supported.
pkg/plus3fdc/disk.go:149
↓ 15 callersMethodSetSpeedSelect
SetSpeedSelect installs the NextReg 0x07 speed selector. Only the low 2 bits are honoured; other bits are ignored. A no-op once the speed has been loc
pkg/z80/z80.go:629
↓ 15 callersMethodStepInstructionWithIRQ
StepInstructionWithIRQ executes one Z80 instruction at the M1 sample point — mirrors the per-iteration body of ExecuteFrame so that debugger-driven si
pkg/z80/z80.go:1116
↓ 15 callersMethodTapKey
TapKey presses a key, runs holdFrames frames, releases it, then runs gapFrames more frames. The default values (3 hold + 2 gap) give the Spectrum's ke
pkg/testharness/testharness.go:211
↓ 15 callersMethodWriteData
WriteData feeds the next byte of a write transfer (Beta port $7F write), or just latches the data register when no write is in flight (e.g. before a S
pkg/betadisk/fdc.go:299
↓ 15 callersMethoddecompressZ80
decompressZ80 decompresses Z80 RLE compressed data
pkg/snapshot/z80.go:258
↓ 15 callersMethodexecuteFDInstruction
(opcode byte)
pkg/z80/z80.go:3373
↓ 15 callersMethodfind
(dir uint32, name string)
pkg/next/sdcard/fat32_test.go:142
↓ 15 callersMethodhandleCommand
(line string)
cmd/zx_go/debugger.go:909
↓ 15 callersMethodloadIXd
()
pkg/z80/z80.go:3251
↓ 15 callersMethodloadIYd
()
pkg/z80/z80.go:3283
↓ 15 callersFunctionnewTestULA
newTestULA constructs a minimal ULA for the RZX hook tests, reusing the test-ROM helpers from ula_test.go so we don't need a separate memory construct
pkg/ula/rzx_test.go:14
↓ 15 callersMethodreboot
()
cmd/zx_go/main.go:1391
↓ 15 callersFunctionredirectConfig
redirectConfig is the local in-package helper. Cross-package callers should use install/installtest.RedirectConfig. We can't just import installtest h
pkg/next/install/install_test.go:22
↓ 15 callersMethodstatusByte
statusByte computes the active-low interrupt bits (1 = inactive) from the current frame-relative T-state: the frame INT is pending for samIntActiveCyc
pkg/sam/io.go:144
↓ 14 callersMethodChecksum
Checksum verifies the three checksum fields of block N against the stored data using the same Z80-style ADC loop as the IF1 ROM (microdrive.c:185-250)
pkg/microdrive/microdrive.go:223
↓ 14 callersMethodComposeScanline
(y int, ulaRGBA []byte, dst []byte)
pkg/ula/ula.go:256
↓ 14 callersMethodDisabled
Disabled reports whether AY output is suppressed (NextReg 0x06 bits 1-0 == 11, "hold all AY in reset").
pkg/ay/engine.go:53
↓ 14 callersMethodEval
Eval evaluates the parsed condition against the current state. Errors are programmer bugs (e.g. unknown register name caught at parse time would mean
pkg/debugger/condition.go:52
↓ 14 callersMethodFindSector
FindSector locates a sector by R on the track by walking the byte stream for matching IDAMs. Returns nil if not present. Used by tests for verificatio
pkg/plus3fdc/disk.go:30
↓ 14 callersMethodIsMultifaceEnabled
IsMultifaceEnabled returns whether Multiface is enabled
pkg/peripherals/manager.go:656
↓ 14 callersMethodLoadROMBytes
LoadROMBytes installs an 8 KB ROM image from a byte slice. Used by the embedded-ROM fallback path in pkg/roms.
pkg/if1/if1.go:69
↓ 14 callersFunctionNew
New returns a Bank with all channels at level 0 (silent).
pkg/next/dac/dac.go:46
↓ 14 callersFunctionNew
New returns an RTC backed by the host system clock.
pkg/next/rtc/rtc.go:48
↓ 14 callersMethodReadStatus
ReadStatus returns the Main Status Register byte. The CPU reads this from port 0x2FFD on the +3.
pkg/plus3fdc/upd765.go:395
↓ 14 callersMethodRemovePreFetchHook
RemovePreFetchHook deregisters a pre-fetch hook by name. Safe to call for a name that was never registered.
pkg/z80/z80.go:1038
↓ 14 callersMethodRoot
Root returns the panel's top-level object.
pkg/debugger/imageview.go:56
↓ 14 callersMethodSave
Save writes config.json atomically (write-temp + rename) so a crash mid-write doesn't truncate the existing config.
pkg/config/config.go:87
↓ 14 callersMethodSet
Set updates the stored byte.
pkg/next/wire.go:657
↓ 14 callersMethodStart
Start positions the cursor at the `which`-th input recording block (0-indexed, ignoring non-IRB blocks) and returns the snapshot block that immediatel
pkg/rzx/playback.go:62
↓ 14 callersMethodStatus
Status returns the NextReg 0xA9 status byte: TX-ready always set (we accept any byte), RX-ready set when rxBuf has pending bytes.
pkg/next/uart/uart.go:44
↓ 14 callersMethodStoreFrame
StoreFrame closes the in-progress frame, recording the supplied instruction count alongside the IN bytes captured since the previous StoreFrame. The b
pkg/rzx/recording.go:150
↓ 14 callersFunctionWirePeripheralMasks
WirePeripheralMasks installs OnWrite handlers for NR$81, $85, $89, $8A that apply the reserved-bit masks the FPGA enforces. Without these, the dispatc
pkg/next/wire.go:1041
↓ 14 callersMethodWriteCommand
(val byte)
pkg/ula/ula.go:320
↓ 14 callersFunctiondecodePort
decodePort returns the port class for an I/O address.
pkg/if1/ula.go:46
↓ 14 callersFunctionnewBlankInert
newBlankInert builds a machine and asserts the inert-peripherals invariant indirectly by never wiring a Spectrum peripherals manager — the machine own
pkg/zx8x/ula_spec_test.go:577
↓ 14 callersFunctionnewNextEmulator
newNextEmulator constructs the production Spectrum Next emulator from scratch (cold start). For runtime model switches use the classic newEmulator(mod
cmd/zx_go/next.go:200
↓ 14 callersMethodonM1Fetch
onM1Fetch implements the CPU-generated display: an M1 fetch from the upper 32K (A15 = 1) with bit 6 clear is turned into a NOP while its byte is drawn
pkg/zx8x/machine.go:82
↓ 14 callersFunctionpushTTEntry
(t *timeTravelBuffer, insn uint64, pc uint16, label string)
cmd/zx_go/timetravel_test.go:26
↓ 14 callersMethodrecord
record appends a row, evicting the oldest when full.
cmd/zx_go/tracedb.go:60
↓ 14 callersFunctionresetSymbolTable
======================================================================== Symbol map tests. ===========================================================
cmd/zx_go/debug_test.go:118
↓ 14 callersFunctionrunFrames
(m *Machine, n int)
pkg/sam/integration_test.go:44
↓ 14 callersMethodsetStatus
(s string, isErr bool)
pkg/debugger/bankinspect.go:197
↓ 14 callersMethodwriteByte
writeByte sends 8 bits MSB-first and samples the slave's ACK on the 9th clock. Returns true when the slave ACKed (SDA pulled low).
pkg/next/rtc/i2c_test.go:32
↓ 13 callersMethodBank
Bank returns a slice aliasing the physical bytes of bank number `bank` in `kind`. Writes to the returned slice MUST be visible to the running emulator
pkg/debugger/bankaccess.go:21
↓ 13 callersMethodGet
Get returns the raw byte.
pkg/next/wire.go:660
↓ 13 callersMethodGetTapePlayer
GetTapePlayer returns the currently loaded tape player (or nil).
pkg/ula/ula.go:1827
↓ 13 callersMethodLastE3
()
cmd/zx_go/debugger.go:1226
↓ 13 callersMethodMemoryBus
Memory returns the underlying memory.Memory.
pkg/testharness/testharness.go:129
↓ 13 callersFunctionNew
New returns an empty UART. Initial state: TX FIFO has space, RX FIFO is empty, AT+GMR returns DefaultVersion.
pkg/next/uart/uart.go:34
↓ 13 callersFunctionNewPlayback
NewPlayback wraps a parsed File for playback. Start must be called before any other method does useful work.
pkg/rzx/playback.go:51
↓ 13 callersFunctionNewULA
NewULA constructs a fresh IF1 ULA wrapping the supplied microdrive bus. If bus is nil a fresh one is allocated.
pkg/if1/ula.go:82
↓ 13 callersMethodPatternByte
PatternByte returns the byte at the given pattern-RAM offset. Useful for tests; out-of-range returns 0.
pkg/next/sprite/sprite.go:423
↓ 13 callersMethodReadSector
ReadSector returns a copy of the 256-byte sector at (cylinder, side, sector).
pkg/betadisk/image.go:89
↓ 13 callersMethodReadStatus
()
pkg/ula/ula.go:312
↓ 13 callersMethodRenderScanline
RenderScanline renders one raster line of the LoRes/Radastan layer into dst (one byte = one 8-bit palette index per output pixel). vc is the raster Y
pkg/next/lores/lores.go:160
↓ 13 callersMethodRenderScanline
RenderScanline writes one row (LineWidth bytes) of palette-indexed pixels from the active framebuffer to dst, applying the FPGA's scroll + wrap + per-
pkg/next/layer2/layer2.go:267
↓ 13 callersFunctionSDCardRoot
SDCardRoot returns the host directory whose contents are exposed to the emulator as a virtual FAT16 SD card. Resolution order: 1. $ZX_GO_NEXT_SD_DIR
pkg/next/install/install.go:295
↓ 13 callersMethodSelected
Selected returns the active chip index (0..2).
pkg/ay/engine.go:49
↓ 13 callersMethodSetLMPR
Paging-register writes (called by the I/O port dispatch). LMPR, HMPR, LEPR and HEPR change the CPU map; VMPR only selects the displayed page.
pkg/sam/memory.go:193
↓ 13 callersMethodSetRAMWriteHook
SetRAMWriteHook installs a debug callback fired on every successful RAM write that lands via the Memory.Write path. bank is the 16K SRAM index, addr i
pkg/memory/memory.go:1578
↓ 13 callersMethodSetTapePlayer
SetTapePlayer sets the tape player for tape loading. The tape clock is re-synced to the current CPU T-state so playback starts "now" rather than jumpi
pkg/ula/ula.go:1794
↓ 13 callersMethodSpeedSelect
SpeedSelect returns the currently-installed NextReg 0x07 speed selector (0..3). Useful for snapshot save and for the dispatcher to read back what was
pkg/z80/z80.go:658
↓ 13 callersMethodTick
Tick is called once per simulated frame. If the frame index is a multiple of `every`, a snapshot is emitted to stderr (via slog) and optionally a scre
cmd/zx_go/debug.go:341
↓ 13 callersMethodULA
ULA returns the underlying ULA. Most tests should use the ScreenImage / ScreenText helpers instead of touching this directly.
pkg/testharness/testharness.go:133
↓ 13 callersMethodWriteFile
WriteFile serialises the cartridge to disk at the given path.
pkg/microdrive/microdrive.go:335
↓ 13 callersMethodcrashDetectSet
(args []string)
cmd/zx_go/crashdetect_cmd.go:115
↓ 13 callersFunctionheaderText
(s string, c color.Color)
pkg/debugger/debugger.go:583
↓ 13 callersFunctionnewNextMem
newNextMem builds a ModelNext memory.Memory using the sandboxed install dir so the test never touches the user's real config. Mirrors the helper patte
pkg/memory/next_nr8e_test.go:13
↓ 13 callersMethodpopC
popC pops a 16-bit value through contended read cycles (lo at SP, hi at SP+1).
pkg/z80/z80.go:459
↓ 13 callersFunctionrunOneFrameHeadless
runOneFrameHeadless advances the CPU by one ULA frame. Normally that's a single ExecuteFrame call. ZX_GO_STEP_FRAME=1 instead drives the CPU through t
cmd/zx_go/headless.go:1038
↓ 13 callersFunctiontransferCmd
transferCmd builds a complete zxnDMA / Z80-DMA command stream for a memory->memory transfer: RESET, WR0 (direction + src + length), WR1 (port A mode),
pkg/next/dma/dma_test.go:13
↓ 12 callersMethodCount
Count returns the live down-counter (o_cpu_d, ctc_chan.vhd:168).
pkg/next/ctc/ctc.go:86
↓ 12 callersMethodDataAt
DataAt reads the raw byte at the given absolute offset within the cartridge (0 .. Length()*BlockLen - 1). Used by the IF1 controller when streaming by
pkg/microdrive/microdrive.go:110
← previousnext →301–400 of 5,503, ranked by callers