Search found 488 matches

by marcelk
15 May 2018, 21:36
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19349

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

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

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 r...
by marcelk
14 May 2018, 17:59
Forum: Hardware and software hacking
Topic: WIP: Tetris + any GCL tips?
Replies: 29
Views: 19349

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

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...
by marcelk
13 May 2018, 22:28
Forum: Hardware and software hacking
Topic: Keyboard hookup with minimal means (dream)
Replies: 19
Views: 15003

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...
by marcelk
13 May 2018, 22:17
Forum: Hardware and software hacking
Topic: PS/2 keyboard hookup with microcontroller
Replies: 14
Views: 10787

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

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...