Search found 28 matches

by tkfan
Wed Dec 27, 2023 2:33 pm
Forum: Programming
Topic: Boolean logic: "short circuit evaluation"?
Replies: 17
Views: 801

Re: Boolean logic: "short circuit evaluation"?

10 IF NOT USR 82 AND USR 0 THEN PRINT "BOO!" "USR 82" is just a ret, and returns 82. if short circuit is on, then nothing will happen. otherwise the Speccy will reset. ;-) You can try the program below if you prefer not reset your machine. :-) 10 IF 1 OR 2/0 THEN PRINT "OK&...
by tkfan
Wed Mar 08, 2023 1:28 pm
Forum: Emulators
Topic: New release of SpecEmu
Replies: 218
Views: 47143

Re: New release of SpecEmu

edjones wrote: Sat Mar 04, 2023 11:35 am Seems keybase is no more and SpecEmu lives here atm:
https://1drv.ms/u/s!AmOOhLw8lDDyhYYr4AAs2_mKFGtn6Q
I cannot download, the message says the file isn't available. :(
by tkfan
Wed Mar 08, 2023 1:22 pm
Forum: Brand new software!
Topic: TK Disassembler
Replies: 0
Views: 147

TK Disassembler

After DisassemBASIC , a 100% pure BASIC Z80 disassembler, I'm releasing now TK Disassembler , written entirely in Z80 assembler. ;) https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUtRlbLv6IlnZstoLSqxT5peu8sWpI6yji4m1B061GZtMrR4R_PkbZEFxhcThBt6dsXJdwYINeDzUZSZO7NAbhZOP58A1NoZBi4m1pHLFjp-W...
by tkfan
Fri Feb 10, 2023 9:47 pm
Forum: Brand new software!
Topic: DisassemBASIC
Replies: 2
Views: 271

Re: DisassemBASIC

Nice work. Obvs it's not going to replace a PC disassembler, but it's fast enough to keep pace with reading line by line. If I had to, I could make use of this. It's a lot faster than this type-in disassembler for example. I suspected that there must already be a disassembler in BASIC, but I didn't...
by tkfan
Thu Feb 09, 2023 3:45 pm
Forum: Brand new software!
Topic: DisassemBASIC
Replies: 2
Views: 271

DisassemBASIC

Is it possible to write a Z80 disassembler in pure BASIC? Yes, it is possible and it works perfectly. The only downside is the speed of Spectrum BASIC. :) https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggRKJxgfABkHCHwCFiHQqMZropCCSLWd2WXbx9dHUV_-LUyiFwrVDsEWU4wn9g99ptzKQ6s8wFt7za8UxtDKe9...
by tkfan
Sat Feb 04, 2023 12:49 pm
Forum: Brand new software!
Topic: All Opcodes
Replies: 0
Views: 168

All Opcodes

All Opcodes is a BASIC program that generates all opcodes for Z80 CPU in the Spectrum RAM. You can see all Z80 instructions in your favourite disassembler/debugger. https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOHCRWWjmjpBbr_v0dAcekViOobna9QYfu07_7_V6otGzGzNxSe7Ous_eEAldqw34XW9VB_YDjH...
by tkfan
Sun Jan 15, 2023 1:18 pm
Forum: Programming
Topic: Spectrum Analyser
Replies: 15
Views: 951

Re: Spectrum Analyser

Spectrum Analyser is for Windows but I use only Linux (Debian testing). I tried to run with Wine and was unsuccessful. :(
by tkfan
Sat Jan 14, 2023 8:37 pm
Forum: Programming
Topic: Multiface 1 ROM disassembly and mods
Replies: 0
Views: 123

Multiface 1 ROM disassembly and mods

I disassembled the ROM of Romantic Robot Multiface 1 . The zip archive containing the disassembly listing can be download from Google Drive. The link is: https://drive.google.com/file/d/1JLH_fYa4NuvIoZkW6_2aQVkyuJU237xN/view?usp=share_link It is a plain text file, can be viewed/edited with any text ...
by tkfan
Thu Jan 12, 2023 4:06 pm
Forum: Programming
Topic: Questions about Sinclair Basic Arrays
Replies: 9
Views: 310

Re: Questions about Sinclair Basic Arrays

Thank you for the reply, I’ll stick with what I’ve got for now, it’s to animate UDGS I currently only have up done and that’s 112 bytes. So down, left and right will be a further (approx) 336 as an absolute minimum. I'm not sure if I'm following you. Poke some hundred bytes uses a lot of time, I'm ...
by tkfan
Wed Jan 11, 2023 11:48 am
Forum: Programming
Topic: Questions about Sinclair Basic Arrays
Replies: 9
Views: 310

Re: Questions about Sinclair Basic Arrays

This question is not easy to answer. Probably peek/poke is more efficient if each element is 1 byte long. Multiple peeks/pokes to handle only one element would be slower, I think.
by tkfan
Fri Jan 06, 2023 5:09 pm
Forum: Hardware
Topic: Explorer PSG interface
Replies: 2
Views: 120

Re: Explorer PSG interface

@Luzie
Nice! Glad to know that at least one person abroad knows Explorer. Anyone else maybe? :)
Yes, I'm owner of Cantinho do TK90X blog and I know Trucco (I helped him a few times before). I've been in a long hiatus, know I'm back to the hobby. ;)
by tkfan
Fri Jan 06, 2023 4:05 pm
Forum: Hardware
Topic: Explorer PSG interface
Replies: 2
Views: 120

Explorer PSG interface

I noticed that nobody outside Brazil knows this interface. Explorer is a Brazilian interface with AY-3-8912 sound chip. It gives Spectrum 128 sound capabilities to TK90X, TK95 and Spectrum 48. It works like Melodik , but the schematics are not the same. I bought mine in 1990. The interface is housed...
by tkfan
Thu Jan 05, 2023 9:56 pm
Forum: Announcements
Topic: Introduce yourself!
Replies: 684
Views: 188331

Re: Introduce yourself!

It looks like a 48K and not like a 48K at the same time. Is the text translated into Portuguese or is it still in English? Microdigital cloned ZX Spectrum 16/48 in 1985 and modified the ROM to support Portuguese and Spanish languages. The error messages are translated and some characters with diacr...
by tkfan
Thu Jan 05, 2023 9:40 pm
Forum: Announcements
Topic: Introduce yourself!
Replies: 684
Views: 188331

Re: Introduce yourself!

Mpk wrote: Thu Jan 05, 2023 4:07 pm I have to ask - what does the Magic Button do?
The Magic Button saves a program snapshot to a floppy disk. That interface is a Brazilian clone of Technology Research Beta 48 disk interface made by Synchron. It is not a clone of Beta 128 interface that was very popular in Eastern Europe.
by tkfan
Thu Jan 05, 2023 9:34 pm
Forum: Announcements
Topic: Introduce yourself!
Replies: 684
Views: 188331

Re: Introduce yourself!

PeterJ wrote: Thu Jan 05, 2023 4:01 pm Thanks for the photo. Can I ask what the 'TK Explorer' is?
Explorer is a Brazilian interface with AY-3-8912 PSG chip. This add-on gives Spectrum 128 sound capability to TK90X/TK95/Spectrum 48. It resembles Melodik interface.
by tkfan
Thu Jan 05, 2023 3:56 pm
Forum: Announcements
Topic: Introduce yourself!
Replies: 684
Views: 188331

Re: Introduce yourself!

Hi! I subscribed to the Spectrum Computing exactly one year ago, I think this is a good time to introduce myself. ;) I live in Brazil and my first computer was a CP200, a Brazilian clone of ZX-81. At that time, Brazilians were prohibited from importing computer products. My next computer was TK90X, ...
by tkfan
Wed Jan 04, 2023 4:41 pm
Forum: Hardware
Topic: Multiface 1 program saving bug
Replies: 10
Views: 439

Re: Multiface 1 program saving bug

all I remember is that the 18 year old me tried to select a 3 byte sequence that didn't make sense as character codes or assembly instructions and was unlikely to appear as graphic data. Do you think I succeeded with 37h, EDh and CBh ? I believe so, I don't remember any titles that were impossible ...
by tkfan
Wed Jan 04, 2023 3:06 pm
Forum: Hardware
Topic: Multiface 1 program saving bug
Replies: 10
Views: 439

Re: Multiface 1 program saving bug

@Turtle_Quality

Do you remember how you got that 3-byte marker? Just for curiosity.
by tkfan
Sun Jan 01, 2023 3:17 pm
Forum: Emulators
Topic: Retro Virtual Machine 2.1
Replies: 27
Views: 1218

Re: Retro Virtual Machine 2.1

Wow! It emulates TK90X and TK95! Very interesting indeed! ;)
by tkfan
Sun Jan 01, 2023 12:02 am
Forum: Sinclair Miscellaneous
Topic: Happy New Year
Replies: 23
Views: 579

Re: Happy New Year

https://lh3.googleusercontent.com/y_h5vWV364_P4Fkkiyk8QMPfkWt97AOkzD1WyQEWWNofvZwtGRrVB3l_uk4TBlTGhJUMbnm3J0Oobub6c9oTsJM9rVGLWkoNbM-4O0gSs8jacBdvCQW5kIE_b92bC-KYNsANsx5JaYM8AnTI-j9DyuA_Z4xnpI7RPgMSdjzBgaCD72eIfKnpiT1eufNiWqDzt0XEiEabImQwH68spgpC_wjgo0CYImJk07dohIaYI66NJP7HiZe9nPK_5ijkgQ2Hs1i0ojMeI...
by tkfan
Sat Dec 31, 2022 11:19 pm
Forum: Hardware
Topic: Multiface 1 program saving bug
Replies: 10
Views: 439

Re: Multiface 1 program saving bug

Thanks @tkfan it's a well commented disassembly As I mentioned before I was concerned at the time that someone would realise and be able to to prevent MF1 backup due to to a vulnerability in my compression code, but to have it discovered after 38 years was the best Christmas present I had this year...
by tkfan
Fri Dec 23, 2022 2:13 pm
Forum: Hardware
Topic: Multiface 1 program saving bug
Replies: 10
Views: 439

Re: Multiface 1 program saving bug

Yes I know, I wrote it many years ago. I had suspicions that someone in the world should know about this, but I couldn't find anything on the web. I'm curious, where did you publish about your discovery? :?: Anyway, this is how I remember it... did you manage to disassemble it @tkfan because I'd lo...
by tkfan
Thu Dec 22, 2022 7:35 pm
Forum: Hardware
Topic: Multiface 1 program saving bug
Replies: 10
Views: 439

Multiface 1 program saving bug

The Romantic Robot add-on, Multiface 1, made any software protection almost useless at the time. However, I found that if a sequence of three bytes (in hex) 37h, EDh and CBh is placed in video RAM (16384-23295 or 4000h-5AFFh) or in any address above 25264 (62B0h), the attempt to save the program fai...
by tkfan
Wed Nov 09, 2022 12:18 am
Forum: Hardware
Topic: MultiFace ROM pagein
Replies: 6
Views: 247

Re: MultiFace ROM pagein

I own a Brazilian Multiface One clone, I don't know if it is an exact copy of Romantic Robot original hardware. In my hardware, IN 159 (9F hex) pages in MF ROM & RAM and IN 31 (1F hex) pages in Spectrum ROM. A 74LS74 latch is used to select what ROM are enabled.
by tkfan
Tue Nov 08, 2022 11:53 pm
Forum: Programming
Topic: is there a way of reading registers from basic?
Replies: 14
Views: 522

Re: is there a way of reading registers from basic?

What about setting error handling procedure, and intentionally create error situation to run it? Or even LOAD "" CODE can run machine code without USR, if cleverly used. Despite one can run machine code without USR, I cannot see such tricks as a real support for programming at CPU level f...