Search found 364 matches

by lb3361
10 Apr 2024, 11:36
Forum: Hardware and software hacking
Topic: Toledo chess program
Replies: 7
Views: 227

Re: Toledo chess program

The main difference is the size of integers, two bytes vs four bytes. The faq says that it can work, but that might be old information. It might also be possible that glcc has a bug but this is not the right way to isolate it (obfuscation does not help debugging).
by lb3361
09 Apr 2024, 08:03
Forum: Hardware and software hacking
Topic: Toledo chess program
Replies: 7
Views: 227

Re: Toledo chess program

Replacing all the 1e4, 2e4, 3e4 by integers 10000,20000,30000 should make it run a bit faster.
Otherwise the expression is promoted to floating point which is emulated in software.
Still waiting ... is something wrong?
by lb3361
06 Apr 2024, 09:50
Forum: Hardware and software hacking
Topic: Toledo chess program
Replies: 7
Views: 227

Re: Toledo chess program

Thanks! I just did the required changes for modern C++ compiler. But now I replaced all occurrences of 1e5 with 2e4, and 1e9 with 3e4 and it runs fine now. Now we just need to figure out, how to have computer play black ;-) best, Peter According to the web page, one has to invoke it with one dummy ...
by lb3361
05 Apr 2024, 06:03
Forum: Hardware and software hacking
Topic: Toledo chess program
Replies: 7
Views: 227

Re: Toledo chess program

From the FAQ
Screenshot 2024-04-05 at 08.02.18.png
Screenshot 2024-04-05 at 08.02.18.png (549.29 KiB) Viewed 195 times
Checked on ROMv6.
by lb3361
26 Mar 2024, 10:55
Forum: Hardware and software hacking
Topic: ROMv1.asm.py
Replies: 2
Views: 75

Re: ROMv1.asm.py

A little bit before your screenshot, you'll see this piece of code: # vCPU reset handler vReset = videoTable + 240 # we have 10 unused bytes behind the video table ld((vReset&255)-2); C('Setup vCPU reset handler') st([vPC]) adda(2, X) ld(vReset>>8) st([vPC+1], Y) st('LDI', [Y,Xpp]) st('SYS_Reset...
by lb3361
22 Mar 2024, 02:11
Forum: Hardware and software hacking
Topic: New size coding contest "ZX Spectrum effect"
Replies: 17
Views: 588

Re: New size coding contest "ZX Spectrum effect"

Found a devious way to save two bytes (execution starts in 0x8b) Code = 21 bytes. GT1 = 27 bytes * file: phib_chess_d.gt1 0081 ff 07 0083 fc 82 XORW $82 ||.| 0085 82 01 ANDI 1 |..| 0087 e3 3f ADDI $3f |c?| 0089 f0 81 POKE $81 |p.| 008b 59 01 LDI 1 |Y.| 008d 99 81 ADDW $81 |..| 008f 2b 81 STW $81 |+....
by lb3361
22 Mar 2024, 01:25
Forum: Hardware and software hacking
Topic: New size coding contest "ZX Spectrum effect"
Replies: 17
Views: 588

Re: New size coding contest "ZX Spectrum effect"

Interesting. @Phibrizzo : you can save 11 bytes with a single loop. Total: code = 23 bytes, gt1 = 29 bytes. (SMALLEST GT1) * file: phib_chess_c.gt1 0081 00 08 |..| 0083 1a 82 [vCPU] LD $82 |..| 0085 fc 81 XORW $81 ||.| 0087 82 01 ANDI 1 |..| 0089 e3 3f ADDI $3f |c?| 008b f0 81 POKE $81 |p.| 008d 59 ...
by lb3361
20 Mar 2024, 14:39
Forum: Hardware and software hacking
Topic: gtmine [game]
Replies: 8
Views: 995

Re: gtmine [game]

1) There is a version of gtmine built into ROMv6 with source code and makefile at https://github.com/kervinck/gigatron-rom/tree/master/Apps/GtMine 2) Some versions of the C compiler were eager to not only use but also statically initialize zero page memory locations (in range 0x36-0x41) that are des...
by lb3361
20 Mar 2024, 14:26
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 45861

Re: LCC for the Gigatron. Take two.

at67 wrote: 20 Mar 2024, 03:47 Max file upload size has been increased to approximately 5MiB.
Thanks at67. It works now.
by lb3361
19 Mar 2024, 20:17
Forum: Hardware and software hacking
Topic: LCC for the Gigatron. Take two.
Replies: 106
Views: 45861

Re: LCC for the Gigatron. Take two.

New release. Linux and Mac users --> clone the github repository at https://github.com/lb3361/gigatron-lcc Windows users --> try the attached precompiled zip. Version 2.4 makes a more efficient use of scratch registers, optimizes a bit more, and produces more compact code. Long multiplication is sub...