MCPcopy Create free account

hub / github.com/conorarmstrong/zx_go / functions

Functions5,503 in github.com/conorarmstrong/zx_go

↓ 23 callersMethodRead
(addr uint16)
pkg/next/esxdos/esxdos.go:251
↓ 23 callersMethodSetControl
SetControl writes NR$6B low 7 bits (the enable bit is handled separately by SetEnabled, but in practice the wire layer decomposes the byte and calls b
pkg/next/tilemap/tilemap.go:72
↓ 23 callersMethodidAdd
idAdd writes a sector ID field: sync, A1 mark, FE mark, CHRN, CRC, then GAP II. crcError corrupts the CRC bytes so the FDC's CRC check fails — used to
pkg/plus3fdc/track.go:255
↓ 23 callersFunctionioContentionCost
Per-opcode I/O contention. Each I/O opcode routes its port access through memory.ContendPort, so an access to a contended ULA port (even port, address
pkg/z80/io_contention_test.go:18
↓ 22 callersMethodActive
Active reports whether the IF1 shadow ROM is currently paged in. When true, MemoryRead returns IF1 ROM bytes for any address in 0x0000-0x3FFF, hiding
pkg/if1/if1.go:99
↓ 22 callersMethodAltROMReg
AltROMReg returns the current NextReg $8C value.
pkg/memory/memory.go:360
↓ 22 callersMethodBytes
Bytes serialises the recording to a fresh byte slice using the supplied options. Closes any active input block first so the file is in a consistent st
pkg/rzx/recording.go:269
↓ 22 callersMethodEnterConfigMode
EnterConfigMode is the symmetric counterpart to ClearConfigMode. Called from the NextReg $03 OnWrite handler when guest code requests bits 2-0 = 111 (
pkg/memory/next.go:422
↓ 22 callersMethodHandleKeyEvent
HandleKeyEvent processes a Fyne key event with modifier information.
pkg/keyboard/keyboard.go:60
↓ 22 callersMethodIsDir
()
pkg/next/sdcard/sdcard.go:47
↓ 22 callersMethodMove
Move accumulates host-mouse deltas into the X / Y counters. dx and dy are signed deltas in "mouse units" — usually pixels, but the Spectrum software i
pkg/kempmouse/kempmouse.go:71
↓ 22 callersFunctionNewROMManager
NewROMManager creates a new ROM manager
pkg/roms/rom_manager.go:83
↓ 22 callersMethodRAM8KPage
RAM8KPage returns the 8 KB main-RAM page addressed by the hardware MMU bank index `bank8k` (the value an NR$50-57 / port-7FFD write selects). The Next
pkg/memory/memory.go:475
↓ 22 callersMethodadd
Add operation with carry handling
pkg/z80/z80.go:3906
↓ 22 callersFunctionblockSum
blockSum is the IF1 block checksum: a running 8-bit sum where each step does ADD then ADC #1, with the special case that a result of 0xFF (after the +
pkg/microdrive/microdrive.go:273
↓ 22 callersFunctionclassifyCase
classifyBranch test matrix. classifyBranch attributes each PC transition to a BranchSource category for the debugger's history view. Sources: 1 = JP
pkg/z80/classifybranch_test.go:24
↓ 22 callersMethoddataAdd
dataAdd writes a sector data field: sync, A1 prefix, FB/F8 mark, data bytes, CRC, then GAP III. crcError corrupts the data CRC. Returns the position o
pkg/plus3fdc/track.go:298
↓ 22 callersMethodgap4Add
gap4Add fills the rest of the track with the gap byte.
pkg/plus3fdc/track.go:347
↓ 22 callersFunctionmkHit
(kind string, bank, i int, raw []byte, mnem string)
cmd/zx_go/xref_cmd.go:227
↓ 22 callersFunctionnewTestMachine
newTestMachine builds a machine on the synthetic ROM and advances one frame so CPU.Tstates() is large enough for frame-relative arithmetic without und
pkg/sam/io_test.go:7
↓ 22 callersFunctionnewTrackBuilder
newTrackBuilder wraps a freshly-created Track for byte-stream assembly.
pkg/plus3fdc/track.go:167
↓ 22 callersMethodpostindexAdd
postindexAdd writes the post-index gap (between the index mark and the first sector ID).
pkg/plus3fdc/track.go:247
↓ 22 callersMethodpreindexAdd
preindexAdd writes the pre-index gap, sync, mark, and the index mark (0xFC).
pkg/plus3fdc/track.go:223
↓ 21 callersMethodCurrentBlock
CurrentBlock returns the current block index.
pkg/ula/tape.go:199
↓ 21 callersMethodLoadBytes
LoadBytes parses a snapshot from an in-memory byte slice using the supplied format. Used by callers that have the snapshot bytes available without a b
pkg/snapshot/snapshot.go:118
↓ 21 callersFunctionLoadROM
LoadROM reads a previously-installed ROM by basename. Returns ErrROMNotInstalled if the file is missing; any other error is wrapped with the offending
pkg/next/install/install.go:355
↓ 21 callersMethodMAPRAM
()
cmd/zx_go/timetravel.go:57
↓ 21 callersFunctionNewEngine
NewEngine returns an Engine with three freshly-reset AY chips.
pkg/ay/engine.go:19
↓ 21 callersMethodRAMBank
(int)
cmd/zx_go/bank_access.go:35
↓ 21 callersMethodSetActiveBank
SetActiveBank installs the RAM bank that holds the first 16 KB of the active framebuffer. Only bits 6-0 of v are kept — bit 7 is reserved on real hard
pkg/next/layer2/layer2.go:64
↓ 21 callersMethodSetEnabled
SetEnabled toggles the sprite layer.
pkg/next/sprite/sprite.go:133
↓ 21 callersMethodbeginResult
beginResult enters the result phase with the supplied bytes.
pkg/plus3fdc/upd765.go:547
↓ 21 callersFunctionnewTrack
newTrack allocates a Track with the given byte capacity and zeroes the data area to the specified filler byte. clocks and weak start cleared.
pkg/plus3fdc/track.go:104
↓ 21 callersMethodpushC
pushC pushes a 16-bit value through contended write cycles (hi byte first at SP-1, then lo at SP-2). Used by converted stack opcodes; plain push() is
pkg/z80/z80.go:450
↓ 21 callersMethodrespondR1
respondR1 queues a 1-byte R1 response, preceded by one $FF Ncr byte. A real card holds DataOut high for at least one byte between a command's last bit
pkg/next/sdcard/spi.go:557
↓ 20 callersMethodChip
Chip returns the chip at index i (0..2), or nil if i is out of range.
pkg/ay/engine.go:61
↓ 20 callersMethodGenerateStereo
GenerateStereo fills buf with interleaved left/right 16-bit samples (length must be even). Silent unless the master enable bit (reg 0x1C bit 0) is set
pkg/saa1099/saa1099.go:209
↓ 20 callersMethodHandlePortRead
HandlePortRead handles reads from DISCiPLE I/O ports.
pkg/disciple/disciple.go:209
↓ 20 callersFunctionNewRecording
NewRecording creates a fresh, empty recording.
pkg/rzx/recording.go:89
↓ 20 callersFunctionPath
Path returns the directory where Spectrum Next ROMs are installed. Resolution order: 1. $ZX_GO_NEXT_ROM_DIR if set (test sandbox override). 2. <repo-
pkg/next/install/install.go:39
↓ 20 callersFunctionRead
Read parses an RZX file from a byte slice. The format is documented in libspectrum's rzx.c (the canonical implementation): a 10-byte header followed b
pkg/rzx/read.go:34
↓ 20 callersMethodScan
Scan reads the keyboard matrix for a given port address. The high byte of the address determines which rows are being scanned.
pkg/keyboard/keyboard.go:171
↓ 20 callersMethodStartInput
StartInput opens a fresh input recording block at the given T-state offset and makes it the active target for subsequent StoreFrame calls. Mirrors lib
pkg/rzx/recording.go:115
↓ 20 callersMethodWritePort
WritePort applies a Beta register write.
pkg/betadisk/interface.go:58
↓ 20 callersFunctionbuildNEX
(o buildOpts)
pkg/next/nex/nex_test.go:32
↓ 20 callersFunctiondsSelDrive0Side0
(d *Disciple)
pkg/disciple/datasheet_test.go:125
↓ 20 callersMethodmakeST0
makeST0 builds a Status Register 0 byte with the current US/HD bits filled in and the supplied IC code applied. NR is set automatically when the selec
pkg/plus3fdc/upd765.go:567
↓ 20 callersFunctionnewPagerAutomapped
newPagerAutomapped returns a Pager with automap enabled, since real hardware boots with automap *off* and the bootrom enables it via NextReg $06 bit 4
pkg/next/divmmc/divmmc_test.go:89
↓ 20 callersFunctionparseUserHex
parseUserHex accepts $XX, 0xXX, bare hex, or decimal-with-d suffix. The default is hex because the debugger's primary audience reads memory in hex. Th
pkg/debugger/bankinspect.go:212
↓ 20 callersMethodrenderAll
renderAll re-renders the whole frame at the current static state (used by the renderer unit tests and for a one-shot repaint).
pkg/sam/display.go:47
↓ 20 callersMethodsub
Subtract operation
pkg/z80/z80.go:3933
↓ 20 callersFunctiontrdImage
trdImage builds a small in-memory TR-DOS .TRD image with each sector filled with a deterministic, position-dependent pattern so reads can be checked a
pkg/betadisk/datasheet_test.go:43
↓ 20 callersFunctionwriteASCII
writeASCII stores an ASCII null-terminated string in memMap.
pkg/next/esxdos/file_handlers_test.go:71
↓ 19 callersMethodButtons
Buttons returns the current button bitmap (active-low).
pkg/kempmouse/kempmouse.go:123
↓ 19 callersMethodLen
Len returns the current number of stored entries.
pkg/debugger/history.go:189
↓ 19 callersMethodPlay
Play starts tape playback from the current block.
pkg/ula/tape.go:146
↓ 19 callersMethodRecordIN
RecordIN is the ULA-hook entry point. The ULA calls this for every IN-port read so the byte gets appended to the current frame's recorded sequence.
pkg/rzx/recording.go:132
↓ 19 callersMethodRenderScanline
RenderScanline writes len(dst) palette-indexed bytes for visible row y. Caller controls dst length; we read at most that many pixels and stop. Out-of-
pkg/next/tilemap/tilemap.go:136
↓ 19 callersMethodSetDE
SetDE writes the DE register pair.
pkg/z80/z80.go:594
↓ 19 callersMethodSetROMBankExtended
SetROMBankExtended honours the full byte written to NextReg $8E per the FPGA paging logic. Bits 1:0 select ROM bank as before (delegated to SetROMBank
pkg/memory/next.go:172
↓ 19 callersMethodTrack
Track returns the track at the given head/cylinder, or nil if absent.
pkg/plus3fdc/disk.go:68
↓ 18 callersMethodEnableMultiface
EnableMultiface enables the Multiface interface
pkg/peripherals/manager.go:120
↓ 18 callersMethodMemoryRead
MemoryRead is the PeripheralRead-compatible callback the memory package calls for ROM-area addresses. Returns the IF1 ROM byte when the IF1 is active,
pkg/if1/if1.go:131
↓ 18 callersFunctionNew
New constructs an idle printer. The motor is off, no rows are buffered. Attach via PeripheralManager.EnableZXPrinter.
pkg/zxprinter/zxprinter.go:87
↓ 18 callersFunctionNew
New returns an empty copper.
pkg/next/copper/copper.go:80
↓ 18 callersMethodReadRegister
ReadRegister returns the current value of a register.
pkg/ay/ay.go:230
↓ 18 callersMethodSetEntryPointsValid0
(val byte)
pkg/next/wire.go:47
↓ 18 callersMethodSetKey
SetKey presses (pressed=true) or releases a matrix key at row (0-8) and column bit (0-7). The matrix is active-low, so a press drives the bit to 0.
pkg/sam/keyboard.go:94
↓ 18 callersMethodWriteCS
WriteCS handles a write to port 0xE7. Per the divMMC spec, bit 0 is the CS for SD slot 0 (master) and bit 1 is the CS for SD slot 1 (slave). Both are
pkg/next/sdcard/spi.go:231
↓ 18 callersMethodWriteSectorReg
(v byte)
pkg/betadisk/fdc.go:106
↓ 18 callersMethodX
X returns the current X counter value. Used by tests and the UI status bar.
pkg/kempmouse/kempmouse.go:117
↓ 18 callersFunctionblockSandwich
blockSandwich runs a block-spec test: load a TZX with two standard 0x10 blocks bracketing the block-under-test. Both standards should be present iff t
pkg/ula/tzx_test.go:316
↓ 18 callersMethodcp
Compare operation
pkg/z80/z80.go:3960
↓ 18 callersFunctiondsDisk
dsDisk builds a small 2-side, 2-cylinder disk with sectors 1..9 per track, addressable through the µPD765 read/seek/sense path.
pkg/plus3fdc/datasheet_test.go:100
↓ 18 callersFunctiondsTrack
(d *Disciple)
pkg/disciple/datasheet_test.go:121
↓ 18 callersFunctionmustStoreFrame
mustStoreFrame is a test helper that calls StoreFrame and fails the test on any error. Used to keep test setup uncluttered while still satisfying errc
pkg/rzx/recording_test.go:486
↓ 17 callersMethodCheck
Check evaluates every watch against the supplied State and returns true if any of them should halt the CPU. The watch's last-observed value is updated
pkg/debugger/regwatch.go:128
↓ 17 callersMethodConfigModeActive
()
pkg/next/wire.go:98
↓ 17 callersMethodGetROM
GetROM returns the 8KB GDOS ROM.
pkg/disciple/disciple.go:751
↓ 17 callersMethodNMI
NMI (Non-Maskable Interrupt) handling - for Multiface red button
pkg/z80/z80.go:4696
↓ 17 callersFunctionNewError
NewError constructs an esxDOS-coded error.
pkg/next/esxdos/esxdos.go:84
↓ 17 callersMethodPaletteForLayer
PaletteForLayer returns the currently-active palette for the given layer, honouring the per-layer first/second selection (independent of the write-tar
pkg/next/palette/palette.go:213
↓ 17 callersMethodReadStatus
ReadStatus returns the status register, applying the LOST_DATA timeout (a Type II/III transfer whose DRQ goes unserviced) and the not-ready bit.
pkg/sam/wd1772.go:256
↓ 17 callersMethodReadTrackReg
ReadTrackReg / WriteTrackReg / ReadSectorReg / WriteSectorReg expose the track and sector registers (Beta ports $3F and $5F).
pkg/betadisk/fdc.go:103
↓ 17 callersMethodSetEntryPointsTiming0
(val byte)
pkg/next/wire.go:49
↓ 17 callersMethodSetWritePtrHighAndMode
SetWritePtrHighAndMode sets the high 2 cursor bits (val bits 0-1) AND the start-mode (val bits 6-7).
pkg/next/copper/copper.go:124
↓ 17 callersMethodY
Y returns the current Y counter value.
pkg/kempmouse/kempmouse.go:120
↓ 17 callersMethodand
Logical operations
pkg/z80/z80.go:3978
↓ 17 callersFunctionemptyROMHalves
()
pkg/sam/paging_test.go:5
↓ 17 callersFunctionframeTStatesForModel
frameTStatesForModel returns the ULA frame length in 3.5 MHz T-states for a machine model: 48K = 69888; the 128K family (128K/+2/+2A/+3) and the Spect
cmd/zx_go/main.go:96
↓ 17 callersMethodinterrupt
Interrupt handling. Callers gate this on c.IFF1 before invocation (see ExecuteFrame); the IFF1 check inside is the safety net for any future caller th
pkg/z80/z80.go:4638
↓ 17 callersMethodor
(val byte)
pkg/z80/z80.go:3983
↓ 17 callersFunctionpanelBG
(content fyne.CanvasObject)
pkg/debugger/debugger.go:577
↓ 17 callersMethodxor
(val byte)
pkg/z80/z80.go:3988
↓ 16 callersMethodAddSnap
AddSnap appends a snapshot block to the recording. The automatic flag distinguishes intermediate snapshots (autosaves that Rollback / RollbackTo can r
pkg/rzx/recording.go:100
↓ 16 callersMethodContendMemory
(addr uint16)
pkg/z80/z80.go:371
↓ 16 callersMethodGet
Get returns the 9-bit value at the given index.
pkg/next/palette/palette.go:40
↓ 16 callersMethodGetROMBank
GetROMBank returns the currently-active ROM bank at 0x0000-0x3FFF (0..3 for the four Next ROM banks, or -1 if the active slot 0 is RAM rather than ROM
pkg/memory/next.go:329
↓ 16 callersMethodHandlePortRead
HandlePortRead processes an IN instruction targeting an IF1 port. Returns (value, true) if the address decodes to an IF1 port, (0xFF, false) otherwise
pkg/if1/ula.go:100
↓ 16 callersFunctionNewImage
NewImage returns a zero-filled image of the given geometry.
pkg/betadisk/image.go:40
← previousnext →201–300 of 5,503, ranked by callers