Discussion:
Small Tetris
(too old to reply)
Kerr-Mudd, John
2021-11-21 13:50:31 UTC
Permalink
I've been looking at small tetris games; doable in <256 bytes; I'm at
241 (219 with a different look), I'll look at adding "drop" and
maybe scoring.
--
Bah, and indeed Humbug.
Kerr-Mudd, John
2021-12-04 16:01:25 UTC
Permalink
On Sat, 4 Dec 2021 14:08:42 +0000
On Sun, 21 Nov 2021 13:50:31 +0000
Post by Kerr-Mudd, John
I've been looking at small tetris games; doable in <256 bytes; I'm
at 241 (219 with a different look), I'll look at adding "drop" and
maybe scoring.
Dropping & scoring (up to 9!) added. still 17 bytes spare!
There's also a(n unavoidable?) bigjumpback in there that wastes 3.
If I could only make the keyin rtn shorter.
[]
Sorry if it wraps: here's one where you can max out at 99!
(but only 1 byte left)

[I've copied in dos programmer]

-> d 100 l100
16A5:0100 40 CD 10 68-00 B8 07 06-1F 41 E4 40-83 E0 07 BB @***@....
16A5:0110 08 08 08 C7-89 C5 8A 86-F7 01 C1 E0-04 95 BF C0 ................
16A5:0120 FF E3 04 E2-05 B1 0A 83-C7 50 60 BF-80 07 B1 0C .........P`.....
16A5:0130 B8 DB 08 8A-1E 1E 00 F3-AB BE 32 07-83 EF 68 B1 ..........2...h.
16A5:0140 0A B2 08 AB-A4 22 14 A4-E2 FA AB 74-04 83 C7 50 .....".....t...P
16A5:0150 43 83 EE 64-73 E6 BF 1C-00 88 D8 80-EB 3A 72 07 C..ds........:r.
16A5:0160 FE 05 80 0D-30 88 D8 AF-0C 30 AA 61-B4 01 CD 16 ....0....0.a....
16A5:0170 74 0A B4 00-CD 16 88 E0-3C 01 74 58-57 3C 4D 75 t.......<.tXW<Mu
16A5:0180 01 AF 3C 4B-75 02 4F 4F-55 3C 48 74-55 3C 50 75 ..<Ku.OOU<HtU<Pu
16A5:0190 02 31 C9 99-E8 20 00 75-41 5A 5A BA-DA 03 89 D8 .1... .uAZZ.....
16A5:01A0 E8 14 00 74-03 E9 61 FF-51 B1 06 EC-A8 08 74 FB ...t..a.Q.....t.
16A5:01B0 E2 F9 91 59-68 21 01 60-B1 10 F6 C1-03 75 03 83 ...Yh!.`.....u..
16A5:01C0 C7 48 D1 C5-73 11 08 D2-74 0B AB 0A-75 4E E2 EA .H..s...t...uN..
16A5:01D0 F6 C6 08 61-C3 0A 35 AF-EB F4 5D 5F-83 FF C0 75 ...a..5...]_...u
16A5:01E0 BA C3 51 B1-10 B8 11 11-C1 C5 04 D1-D0 73 02 D1 ..Q..........s..
16A5:01F0 CD E2 F5 95-59 EB 9C 0F-74 36 72 63-71 33 0F 00 ....Y...t6rcq3..
--
Bah, and indeed Humbug.
Kerr-Mudd, John
2021-12-04 20:44:01 UTC
Permalink
On Sat, 4 Dec 2021 16:01:25 +0000
Post by Kerr-Mudd, John
On Sat, 4 Dec 2021 14:08:42 +0000
On Sun, 21 Nov 2021 13:50:31 +0000
Post by Kerr-Mudd, John
I've been looking at small tetris games; doable in <256 bytes; I'm
at 241 (219 with a different look), I'll look at adding "drop" and
maybe scoring.
Dropping & scoring (up to 9!) added. still 17 bytes spare!
There's also a(n unavoidable?) bigjumpback in there that wastes 3.
If I could only make the keyin rtn shorter.
[]
Sorry if it wraps: here's one where you can max out the score at 99!
(but only 1 byte left)
[I've copied in dos programmer]
/msdos/
Post by Kerr-Mudd, John
-> d 100 l100
16A5:0110 08 08 08 C7-89 C5 8A 86-F7 01 C1 E0-04 95 BF C0 ................
16A5:0120 FF E3 04 E2-05 B1 0A 83-C7 50 60 BF-80 07 B1 0C .........P`.....
16A5:0130 B8 DB 08 8A-1E 1E 00 F3-AB BE 32 07-83 EF 68 B1 ..........2...h.
16A5:0140 0A B2 08 AB-A4 22 14 A4-E2 FA AB 74-04 83 C7 50 .....".....t...P
16A5:0150 43 83 EE 64-73 E6 BF 1C-00 88 D8 80-EB 3A 72 07 C..ds........:r.
16A5:0160 FE 05 80 0D-30 88 D8 AF-0C 30 AA 61-B4 01 CD 16 ....0....0.a....
16A5:0170 74 0A B4 00-CD 16 88 E0-3C 01 74 58-57 3C 4D 75 t.......<.tXW<Mu
16A5:0180 01 AF 3C 4B-75 02 4F 4F-55 3C 48 74-55 3C 50 75 ..<Ku.OOU<HtU<Pu
16A5:0190 02 31 C9 99-E8 20 00 75-41 5A 5A BA-DA 03 89 D8 .1... .uAZZ.....
16A5:01A0 E8 14 00 74-03 E9 61 FF-51 B1 06 EC-A8 08 74 FB ...t..a.Q.....t.
16A5:01B0 E2 F9 91 59-68 21 01 60-B1 10 F6 C1-03 75 03 83 ...Yh!.`.....u..
16A5:01C0 C7 48 D1 C5-73 11 08 D2-74 0B AB 0A-75 4E E2 EA .H..s...t...uN..
16A5:01D0 F6 C6 08 61-C3 0A 35 AF-EB F4 5D 5F-83 FF C0 75 ...a..5...]_...u
16A5:01E0 BA C3 51 B1-10 B8 11 11-C1 C5 04 D1-D0 73 02 D1 ..Q..........s..
16A5:01F0 CD E2 F5 95-59 EB 9C 0F-74 36 72 63-71 33 0F 00 ....Y...t6rcq3..
--
Bah, and indeed Humbug.
Kerr-Mudd, John
2021-12-14 10:25:17 UTC
Permalink
On Sat, 4 Dec 2021 20:44:01 +0000
Post by Kerr-Mudd, John
On Sat, 4 Dec 2021 16:01:25 +0000
Post by Kerr-Mudd, John
On Sat, 4 Dec 2021 14:08:42 +0000
On Sun, 21 Nov 2021 13:50:31 +0000
Post by Kerr-Mudd, John
I've been looking at small tetris games; doable in <256 bytes; I'm
at 241 (219 with a different look), I'll look at adding "drop" and
maybe scoring.
Dropping & scoring (up to 9!) added. still 17 bytes spare!
There's also a(n unavoidable?) bigjumpback in there that wastes 3.
If I could only make the keyin rtn shorter.
[]
Sorry if it wraps: here's one where you can max out the score at 99!
(but only 1 byte left)
[I've copied in dos programmer]
/msdos/
More robust version (doesn't rely on ax=0, ch=0 at start, or trailing 0)

-> d 100 l100
162E:0100 B8 01 00 89-C1 CD 10 68-00 B8 07 06-1F E4 40 83 ***@.
162E:0110 E0 07 BB 08-08 08 C7 95-8B AE F5 01-81 E5 F0 0F ................
162E:0120 41 BF C0 FF-E3 04 E2 05-B1 0A 83 C7-50 60 BF 80 A...........P`..
162E:0130 07 B1 0C B8-DB 08 F3 AB-BE 32 07 8A-16 1E 00 83 .........2......
162E:0140 EF 68 B1 0A-B6 08 AB A4-22 34 A4 E2-FA AB 74 04 .h......"4....t.
162E:0150 83 C7 50 42-83 EE 64 73-E6 BF 1C 00-92 3C 3A 72 ..PB..ds.....<:r
162E:0160 07 2C 0A FE-05 80 0D 30-AF 0C 30 AA-61 B4 01 CD .,.....0..0.a...
162E:0170 16 74 09 98-CD 16 88 E0-3C 01 74 57-57 3C 4D 75 .t......<.tWW<Mu
162E:0180 01 AF 3C 4B-75 02 4F 4F-55 3C 48 74-4C 3C 50 75 ..<Ku.OOU<HtL<Pu
162E:0190 02 31 C9 99-89 D8 E8 1E-00 75 53 5A-5A BA DA 03 .1.......uSZZ...
162E:01A0 E8 14 00 74-03 E9 65 FF-51 B1 06 EC-A8 08 74 FB ...t..e.Q.....t.
162E:01B0 E2 F9 91 59-68 24 01 60-B1 10 F6 C1-03 75 03 83 ...Yh$.`.....u..
162E:01C0 C7 48 D1 C5-73 10 08 D2-74 0A AB 0A-75 4E E2 EA .H..s...t...uN..
162E:01D0 84 C6 61 C3-0A 35 AF EB-F5 51 B1 10-B8 11 11 C1 ..a..5...Q......
162E:01E0 C5 04 D1 D0-73 02 D1 CD-E2 F5 95 59-EB A5 5D 5F ....s......Y..]_
162E:01F0 83 FF C0 75-A8 C3 66 36-16 27 47 F7-F0 00 00 00 ...u..f6.'G.....
Post by Kerr-Mudd, John
--
Bah, and indeed Humbug.
--
Bah, and indeed Humbug.
Kerr-Mudd, John
2023-05-19 17:18:18 UTC
Permalink
On Tue, 14 Dec 2021 10:25:17 +0000
Post by Kerr-Mudd, John
On Sat, 4 Dec 2021 20:44:01 +0000
Post by Kerr-Mudd, John
On Sat, 4 Dec 2021 16:01:25 +0000
Post by Kerr-Mudd, John
On Sat, 4 Dec 2021 14:08:42 +0000
On Sun, 21 Nov 2021 13:50:31 +0000
Post by Kerr-Mudd, John
I've been looking at small tetris games; doable in <256 bytes; I'm
at 241 (219 with a different look), I'll look at adding "drop" and
maybe scoring.
Dropping & scoring (up to 9!) added. still 17 bytes spare!
There's also a(n unavoidable?) bigjumpback in there that wastes 3.
If I could only make the keyin rtn shorter.
[]
Sorry if it wraps: here's one where you can max out the score at 99!
(but only 1 byte left)
[I've copied in dos programmer]
/msdos/
Revisited: now a pure 8086 version (previous ones require 186 for push
value; rol reg,num; and pusha/popa)

255 bytes: still 1 long jmp and 4 lots of push pop cx, so maybe a few bytes
still to squeeze out. Oh, scoring is now unrestricted. No sounds or
speedup, just std play with csr keys (and Esc)

-> d 100 l100
1632:0100 40 CD 10 B7-B8 53 07 06-1F E4 40 83-E0 07 BB 08 @***@.....
1632:0110 08 08 C7 95-8B AE F6 01-81 E5 F0 0F-41 BF DC FF ............A...
1632:0120 E3 04 E2 05-B1 0A 83 C7-50 57 55 51-57 BF 9C 07 ........PWUQW...
1632:0130 B1 0C B8 DB-08 F3 AB BE-4E 07 83 EF-68 B1 0A B6 ........N...h...
1632:0140 08 AB A4 22-34 A4 E2 FA-AB 74 19 83-C7 50 53 50 ..."4....t...PSP
1632:0150 BB 42 00 4B-4B B0 30 86-07 0C 10 3C-39 74 F4 40 .B.KK.0....<9t.@
1632:0160 88 07 58 5B-83 EE 64 73-D1 5F 59 B4-01 CD 16 74 ..X[..ds._Y....t
1632:0170 33 98 CD 16-88 E0 3C 01-74 6D 3C 50-75 02 31 C9 3.....<.tm<Pu.1.
1632:0180 3C 4D 75 01-AF 3C 4B 75-02 4F 4F 3C-48 75 15 51 <Mu..<Ku.OO<Hu.Q
1632:0190 B9 04 10 B8-11 11 D3 C5-D1 D0 73 02-D1 CD FE CD ..........s.....
1632:01A0 75 F4 95 59-99 89 D8 E8-1F 00 75 43-5A 5A BA DA u..Y......uCZZ..
1632:01B0 03 E8 15 00-74 03 E9 50-FF 51 B1 06-EC A8 08 74 ....t..P.Q.....t
1632:01C0 FB E2 F9 91-59 BE 20 01-56 51 52 57-B1 10 F6 C1 ....Y. .VQRW....
1632:01D0 03 75 03 83-C7 48 D1 C5-73 12 08 D2-74 0C AB 0A .u...H..s...t...
1632:01E0 75 4E E2 EA-84 C6 5F 5A-59 C3 0A 35-AF EB F3 5D uN...._ZY..5...]
1632:01F0 5F 83 FF DC-75 B8 C3 2C-37 16 F7 40-F7 60 03 00 _...u..,***@.`..
--
Bah, and indeed Humbug.
Loading...