Search found 145 matches
- Wed Dec 15, 2021 3:53 pm
- Forum: Programming
- Topic: BASIC variables and machine code
- Replies: 11
- Views: 484
Re: BASIC variables and machine code
You could maybe make use of the LOOK-VARS routine from the ROM. Something like this:- look_vars equ $28b2 ch_add equ $5c5d ld hl, (ch_add) push hl ld hl, varname ld (ch_add), hl call look_vars jr c, notfound ; do something with the variable here notfound: pop hl ld (ch_add), hl ret nc rst $08 db $01...
- Fri Oct 01, 2021 12:48 am
- Forum: Sinclair Miscellaneous
- Topic: Spectrum memes
- Replies: 1235
- Views: 203299
- Fri Aug 13, 2021 1:02 pm
- Forum: Hardware
- Topic: Interesting video on TZXduino and tape speed
- Replies: 5
- Views: 340
Re: Interesting video on TZXduino and tape speed
Is there a way to get a Maxduino/Tzxduino to output OTLA encoded content? Yes, although the TZXDuino/MaxDuino firmware can't do it... A while ago I wrote my own firmware for the TZXDuino as a proof of concept which could output TZX files created by OTLA, which comprise of a single ID15 (Direct Reco...
- Wed Aug 11, 2021 11:28 am
- Forum: Sinclair Miscellaneous
- Topic: Light gun question
- Replies: 1
- Views: 133
Re: Light gun question
Assuming you mean the Magnum Light Phaser, it uses KEYPAD port (AUX on the +2A/+3).
- Wed Aug 04, 2021 6:22 pm
- Forum: Games/Software
- Topic: Games with random and good demo modes
- Replies: 6
- Views: 282
Re: Games with random and good demo modes
Gilligan's Gold - It's demonstration mode always reminded me of a slapstick comedy sketch you'd expect to see on the the likes of The Goodies.
EDIT: Just took a look at it, and it does seem it's actually a handful of different scripted runs. Guess I didn't know any better when I was a kid!
EDIT: Just took a look at it, and it does seem it's actually a handful of different scripted runs. Guess I didn't know any better when I was a kid!
- Fri Jul 09, 2021 11:00 am
- Forum: Sinclair Miscellaneous
- Topic: Changes to Homebrew games
- Replies: 18
- Views: 873
Re: Changes to Homebrew games
Removing the author's credit is just plain cynical IMO. The only reason for doing so I can think of is in the hope people will mistakenly believe the person who modified a game was also the original author, whilst being able to fall back on the argument of "Well, I didn't but my name in it's pl...
- Wed Jun 30, 2021 9:29 am
- Forum: Announcements
- Topic: The Spectrum Show EP 106
- Replies: 18
- Views: 774
Re: The Spectrum Show EP 106
Not so straightforward. You're paging a whole 16k in and out, not just the screen. No, the memory at $4000-$7fff is always bank 5, you're simply toggling where the ULA fetches it's data from. Obviously you need to page in bank 7 @ $c000 to write to the shadow screen, but that's no different from pa...
- Wed Jun 30, 2021 9:00 am
- Forum: Announcements
- Topic: The Spectrum Show EP 106
- Replies: 18
- Views: 774
Re: The Spectrum Show EP 106
I didn't quite realise (either) how many enhanced 128k games there were, where they had larger or more detailed playing areas, for example. In my head they were mostly just additional 128k music or reducing the need for multi-loads. Same here. I wonder why this was even possible, at a technical lev...
- Sat Jun 26, 2021 5:53 pm
- Forum: ZX Spectrum Next
- Topic: im not being funny but why did they not develop homebrew games for the sam coupe instead of creating the spectrum next?
- Replies: 36
- Views: 1987
Re: im not being funny but why did they not develop homebrew games for the sam coupe instead of creating the spectrum ne
The Coupe was a nice machine, but had a 6Mhz Z80 (before even taking contention into account) trying to push pixels around a 24K display file (at least it was linear, though!). It really could have done with hardware sprites/scrolling... something which the Next addresses. Nope, the Next doesn't ha...
- Sat Jun 26, 2021 4:59 pm
- Forum: ZX Spectrum Next
- Topic: im not being funny but why did they not develop homebrew games for the sam coupe instead of creating the spectrum next?
- Replies: 36
- Views: 1987
Re: im not being funny but why did they not develop homebrew games for the sam coupe instead of creating the spectrum ne
the sam coupe could have been remade though, right? The Coupe was a nice machine, but had a 6Mhz Z80 (before even taking contention into account) trying to push pixels around a 24K display file (at least it was linear, though!). It really could have done with hardware sprites/scrolling... something...
- Fri Jun 18, 2021 2:51 pm
- Forum: Sinclair Miscellaneous
- Topic: What was the famous quote by Sir Clive about Sugar?
- Replies: 12
- Views: 1210
- Mon Jun 07, 2021 2:07 am
- Forum: Programming
- Topic: Handling and representing a 3-bytes number (in ASSEMBLER)
- Replies: 14
- Views: 622
Re: Handling and representing a 3-bytes number (in ASSEMBLER)
Yup, BCDs are the way to go here IMO. As such, you need 3 x 8-bit registers (5 digits required, 2 digits per register) when calling the addition routine. For example it you wanted to add 43276:- ld c, $04 ; it's important to define these values in hex ld hl, $3276 call add One possible implementatio...
- Wed Jun 02, 2021 3:08 pm
- Forum: Sinclair Miscellaneous
- Topic: Demo for people who love horses
- Replies: 10
- Views: 269
Re: Demo for people who love horses
Where are you going with your fetlocks blowing in the... wind?
- Sat May 22, 2021 9:58 pm
- Forum: FPGA Devices
- Topic: How is the MISTER in regards to the Speccy?
- Replies: 14
- Views: 821
Re: How is the MISTER in regards to the Speccy?
I don't see it clarified, but does it work with all VGA monitors, or is it like the Atari STs which need specialized low Khz ones? I also have a couple of VGA monitors for my retro PCs. Yes, it can scandouble 15Khz RGB and output to VGA monitors - in which case you can simply use a standard VGA cab...
- Sat May 22, 2021 8:50 pm
- Forum: FPGA Devices
- Topic: How is the MISTER in regards to the Speccy?
- Replies: 14
- Views: 821
Re: How is the MISTER in regards to the Speccy?
I have a couple of CRTs I use for retro hardware. Thanks for the link, I'll study it now. If you do decide to get one, one thing I'd recommend against buying is the DIN9 to SCART cable. In my experience, the image quality is far better using a MiSTer VGA to SCART cable (which also works just fine o...
- Sat May 22, 2021 8:17 pm
- Forum: FPGA Devices
- Topic: How is the MISTER in regards to the Speccy?
- Replies: 14
- Views: 821
Re: How is the MISTER in regards to the Speccy?
I hadn't realized that they are this expensive. Might as well as stick with the RetroPie or Lakka Another option would be the SiDi . Much less expensive and comes ready built in an acrylic case. It's FPGA is less capable than the one in the MiSTer but it can handle 8-bit/16-bit computers and consol...
- Wed May 19, 2021 1:12 pm
- Forum: Sinclair Miscellaneous
- Topic: Spectrum memes
- Replies: 1235
- Views: 203299
Re: Spectrum memes
FTFY
- Wed May 19, 2021 9:03 am
- Forum: Programming
- Topic: Get value of random number
- Replies: 2
- Views: 138
Re: Get value of random number
Are you trying to pass it back to BASIC?
If so, the return value of a machine code routine needs to be in BC, so you should replace LD A,(HL) with:-
If so, the return value of a machine code routine needs to be in BC, so you should replace LD A,(HL) with:-
Code: Select all
LD B,0
LD C,(HL)
- Tue May 18, 2021 4:02 pm
- Forum: Games/Software
- Topic: Small or extra features that enhanced a game for you
- Replies: 33
- Views: 1268
Re: Small or extra features that enhanced a game for you
The action replay/slow motion features in BMX Simulator.
- Wed May 12, 2021 7:17 pm
- Forum: Games/Software
- Topic: Quart into a pint pot
- Replies: 6
- Views: 296
Re: Quart into a pint pot
You can also have a set of flag bits for each base word indicating valid common prefixes and suffixes e.g. -ing -ed over- under-
- Tue May 11, 2021 8:15 pm
- Forum: Programming
- Topic: LD HL,(NN)
- Replies: 53
- Views: 1391
Re: LD HL,(NN)
There are quite a few badly named mnemonics in Z80. For instance there's " ADC A,B ", " ADD A,B ", " SBC A,B ", " SUB B ". Why??? Well, as there's no " SUB HL,rr ", it's possible that saving a couple of bytes in the source code would have been a con...
- Mon May 10, 2021 4:10 pm
- Forum: Programming
- Topic: LD HL,(NN)
- Replies: 53
- Views: 1391
- Fri May 07, 2021 2:44 pm
- Forum: FPGA Devices
- Topic: SiDi Next Core
- Replies: 29
- Views: 1181
- Sat Apr 24, 2021 11:59 am
- Forum: Sinclair Miscellaneous
- Topic: Spectrum memes
- Replies: 1235
- Views: 203299
- Tue Apr 20, 2021 12:56 pm
- Forum: Programming
- Topic: Z80 things that weren't obvious that you wish you'd known earlier
- Replies: 46
- Views: 2328
Re: Z80 things that weren't obvious that you wish you'd known earlier
The lack of BIT A,r has always been a bit annoying, and I now see that my self modifying code solution to build the SET, BIT or RES command to order, well it's slower than doing up to 7 RLCA followed by an AND or OR instruction , as well as being harder to follow on any Assembler / Debugger. What i...