Search found 29 matches

by markusr
Sat May 04, 2024 10:20 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Specasm v9 is now available . There are two main additions in this release ZX81 Support Specasm v9 supports cross-assembly for the ZX81. What this means is that samake is now capable of creating .p files and .salink can be instructed to transliterate any string or character constant it encounters fr...
by markusr
Fri Apr 26, 2024 9:44 pm
Forum: Showcase your work!
Topic: fossimon - an NMI based monitor for divMMC and esxDOS
Replies: 19
Views: 893

Re: fossimon - an NMI based monitor for divMMC and esxDOS

It's the behaviour of the Z80 to jump to $66 when an NMI occurs so it's unlikely to change now. :) Good to know. I should have read the comments in your example code more carefully. Perhaps an nmi pseduo instruction might more sense. I'll have a think about it. In any case, having access to the mon...
by markusr
Fri Apr 26, 2024 9:18 pm
Forum: Showcase your work!
Topic: fossimon - an NMI based monitor for divMMC and esxDOS
Replies: 19
Views: 893

Re: fossimon - an NMI based monitor for divMMC and esxDOS

You could try: call $66 ; call the ROM 'NON-MASKABLE INTERRUPT' at $66 / 102 That's excellent. It works! Is this address ($66) fixed or is likely to change with subsequent releases of fossimon? If it's fixed, I could add a fmon pseudo instruction to the 48kb version of Specasm which would take you ...
by markusr
Fri Apr 26, 2024 8:50 pm
Forum: Showcase your work!
Topic: fossimon - an NMI based monitor for divMMC and esxDOS
Replies: 19
Views: 893

Re: fossimon - an NMI based monitor for divMMC and esxDOS

I had a quick play with fossimon this evening on my OMNI HQ. The OMNI is running EXSDOS 0.87, a version older than what is recommended by the documentation, but it does seem to work, and it's great! Thanks so much for this. Is it possible to programmatically enter the monitor using one or more assem...
by markusr
Thu Mar 14, 2024 9:40 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Thank you very much for the continuously development and all the improvements! When I add tools like the SERCP from PVYM and the (hex)EDITOR from NAMCO, it is a perfect system to do things without an emulator. :) Thanks SamC. It's great to hear that Specasm is being used. I recommend adding documen...
by markusr
Sun Mar 10, 2024 9:10 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Release v8 of Specasm is now available. It contains numerous updates and improvements: The keyboard handling is much improved. Phantom key strokes are no more and key repeat should feel more natural. Binary files can now be included using the new '!' directive. The existing '+' and '-' directives ca...
by markusr
Sun Jan 28, 2024 9:29 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Release v7 of Specasm is now available. Highlights include A new version just for the ZX Spectrum Next Support for all Z80N instructions (in the Next version) A new tool called samake for automatically generating tap and BASIC loaders ( specially for PeterJ ) A fixed bug which prevented lines contai...
by markusr
Wed Jan 17, 2024 11:44 pm
Forum: Programming
Topic: Spectrum Next dotn files
Replies: 10
Views: 724

Re: Spectrum Next dotn files

Hi. There´s already a .launcher DOT-Command for esxDOS as can be read here: https://board.esxdos.org/viewtopic.php?pid=233#p233 Maybe you could rename yours to e.g. .launch to separate them a little bit? I think maybe there's some misunderstanding here. I don't have a .launcher dot command. Specasm...
by markusr
Sun Jan 14, 2024 9:39 pm
Forum: Programming
Topic: Spectrum Next dotn files
Replies: 10
Views: 724

Re: Spectrum Next dotn files

Well, I've got it all to work, mostly. I managed to locate three blocks of code in both the linker (salink) and the editor (specasm) that were self-contained, in that they had only one or two entry points. I compiled these separately associating each of them with a different 8 KB bank. I then create...
by markusr
Wed Dec 13, 2023 8:20 pm
Forum: Programming
Topic: Spectrum Next dotn files
Replies: 10
Views: 724

Re: Spectrum Next dotn files

Thanks @Seven.FFF and @Xalior . That github repo was exactly what I was looking for. I'll have a good study of the code and makefiles and will ask any further questions on discord. I'll report back here once I get it all to work, with a summary of what it was I did.
by markusr
Tue Dec 12, 2023 10:19 pm
Forum: Programming
Topic: Spectrum Next dotn files
Replies: 10
Views: 724

Spectrum Next dotn files

I'm trying to port Specasm to the Spectrum Next. The 48kb version of Specasm consists of four binaries, two tap files (specasm and salink) and two dotx files (saimport and saexport). .launcher is used to allow the tap files to be launched from the command line via a dot command, e.g., typing .specas...
by markusr
Sun Nov 26, 2023 7:50 pm
Forum: Programming
Topic: Spectrum interface to do programming?
Replies: 14
Views: 502

Re: Spectrum interface to do programming?

You beat me to it @flatduckrecords! I was just trying to remember the name. There is a new version out which will support the Next and make compilation easier. Actually, the new version is not released yet, but I am working on it. I've written the code to support the new Next opcodes but still need...
by markusr
Sun Mar 19, 2023 2:34 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Specasm v6 has been released. There's only one change in this new release but it is a significant improvement. It is now actually possible to install Specasm! Releases v2 to v5 allowed you to re-install Specasm on a sdcard where it had previously been installed, but not it seems, to install it on a ...
by markusr
Fri Jan 27, 2023 6:53 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Specasm v5 has been released! Unlike Specasm v4, this release does have some new features namely, the ability to define local and global constants and to use expressions in the place of immediate integer values. For example, @utz's examples from earlier in the thread can now be written as follows .F...
by markusr
Sun Dec 25, 2022 9:30 am
Forum: Sinclair Miscellaneous
Topic: Happy Christmas
Replies: 26
Views: 670

Re: Happy Christmas

I picked this up at my local off-license and decided to save it for Christmas Day. My German's a bit rusty but I believe the inscription reads, "Spektrum. For every day, for everybody, for always." Noble sentiments indeed. Merry Christmas Spectrum Computing https://i.postimg.cc/bSXQgDyh/Sp...
by markusr
Sun Nov 20, 2022 2:35 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Specasm v4 , the most unremarkable version of Specasm yet, has just been released. This release boasts better test coverage, one small fix to the find command and fewer bytes. It’s really the latter change that motivated the release. The Specasm binary has shrunk by 1.8kb freeing up space for some n...
by markusr
Wed Aug 24, 2022 7:29 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Thanks for posting this PeterJ . I meant to do this myself after publishing the release, but forgot. If you do happen to be using Specasm, I highly recommend updating to the v3 release. It fixes a really nasty bug with the align directive which can result in the addresses of labels being incorrectly...
by markusr
Fri Mar 18, 2022 8:33 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

I've released v2 of Specasm. The new release addresses some of the issues discussed in this thread. In particular equb, equw, repb have been renamed db, dw, and ds respectively. The order of arguments expected by ds is the reverse of what repb expected. Both parameters are mandatory. Hexadecimal num...
by markusr
Thu Mar 03, 2022 6:52 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

If you want complete control, I would suggest implementing a simple ASM routine, that just creates a bit map of the keys using just 8 bytes, one for each half row. The best approach, in my opinion, would be to generate a queue of events, based on comparing a previous read of the 8 rows, with the la...
by markusr
Thu Mar 03, 2022 6:41 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

I'm afraid I don't know - it's a report of "not working" without further details. So I just had a quick look to try to figure out every possible thing that might go wrong. However, I think it may have to do with your use of .launcher which is not part of the NextZXOS distribution by defau...
by markusr
Thu Feb 24, 2022 6:10 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Originally I was pointed here because someone mentioned that specasm wasn't running on the Spectrum Next so I'll spend a few lines talking about that. There are four binaries in the Specasm v1 release. specasm - The integrated editor/assembler salink - The linker saexport - Converts annotated objec...
by markusr
Thu Feb 24, 2022 5:24 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

I might try something like this although since I haven't tested it, it may be a big fail :) do { in_wait_nokey(); while ((k = in_inkey()) == 0) ; specasm_handle_key_press(k); // auto-repeat delay for (unsigned char i = 0; i != 250; ++i) { z80_delay_ms(3); // 750ms until repeat, poll keyboard every ...
by markusr
Tue Feb 22, 2022 8:24 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Do you plan to extend its compatibility to ZX Spectrum Next (which also uses esxDOS, but provide much more memory, in both old ZX 128 16k banks, and new and more flexible 8k slots from at least 1GB memory) I would like to do a 128k version sometime later in the year to include some of the functiona...
by markusr
Mon Feb 21, 2022 7:25 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Thank you for the assembler! Please follow the traditional, very basic syntax of directives: https://www.nongnu.org/z80asm/directives.html Please check e.g. Nagydani´s sources , these can be compiled with the z80asm. A similar syntax has a native assembler for the V6Z80P´s FLOS (source of this asm ...
by markusr
Mon Feb 21, 2022 7:22 pm
Forum: Showcase your work!
Topic: Specasm: A Z80 assembler designed to run on the spectrum itself
Replies: 31
Views: 3330

Re: Specasm: A Z80 assembler designed to run on the spectrum itself

Thanks for the feedback. Expressions It would be great if this gets extended a bit in the long run. If I understood correctly, right now there is no way to use symbols as constants, eg. .Foo equb some_value ... ld a,.Foo That's correct. All that can be done at the moment is to use labels where absol...