Search found 488 matches

by marcelk
20 May 2018, 19:52
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19435

Re: WIP: Tetris + any GCL tips?

Just some things that caught my attention just because I remember them differently (my memories are worthless, so don't worry): The bricks don't stay at their position when rotating repeatedly. They start to travel right to left. Dropping a brick is slow. I expected them to fall quickly once telling...
by marcelk
20 May 2018, 19:45
Forum: Hardware and software hacking
Topic: Blue LEDs for Power and Blinkenlights
Replies: 5
Views: 5467

Re: Blue LEDs for Power and Blinkenlights

I expect you need different resistors for R3 (single resister) and R8 (array of four). The red LEDs in the kit are 2mA/1.8V and are protected by 2.2kΩ series resistors.
by marcelk
18 May 2018, 22:58
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19435

Re: WIP: Tetris + any GCL tips?

Works for me! I've also sped up the USB loader by bumping up the baud rate and removing some stupidity. It now takes 12.5 seconds to send a reset, start the loader, push Gigatris.gt1 into the board and start execution. Today my 10.1 inch LCD monitor arrived from Amazon. It goes well with one of the ...
by marcelk
17 May 2018, 21:41
Forum: Hardware and software hacking
Topic: Optimising tail calls
Replies: 2
Views: 2960

Re: Optimising tail calls

The call to ClearRect places the return address into vLR, and later on 'ret' looks at vLR to know where to go back to. There is no stack at work at all there yet. But you need one once you have more than one level, because otherwise the inner call will clobber the return address of the outer call. S...
by marcelk
17 May 2018, 21:29
Forum: Hardware and software hacking
Topic: Updating the ROM?
Replies: 2
Views: 2936

Re: Updating the ROM?

The commits you see are all in the tooling part, keeping the ROM itself unchanged (for now). We're step by step making it more understandable and usable than just for us. We're still at ROM v1 now for the kits. After Belgrade we plan a tiny update: make Snake suitable for colour blinded people (such...
by marcelk
17 May 2018, 10:20
Forum: Hardware and software hacking
Topic: Second scanline disable for double the performance:
Replies: 4
Views: 4252

Re: Second scanline disable for double the performance:

What's the catch? You borrowed an instruction from the sound generation that it wants back :-) The wiped out instruction helps with creating different harmonics, duty cycle etc: the 'wavA' channel modifier. Maybe also needed for making better noise waveforms (although 'wavX' could be enough for tha...
by marcelk
16 May 2018, 22:07
Forum: Hardware and software hacking
Topic: Extending the Gigatron instruction set
Replies: 22
Views: 16887

Re: Extending the Gigatron instruction set

I'm glad we didn't optimise away the two '157 multiplexers in the high address unit. At one point we did consider to put '08 quad AND gates there instead, but we felt that would destroy too much tweaking potential. (We were also a bit afraid of the higher fan-out on boards with bipolar transistors. ...
by marcelk
16 May 2018, 21:44
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19435

Re: WIP: Tetris + any GCL tips?

Core/compilegcl.py now injects this patch into the GT1 files it creates. I generated a couple of them, and they work fine. I checked them into GitHub as well for now. marcelk@mbook-3:~/Projects/Gigatron-1/Design/theloop> Core/compilegcl.py Apps/HelloWorld.gcl theloop.sym Compiling file Apps/HelloWor...
by marcelk
16 May 2018, 09:08
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19435

Re: WIP: Tetris + any GCL tips?

After loading the start address into vLR, can't you just RET? Yes :D 0x5b, 0x86, 0x06, // Patch segment, 6 bytes at $5b86 0x11, 0x00, 0x02, // LDWI $0200 0x2b, 0x1a, // STW vLR 0xff, // RET 0x00, 0x5b, 0x86, // Execute: run patch first What if the loader writes the start address minus 2 and the sta...
by marcelk
15 May 2018, 23:50
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19435

Re: WIP: Tetris + any GCL tips?

Having played the game now (it looks FANTASTIC), some thoughts. Perhaps not immediately applicable for this program, but it can give ideas on using the limited resources of the system in other projects: 1. The tetrominoes keep flickering when they aren't falling to the next position. You can reduce ...