![]() |
![]() |
![]() |
Table of contents![]() ![]() |
![]() |
ZXSTSPECTRANETDylan Smith's Spectranet Ethernet interface for the 16K, 48K, 128, +2, +2A and +3 ZX Spectrums. // Spectranet state #define ZXSTSNETF_PAGED 0x0001 #define ZXSTSNETF_PAGED_VIA_IO 0x0002 #define ZXSTSNETF_PROGRAMMABLE_TRAP_ACTIVE 0x0004 #define ZXSTSNETF_PROGRAMMABLE_TRAP_MSB 0x0008 #define ZXSTSNETF_ALL_DISABLED 0x0010 #define ZXSTSNETF_RST8_DISABLED 0x0020 #define ZXSTSNETF_DENY_DOWNSTREAM_A15 0x0040 #define ZXSTSNETF_FLASH_COMPRESSED 0x0080 #define ZXSTSNETF_RAM_COMPRESSED 0x0100 typedef struct _tagZXSTSPECTRANET { ZXSTBLOCK blk; DWORD dwFlags; BYTE chPageA; BYTE chPageB; WORD wTrap; BYTE chRegisters[0x30]; DWORD dwcbFlashLength; BYTE lpchFlash[1]; DWORD dwcbRamLength; BYTE lpchRam[1]; } ZXSTSPECTRANET, *LPZXSTSPECTRANET; Membersblk
The block header. The block id is ZXSTBID_SPECTRANET ('S', 'N', 'E', 'T').
wFlags
Various flags. This can be any combination of:
chPageA
The page currently paged into the Spectranet's page A (0x1000-0x1fff).
chPageB
The page currently paged into the Spectranet's page B (0x2000-0x2fff).
wTrap
The current value of the Spectranet's programmable trap.
chRegisters
The values of the core W5100 registers.
dwcbFlashLength
The length of the possibly compressed Spectranet flash.
lpchFlash
contents of the Spectranet's flash. When uncompressed, this must be exactly 0x20000 bytes in length.
dwcbRamLength
length of the possibly compressed Spectranet RAM.
lpchRAM
The contents of the Spectranet's RAM. When uncompressed this must be exactly 0x20000 bytes in length.
RemarksThe contents of the W5100's socket registers are not saved - whatever was listening on the other end will have gone away when the snapshot is restored. Revision historyAvailable since version 1.5 |
![]() |
|
Copyright © 2001 - 2011 Jonathan Needle | ![]() |