Search found 736 matches

by Seven.FFF
Sun Mar 17, 2024 6:54 pm
Forum: Programming
Topic: what would this be equivilent to in assembler?
Replies: 33
Views: 599

Re: what would this be equivilent to in assembler?

I'm definitely able to detect at least 4 keys at once (it also depends on the PC keyboard when emulating though I guess, some keyboards have limits to which keys can be pressed simultaneously). Using emulators to derive the hardware characteristics of real spectrums is a bit... counterproductive. I...
by Seven.FFF
Sun Mar 17, 2024 6:42 pm
Forum: Programming
Topic: what would this be equivilent to in assembler?
Replies: 33
Views: 599

Re: what would this be equivilent to in assembler?

The ROM routines (that set LASTK) are great for quick routines when you're typing words and sentences on one key at a time. In most games you're moving up/down and left/right at the same time, or left/right and jump and the same time, or moving and firing at the same time, or rotating and thrusting ...
by Seven.FFF
Sun Mar 17, 2024 5:45 pm
Forum: Programming
Topic: what would this be equivilent to in assembler?
Replies: 33
Views: 599

Re: what would this be equivilent to in assembler?

cool, got that working. so how do i tell the program not to not let 'a' register go passed say 31? If you wanted to wrap X around so it goes 0,1,..,30,31,0,1 you can use a neat trick with and 31 , because 32 is a power of two: Key.SpSsMNB equ $7ffe ; Half row for Space, Sybmbol Shift, M, N, and B X...
by Seven.FFF
Sun Mar 17, 2024 3:20 pm
Forum: Programming
Topic: what would this be equivilent to in assembler?
Replies: 33
Views: 599

Re: what would this be equivilent to in assembler?

There's lots of ways depending on whether X is in a register or memory location, whether it can go larger than 255, whether you want it to wrap or stop at a certain max value, whether you want to do something with X after increasing it, etc. But something like this is a good start: Key.SpSsMNB equ $...
by Seven.FFF
Sun Feb 25, 2024 3:28 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

sludge : 1) Mouse : The Next only uses ps/2 mice that plug into the ps/2 socket. These are converted to Kempston protocol in the FPGA core. It's purely a hardware thing, there's no software drivers or USB stack. You're thinking of some mice that were made 20-25 years ago that could speak both USB a...
by Seven.FFF
Sat Feb 24, 2024 6:31 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

If you wanted to play with the ps/2 keymap, it's not especially well documented, but this should start you off. The keymap lives in c:/machines/next/keymap.bin, and is loaded at power on and cold reset. It's a 1024 byte file containing 512 pairs of bytes, even one being a 16 bit big-endian keycode m...
by Seven.FFF
Sat Feb 24, 2024 6:12 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

It's a known bug/limitation in the ps/2 hardware state machine, unfortunately: https://gitlab.com/thesmog358/tbblue/-/issues/86 It's on Allen's fix list to do a rewrite of the ps/2 keyboard module, but a few other things have to happen first, so it may not happen immediately. There isn't much of a s...
by Seven.FFF
Fri Feb 02, 2024 11:03 pm
Forum: ZX Spectrum Next
Topic: Loading ZX Spectrum 48k BASIC program into NEXT BASIC
Replies: 8
Views: 346

Re: Loading ZX Spectrum 48k BASIC program into NEXT BASIC

I assume so but maybe someone else can confirm that? Yes, you can use RUN AT 0 to 3 as many times as you like, at any points in your program. This goes for asm too, where you can do nextreg 7,0 to 3. The nextreg is also readable, and it is common for programs to read and save the current value, cha...
by Seven.FFF
Fri Feb 02, 2024 10:51 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

cmal wrote: Fri Feb 02, 2024 6:26 pm Issue: TZX files do not load when keyboard Issue 2 is selected:
Thanks for reporting this, and everyone else who confirmed it! I can also reproduce. We are discussing the possible causes.
by Seven.FFF
Fri Feb 02, 2024 2:31 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

What is the best way to report a bug/issue related to the KS2 Next? NextBASIC/NextZXOS/dot command/distro issues: https://gitlab.com/thesmog358/tbblue/-/issues FPGA core issues: https://gitlab.com/SpectrumNext/ZX_Spectrum_Next_FPGA/-/issues Physical hardware issues (loose keys, broken feet, etc): e...
by Seven.FFF
Tue Jan 30, 2024 2:06 pm
Forum: Hardware
Topic: External FDD connector on +2A/B
Replies: 6
Views: 313

Re: External FDD connector on +2A/B

cj7hawk wrote: Tue Jan 30, 2024 1:36 pm Or, since the important signals are available at the expansion port, you could just make an external PCB with the missing components, and make the entire thing external with 1 or 2 drives, and a Spectrum bus interface.
Like SD-1 and PLUS-2A-FDD.
by Seven.FFF
Wed Jan 24, 2024 6:53 pm
Forum: ZX Spectrum Next
Topic: Changing paper/border colours in LAYER 1,2.
Replies: 5
Views: 363

Re: Changing paper/border colours in LAYER 1,2.

The Next palette system has a pair of 256 entry palettes for every layer. Each entry in a palette can be defined as a RGB333 9bit colour or RGB332 8bit colour (which are actually expanded out to 9bit colours internally after you set them, with the 9th bit coming from oRing two other blue bits togeth...
by Seven.FFF
Wed Jan 24, 2024 6:30 pm
Forum: ZX Spectrum Next
Topic: SymbOS multitasking operating system for the Next
Replies: 19
Views: 1347

Re: SymbOS multitasking operating system for the Next

Next has a native hardware tilemap, with four variants: 40x32, 16 colours per tile, individual tiles can specify one of 16 subpalettes 80x32, 16 colours per tile, individual tiles can specify one of 16 subpalettes 40x32, 2 colours per tile, individual tiles can specify one of 128 subpalettes of pape...
by Seven.FFF
Mon Jan 22, 2024 8:37 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

There's an .http dot command written by Remy Sharp that will let you do an HTTP GET or POST on any http address (not https, as the ESP can't do SSL/TLS), and dump the returned results into any consecutive set of 8K RAM banks. It's a bit crude, and only supports a tiny subset of the HTTP protocol, bu...
by Seven.FFF
Mon Jan 22, 2024 7:00 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

There is no current SMB client, and scant possibility of somebody writing one in the future. The ESP wifi module doesn't expose any useful low level tcp/ip stuff, it's essentially a very flaky modem, running random versions of bad Chinese firmware, running over a slowish serial connection. And the N...
by Seven.FFF
Sat Jan 20, 2024 12:17 am
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

I'm pretty sure USB keyboards and mice have to support the PS/2 protocol in order to work with those adapters and I doubt a wireless dongle would bother implementing that (not even sure it'd supply sufficient power if one wanted to) Yep, there was a while back in the early 2000s where manufacturers...
by Seven.FFF
Fri Jan 19, 2024 9:02 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

If I could figure out a way to map one of the buttons to reset, I'd be laughing. Not possible in the hardware at present, but Allen was thinking of adding a special combination like START+A+B+C for reset. My interim suggestion was to get a smart plug and plug the Next PSU, and hook it up to a smart...
by Seven.FFF
Thu Jan 18, 2024 4:38 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

Heh yes, I understand. I was more thinking that you could license the code to the Next Team if you owned it, and it would be quite cool to put it to ongoing use. But it sounds like it that wouldn't really fly if your arrangement was informal. And realistically, Garry is capable of writing his own ta...
by Seven.FFF
Thu Jan 18, 2024 2:02 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

I wrote the compression and decompression code for Romantic Robot Oh! I remember reading your thread a while back now! That’s very cool, and I can see why you’re disappointed. As far as I know (have to check) there’s isn’t any tape snapshotting in what Garry wrote, only SD. Do you own the rights to...
by Seven.FFF
Thu Jan 18, 2024 12:44 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

So does it still use the Multiface compression/decompression for Spectrum snapshots or has that been replaced by something smarter ? Snapshots are in .Z80 format to SD card. This is a better choice for the Next than the other popular .SNA format esxDOS uses, as the Z80 format spec allows model and ...
by Seven.FFF
Wed Jan 17, 2024 7:58 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

I can answer my own question : The ZX Spectrum Next website links to an older version of the Next Distro...The very latest version can be obtained from the Gitlab @ https://gitlab.com/thesmog358/tbblue/ and is available with cores for both KS1 and KS2 boards. Yes. The June 10th commit at gitlab is ...
by Seven.FFF
Fri Jan 12, 2024 5:43 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

I did not know this! That's awesome. The yellow NMI button is a multiface "red button". The Next has a fully compatible multiface 1/128/3 built in, and can run with those original Romantic Robot ROMs in the non-Next machine personalities. In the Next, it has a custom Multiface ROM that ca...
by Seven.FFF
Fri Jan 12, 2024 5:36 pm
Forum: Programming
Topic: Questions about FZX
Replies: 26
Views: 4765

Re: Questions about FZX

I think C.Born means that the name DesktopFontEditorFZX.tap implies there is an inbuilt editor, but it's just a set of fonts with a simple demo program. It's just a naming confusion. A lot of the other points are just observations like that, rather than questions or requests for help.
by Seven.FFF
Fri Jan 12, 2024 5:15 pm
Forum: ZX Spectrum Next
Topic: NEXT FAQ’s
Replies: 65
Views: 3431

Re: NEXT FAQ’s

Is it possible to save a snapshot of a NEXT game? I know you can use the NMI button to save a snapshot of a running Speccy game but I wondered if it's possible for a NEXT game? No, it's not even technically possible in the hardware, as some of the state like sprites is write-only. Well, it's read/w...
by Seven.FFF
Thu Jan 04, 2024 8:12 pm
Forum: Programming
Topic: How much self modifying code was there and did it do anything?
Replies: 26
Views: 1369

Re: How much self modifying code was there and did it do anything?

Dunno what you mean by that even though I use sjasm lol, can you give an example? Like this. Test label is defined as the address of the 123 operand byte, not the ld a opcode. Test+*: ld a, 123 I don't think it's supported in sjasm, only in sjasmplus. It's in the docs. In zeus it would be this, and...