Search found 490 matches

by marcelk
16 May 2018, 09:08
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 11074

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: 11074

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 ...
by marcelk
15 May 2018, 21:36
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 11074

Re: WIP: Tetris + any GCL tips?

I was just going through it and came the same realisation. It is adjusting both vLR and vPC at the same time and from there it is too late because we have already entered the loaded program. d746 0129 ld [$29] ;Execute d747 a002 suba $02 d748 c216 st [$16] ;<-- vPC d749 c21a st [$1a] ;<-- vLR It sho...
by marcelk
15 May 2018, 19:00
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 11074

Re: WIP: Tetris + any GCL tips?

It looks like the code assumes the LR will be 0x200 Ah!!! That is what the Loader is supposed to do... The ROM loader does this and the built-in applications rely on that. But clearly the Loader application doesn't and testing it with "Blinky" didn't reveal this. My mistake :oops: That also explain...
by marcelk
15 May 2018, 16:26
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 11074

Re: WIP: Tetris + any GCL tips?

there are 2 spare bits for every pixel on the screen - very handy That is where the "head" in Snake stuffs directional information that the "tail" needs for following. Can also be handy in maze games, acting as invisible guiding rails for enemies. PS: I'm still unsuccessful at running Gigatris.gt1....
by marcelk
14 May 2018, 17:59
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 11074

Re: WIP: Tetris + any GCL tips?

Something that'd be really nice in GCL would be labels - it'd be nice to be able to do something like: label@ $00# $00# $00# $00# In a way defs are labels not just for functions but also for data. [def $00# $00# $00# $00#] MyData= def does nothing but copying vPC into vAC and then hopping over to t...
by marcelk
14 May 2018, 13:06
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 11074

Re: WIP: Tetris + any GCL tips?

Racer and Pictures use this GCL snippet to resync with the video signal: {Sync with video loop} [do \videoY, 1& if=0loop] It waits until the video loop is in vertical blank. The variable is odd in vertical blank and even in the visible area. There it indeed indexes the video indirection table at $10...
by marcelk
13 May 2018, 22:28
Forum: Hardware and software hacking
Topic: Keyboard hookup with minimal means (dream)
Replies: 19
Views: 9480

Keyboard hookup with minimal means (dream)

This is a thread to collect ideas on this ultimate goal of "direct keyboard hookup" while preserving the minimalistic style of the rest of the system: only simple hardware, preferably 1 or even 0 extra ICs, and nothing more complex than a shift register. Bonus points when it is possible to mod it in...
by marcelk
13 May 2018, 22:17
Forum: Hardware and software hacking
Topic: PS/2 keyboard hookup with microcontroller
Replies: 14
Views: 6767

PS/2 keyboard hookup with microcontroller

The Terminal.ino sketch in my GitHub repository can now do this: https://www.youtube.com/watch?v=f9MukNFpffQ The Arduino is a bit overkill. An ATtiny85 should be able to do the job equally well. IMG_3302-1-768x522.jpg I feel this is the most acceptable route on the short term for keyboard hookup. Th...
by marcelk
13 May 2018, 21:54
Forum: Escape Meta Alt Control Shift
Topic: Lets see if this pbpBB system works for us
Replies: 4
Views: 2770

Lets see if this pbpBB system works for us

We been looking at setting up a forum, because going on without one is too minimalistic and very inefficient use of everyones time. I have been looking into options: Personally I dislike Google Groups a lot. Almost everything about it rubs me in the wrong way. Stack Overflow has a very unwelcoming a...