Search found 31 matches

by RST#08
Fri May 10, 2024 2:00 pm
Forum: Programming
Topic: printing to the screen without using rom calls
Replies: 10
Views: 325

Re: printing to the screen without using rom calls

This book, the first three chapters, is exactly what you need:
https://spectrumcomputing.co.uk/entry/2 ... e_Language
by RST#08
Fri Apr 26, 2024 5:57 pm
Forum: Programming
Topic: Goodbye,Z80
Replies: 35
Views: 2166

Re: Goodbye,Z80

by RST#08
Sat Apr 20, 2024 10:11 am
Forum: Programming
Topic: Goodbye,Z80
Replies: 35
Views: 2166

Re: Goodbye,Z80

These are "just" binary compatible, aren't they? Unless I miss something, ez80 (and z180) may be good enough for CP/M, but they won't replace Z80 where timings are critical. Yep, that's right. I've just bought an Agon Light, not had much chance to experiment with it yet. It has an eZ80 wh...
by RST#08
Sun Apr 07, 2024 9:02 pm
Forum: Games/Software
Topic: First tape/games you got with your ZX Spectrum
Replies: 37
Views: 907

Re: First tape/games you got with your ZX Spectrum

Adventure A: Planet of Death. IIRC it came with my Spectrum, along with Horizons of course.
by RST#08
Sun Mar 31, 2024 3:45 pm
Forum: Programming
Topic: Zilog's Z80 opcode choice
Replies: 20
Views: 669

Re: Zilog's Z80 opcode choice

See here, particularly pages 6 and 9: https://archive.computerhistory.org/resources/text/Oral_History/Zilog_Z80/102658073.05.01.pdf Some folks might also be bemused by Shima's comments on p.10, too, regarding IXL/IXH etc. (In) the new instruction set, the prefix instruction is able to redirect the s...
by RST#08
Thu Feb 22, 2024 8:41 am
Forum: Showcase your work!
Topic: Replacement Case for Interface 1
Replies: 5
Views: 673

Re: Replacement Case for Interface 1

This looks great, I've always liked the IF1 design, could be useful for DIY interfaces too :D
by RST#08
Tue Feb 13, 2024 12:43 pm
Forum: Programming
Topic: That thing with the bottom two lines
Replies: 19
Views: 1105

Re: That thing with the bottom two lines

Without going to check, I don't think there's any reason why the plot/draw routines could not take advantage and draw on the lower two lines Alas the ROM routine PLOT-SUB routine calls PIXEL-ADD which checks the upper y-coordinate limit (175d). So you'd need a bespoke routine, see p.19-22 of: this ...
by RST#08
Tue Feb 13, 2024 8:18 am
Forum: Programming
Topic: That thing with the bottom two lines
Replies: 19
Views: 1105

Re: That thing with the bottom two lines

Yep, I think one of the fairly rare areas where the Speccy scores over the BBC Micro is the BASIC editor, even the 48k one, when you want to edit an existing line (...) On the other hand, it's annoying that you can only cursor left and right in the 48k editor, as it takes an age to reach the end of...
by RST#08
Sat Feb 03, 2024 10:19 am
Forum: Programming
Topic: Machine code comment syntax recommendations
Replies: 40
Views: 1271

Re: Machine code comment syntax recommendations

For writing z80 code, my preference now would be similar to Ralf's example, maybe a brief description with register inputs, and one or two line comments in a block. I guess when you're writing z80 code the comments are really for yourself rather than others as it's normally a 1-person job. ^This. I...
by RST#08
Thu Feb 01, 2024 1:19 pm
Forum: Hardware
Topic: Issue 3 upper RAM troubleshooting
Replies: 7
Views: 267

Re: Issue 3 upper RAM troubleshooting

1024MAK wrote: Thu Feb 01, 2024 12:40 pm The extra transistor (TR6 for issue 3 and later boards) for issue two boards was normally placed on top of the processor
Mark
Of course, yes ... my mistake ... it's been a while since I opened it up :D
by RST#08
Thu Feb 01, 2024 11:21 am
Forum: Hardware
Topic: Issue 3 upper RAM troubleshooting
Replies: 7
Views: 267

Re: Issue 3 upper RAM troubleshooting

Hence upgrade kits using OKI DRAM were sold with 74LS157 modified by the supplier or with a daughter board (which rerouted the relevant signals). Then the owner just fitted the parts into the existing sockets on their ZX Spectrum board. Mark Yes, this is what I recall. The Fox upgrade used a daught...
by RST#08
Fri Jan 26, 2024 6:15 pm
Forum: Hardware
Topic: Contended memory with the Z80 in reset
Replies: 14
Views: 740

Re: Contended memory with the Z80 in reset

Page 22 here (and elsewhere) may also be of value if you're experimenting with the edge connector:
https://archive.org/details/bitsavers_z ... /mode/2up
by RST#08
Fri Jan 05, 2024 9:32 am
Forum: Programming
Topic: read W x H chr$ from screen in basic attempt
Replies: 24
Views: 1201

Re: read W x H chr$ from screen in basic attempt

Dr beep wrote: Thu Jan 04, 2024 10:04 pm Take a look on this "old" trick.
https://worldofspectrum.org/forums/discussion/33911/
Yes, I remember this - a brilliant bit of lateral thinking!
by RST#08
Thu Dec 28, 2023 9:48 am
Forum: Programming
Topic: Boolean logic: "short circuit evaluation"?
Replies: 17
Views: 801

Re: Boolean logic: "short circuit evaluation"?

equinox wrote: Thu Dec 28, 2023 12:30 am I can't find it anywhere online, to link to
Is this the one?
https://worldofspectrum.org/forums/discussion/6093/
by RST#08
Tue Dec 12, 2023 6:39 pm
Forum: Hardware
Topic: Colour clash query
Replies: 52
Views: 1715

Re: Colour clash query

This article, an interview with Richard Altwasser, provides some interesting context, implying that FLASH and BRIGHT were added after the decision to use 3+3 bits for colour encoding was made. Looking at the block schematic in the patent (posted earlier in this thread) it does look to me that implem...
by RST#08
Tue Dec 12, 2023 7:31 am
Forum: Hardware
Topic: Colour clash query
Replies: 52
Views: 1715

Re: Colour clash query

zx64 wrote: Tue Dec 12, 2023 1:51 am Indeed. They even have patent for this.
Yep, here it is:
https://patents.google.com/patent/EP010 ... Ltd&page=3
by RST#08
Sun Dec 10, 2023 4:41 pm
Forum: Hardware
Topic: Microdrive: Number of free kilobytes stored after CAT
Replies: 2
Views: 170

Re: Microdrive: Number of free kilobytes stored after CAT

Check out page 41-42 of Ian Logan's Spectrum Microdrive Book . It should be a relatively simple task to add a counter to the program on page 41 to add up the '1's or '0's (instead of printing them) depending on whether you want to know 'free' or 'used' space. Note that each sector is 512 bytes, so y...
by RST#08
Sat Dec 09, 2023 1:39 pm
Forum: Programming
Topic: getting the true length of a string stored in an array
Replies: 20
Views: 869

Re: getting the true length of a string stored in an array

Here's my approach using embedded CODEs instead. 10 DIM a$(3,14) 20 RESTORE 30 FOR n=1 TO 3 40 READ b$ 50 LET x=LEN b$ 60 LET a$(n)=CHR$ x+b$ 70 NEXT n 100 REM demo 110 PRINT "Length","String" 120 FOR n=1 TO 3 130 LET x=CODE a$(n,1) 140 LET b$=a$(n,2 TO x+1) 150 PRINT x, BRIGHT 1...
by RST#08
Thu Dec 07, 2023 12:22 pm
Forum: Sinclair Miscellaneous
Topic: Google bard vs ChatGPT
Replies: 13
Views: 349

Re: Google bard vs ChatGPT

It does seem to struggle with string handling, though: >Please write me a program in Sinclair ZX Spectrum BASIC to slice the first and last characters from a string of ten characters 10 INPUT "ENTER A 10-CHARACTER STRING: "; A$ 20 IF LEN A$ <> 10 THEN PRINT "PLEASE ENTER A 10-CHARACTE...
by RST#08
Thu Oct 26, 2023 10:37 am
Forum: Sinclair Miscellaneous
Topic: Adhesive labels
Replies: 5
Views: 188

Re: Adhesive labels

There's always a flowchart for something it seems :D

https://www.labelplanet.co.uk/labels-bl ... ve-labels/
by RST#08
Wed Oct 18, 2023 6:01 pm
Forum: Sales/Commercial
Topic: Market research - Vintage computing
Replies: 11
Views: 784

Re: Market research - Vintage computing

Done, and good luck with your business
by RST#08
Thu Sep 07, 2023 6:59 pm
Forum: Sinclair Miscellaneous
Topic: Help with the mythical Amsoft PF 1 printer cable
Replies: 10
Views: 225

Re: Help with the mythical Amsoft PF 1 printer cable

I don’t have a +3, but this intrigued me – so, I looked here https://worldradiohistory.com/UK/Bernards-And-Babani/Babani/Babani-251-Computer-Hobbyist-Handbook.pdf (Fig 2.7, CPC port) and then here https://zxnet.co.uk/spectrum/schematics/Z70835.pdf (+3 schematic) and, based on this alone, the +3 port...
by RST#08
Mon Jul 17, 2023 7:46 pm
Forum: Sinclair Miscellaneous
Topic: 'What if' Spectrum fantasy computer
Replies: 18
Views: 513

Re: 'What if' Spectrum fantasy computer

Yes, a joystick port can have eight input lines, of which, four are direction inputs and four are fire or function buttons. However, if using a 9 pin D connector (Atari joystick compatible), if we include a +5V supply, then we will have a maximum of three fire button inputs. Mark Agree. Not a joyst...
by RST#08
Mon Jul 17, 2023 7:27 pm
Forum: Sinclair Miscellaneous
Topic: 'What if' Spectrum fantasy computer
Replies: 18
Views: 513

Re: 'What if' Spectrum fantasy computer

Some general principles here, although this is just for 16K ROM/RAM and optional 32K upgrade, not 128K. But principles are similar. Anything above 32K for the upper memory would obviously need (fairly simple) paging circuitry. https://archive.org/details/your-spectrum-magazine-02/page/n36/mode/1up?v...