Skip to content

Instantly share code, notes, and snippets.

@pclewis
Created October 21, 2016 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pclewis/4cffbc059ed8145f26e51be437c7623a to your computer and use it in GitHub Desktop.
Save pclewis/4cffbc059ed8145f26e51be437c7623a to your computer and use it in GitHub Desktop.
[name] TETRIS 1O - NOCR PLAYABLE W CLEARS
[puzzle] SzSandbox
[traces]
......................
..........954.14.15C..
...149555CA...15C14A..
...14A15C3615414A14A..
.....354B5555C14A14A..
........A..14A15614A..
..954..961C..A15C..A..
..A94..A..354A..A..A..
.16354.349554A156..A..
.94.14...A.15694...A..
.A.154..96.1556....A..
.A.14..96..14.155556..
.3554.1615554.........
......................
[chip]
[type] UC6
[x] 1
[y] 1
[code]
slx x3
mov x3 dat
mov dat x2 #row>
dst 0 dat #col
mul 34 #div3
dgt 2 #div3
mov acc p1 #dgt
mul -3 #mod3
add dat #mod3
dgt 0 #mod3
mov acc x2 #bit
mov x2 x3 #resp
[chip]
[type] UC4X
[x] 4
[y] 1
[code]
slx x2
mov x2 acc
tlt acc 0
- tgt acc 98
- dst 2 acc
- tgt acc 899
- mov acc x0
- mov x0 x2
+ mov 9 x2
[chip]
[type] RNG
[x] 7
[y] 1
[chip]
[type] UC4
[x] 12
[y] 1
[code]
mov p0 acc
mul 5
dgt 2
tgt acc 2
+ add 1
mov acc p1
s:slx x0
teq x0 2
- jmp s
[chip]
[type] LCDC
[x] 15
[y] 1
[custom-screen]
matrix
[chip]
[type] UC6
[x] 9
[y] 2
[code]
slp 1
mov p1 dat
slp 1
mov 0 acc
l:mov acc x1
add 1
tgt x1 3
- mul -1
mov acc x3
- mul -1
teq acc 120
- jmp l
mov dat x2
slp 1
[chip]
[type] UC6
[x] 5
[y] 3
[code]
slx x1
teq p1 2
- mov x0 acc #val
- dgt p0 #dgt
- mul 125 #bits
+ mov 421 acc#bits
dgt x1 #bit
+ mov acc dat#dgt
+ mov 0 acc #dgt
+ dst p0 dat #dgt
+ add x0 #val
mov acc x1 #resp
+ nop #sync
+ mov acc x0 #set
[chip]
[type] UC4X
[x] 2
[y] 4
[code]
slx x1
mov x1 acc
dgt 1 #row
mov acc x0 #ptr
mov x1 x2 #bit
mov x2 x1 #resp
mov acc x0 #4set
[chip]
[type] UC6
[x] 12
[y] 4
[code]
slx x3
mov x3 acc
tlt acc 0
+ mov dat x0
+ mov 0 dat
+ jmp x
mov acc x1
tgt x1 3
+ mov 8 dat
x:teq p0 0
- add 1
- mov acc x2
[chip]
[type] UC6
[x] 1
[y] 6
[code]
slp 1
mov 0 x3
l:mov x2 acc
teq acc 777
- mov acc dat
+ mov x3 acc
+ sub 2
+ mov acc x3
+ mov 777 x2
+ mov dat x2
+ mov 0 x3
teq x3 11
- jmp l
slp 2
[chip]
[type] RAM
[x] 4
[y] 6
[chip]
[type] UC6
[x] 7
[y] 7
[code]
slx x0
teq x0 10
+ mov 2 acc
- mov 3 acc
tgt x2 0
- mov 1 acc
mov acc p1
mov acc x0
mov x2 null
slp 1
mov 0 p1
[chip]
[type] UC4X
[x] 12
[y] 7
[code]
teq acc 0
+ slx x3
+ mov x3 acc
tgt acc 199
+ mov x0 x2
- mov x0 null
dst 2 0
mul 10
[chip]
[type] UC6
[x] 4
[y] 8
[code]
mov acc dat
slx x0
mov x0 acc
mov acc x3
add dat
tgt acc 399
+ sub 400
mov acc x3
slx x3
mov dat x3
teq p1 2
+ mov 110 dat
teq p1 1
- mov dat acc
[chip]
[type] BRIDGE
[x] 11
[y] 8
[chip]
[type] UC4X
[x] 15
[y] 8
[code]
teq acc 0 #p1
+ slx x1
+ mov x1 x3 #idx
+ mov x2 acc #col
mov x2 x0 #row
mov acc x0 #col
mov acc x0 #col
- mov -999 x0#done
- mov x0 acc #done
[chip]
[type] BANK
[x] 18
[y] 8
[rom]
1,0,8,10,-9,-21,-1,12,-8,-10,11,21,0,0
[chip]
[type] UC4
[x] 12
[y] 9
[code]
@ mov -1 acc
tlt acc 0
+ slx x1
+ mov p1 acc
add x1
mov acc x0
tlt acc 0 #done
+ mov 0 x1 #done
[chip]
[type] UC6
[x] 1
[y] 10
[code]
0:mov x3 acc
mov 0 dat
teq acc -999
+ mov 10 dat
teq acc 3
+ mov -1 dat
teq acc 4
+ mov 1 dat
teq acc 1
+ mov 100 dat
teq dat 0
- mov dat x2
- slp 3
[chip]
[type] UC6
[x] 15
[y] 10
[code]
slx x0
mov x0 dat #pos
mov dat acc#pos
dst 2 0 #pos
mov acc p0 #pos
mov dat acc#rot
dgt 2 #rot
mul 3 #rot
mov p1 x3 #pc
mov x2 x1 #pc
mov acc x1 #rot
mov x2 x1 #pc
mov 200 x1 #done
[chip]
[type] BANK
[x] 18
[y] 10
[rom]
122,221,122,122,121,222,211,222,0,0,0,0,0,0
[chip]
[type] PAD
[x] 4
[y] 11
[chip]
[type] UC4X
[x] 12
[y] 11
[code]
slx x0
mov x0 acc
mov acc x3
teq x0 0
+ mov acc x3
+ mov x0 null
- mov x0 x3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment