40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
£12 for the paperback. That seems decent.
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
How do you define the 40 best machinecode routines?
I have a 5 byte routine which is used in several emulators to find an opcode in shortest time.
I have a 5 byte routine which is used in several emulators to find an opcode in shortest time.
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Just 5 bytes? May I have a look?
If something works, don't touch it !!!! at all !!!
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
DE=PC in this code
LD A,(DE) ; get opcode
LD L,A ; set lowbyte jumppointer
LD H,B ; fixed value to a highbyte table
LD H,(HL) ; get highbyte jumppointer from table
JP (HL) ; go to your opcode routine
table at #XX00
db i00 / 256
db i01 / 256 ; table of 256 pointers
code at #XX00+ 256
i00 do something in the bytes needed ie 4
i04 next code etc....
fill program with all routines
This is how SP2X81 is coded and de GAlaksija-emulator on the SAM
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
It's a reprint of this book from 1983: Probably you may not be the intended audience.
https://spectrumcomputing.co.uk/entry/2 ... X_Spectrum
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Indeed, I know enough of Z80 that these routine are familiar for me by heart.PeterJ wrote: ↑Fri Jul 29, 2022 7:54 pm It's a reprint of this book from 1983: Probably you may not be the intended audience.
https://spectrumcomputing.co.uk/entry/2 ... X_Spectrum
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Be interesting to see what the updated/additional material in there is.
CLEAR 23855
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
It’s more than just a reprint - Jim Bagley is writing new material.PeterJ wrote: ↑Fri Jul 29, 2022 7:54 pm It's a reprint of this book from 1983: Probably you may not be the intended audience.
https://spectrumcomputing.co.uk/entry/2 ... X_Spectrum
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Indeed, you are quite right. Are you clear about how much will be new? I couldn't get that from the Kickstarter page.
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
From reading the Kickstarter page again, there are new introductions from the original authors plus new material from Jim Bagley - looks like Jim will be writing new routines/code as well as talking about the Next.
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Excellent! Backed.
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
My copy is a bit tatty. It also contains an 'erratum' sheet. That probably drove someone mad in 1983...
My Speccy site: thirdharmoniser.com
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Please would you be able to scan that?
- flatduckrecords
- Manic Miner
- Posts: 797
- Joined: Thu May 07, 2020 11:47 am
- Location: Oban, Scotland
- Contact:
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
Seems the going rate for a 2nd hand copy is about £40. (Mutant Caterpillar has one if you fancy it!) so £12 for the reprint sounds like a bargain.
I actually thought that price was *just* for the PDF so I’m glad I looked again, thanks for pointing that out @Jbizzel.
I actually thought that price was *just* for the PDF so I’m glad I looked again, thanks for pointing that out @Jbizzel.
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
No problem. I think that's good value..if you printed a pdf copy it would probably cost the same or more.flatduckrecords wrote: ↑Mon Aug 01, 2022 5:56 pm Seems the going rate for a 2nd hand copy is about £40. (Mutant Caterpillar has one if you fancy it!) so £12 for the reprint sounds like a bargain.
I actually thought that price was *just* for the PDF so I’m glad I looked again, thanks for pointing that out @Jbizzel.
I'm not familiar with the book, is it worth a punt?
Re: 40 Best Machine Code Routines for the ZX Spectrum - 2nd Ed
There's a PDF of the original book in the archive if you want to take a look.
https://spectrumcomputing.co.uk/entry/2 ... X_Spectrum