Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Bus error -- please leave by the rear door.


programming / alt.lang.asm / Re: Small Tetris

SubjectAuthor
* Small TetrisKerr-Mudd, John
`* Re: Small TetrisKerr-Mudd, John
 `* Re: Small TetrisKerr-Mudd, John
  `* Re: Small TetrisKerr-Mudd, John
   `- Re: Small TetrisKerr-Mudd, John

1
Subject: Small Tetris
From: Kerr-Mudd, John
Newsgroups: alt.lang.asm, comp.lang.asm.x86
Organization: Dis
Date: Sun, 21 Nov 2021 13:50 UTC
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86
Subject: Small Tetris
Date: Sun, 21 Nov 2021 13:50:31 +0000
Organization: Dis
Lines: 9
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20211121135031.93ec8b03d30970ef0c90c976@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="28a0bed3b091f0ef7ea58e4b5f34a56c";
logging-data="16237"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KH7sYQ/pTbv7UuX3tRBO4+4tVxhbOfqg="
Cancel-Lock: sha1:GPBXlGxwfWw+Gl8F+oKpUf1ZyGw=
View all headers

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.



Subject: Re: Small Tetris
From: Kerr-Mudd, John
Newsgroups: alt.lang.asm, comp.lang.asm.x86
Organization: Dis
Date: Sat, 4 Dec 2021 14:08 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86
Subject: Re: Small Tetris
Date: Sat, 4 Dec 2021 14:08:42 +0000
Organization: Dis
Lines: 34
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20211204140842.304b5e3512e1e8ef81960a3c@127.0.0.1>
References: <20211121135031.93ec8b03d30970ef0c90c976@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="3a8649aeac2403b3bca7c1c87e7df227";
logging-data="25458"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R6C9CYvJ67PYMkCs47t5rKlVNcv8Bu+c="
Cancel-Lock: sha1:jNTH/u2y5h4IDwRj2Y7tp1QGnvE=
View all headers
On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:


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.

->           d 100 l100
16A5:0100 40 CD 10 68-00 B8 07 06-1F 41 E4 40-83 E0 07 BB  @..h.....A.@....
16A5:0110 08 08 08 C7-89 C5 8A 86-E7 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 F3-AB BE 32 07-83 EF 68 B1-0A B2 08 AB  ......2...h.....
16A5:0140 A4 22 14 A4-E2 FA AB 74-07 83 C7 50-FE 06 1A 00  .".....t...P....
16A5:0150 83 EE 64 73-E3 B0 30 08-06 1A 00 61-B4 01 CD 16  ..ds..0....a....
16A5:0160 74 0A B4 00-CD 16 88 E0-3C 01 74 58-57 3C 4D 75  t.......<.tXW<Mu
16A5:0170 01 AF 3C 4B-75 02 4F 4F-55 3C 48 74-55 3C 50 75  ..<Ku.OOU<HtU<Pu
16A5:0180 02 31 C9 99-E8 20 00 75-41 5A 5A BA-DA 03 89 D8  .1... .uAZZ.....
16A5:0190 E8 14 00 74-03 E9 71 FF-51 B1 06 EC-A8 08 74 FB  ...t..q.Q.....t.
16A5:01A0 E2 F9 91 59-68 21 01 60-B1 10 F6 C1-03 75 03 83  ...Yh!.`.....u..
16A5:01B0 C7 48 D1 C5-73 11 08 D2-74 0B AB 0A-75 4E E2 EA  .H..s...t...uN..
16A5:01C0 F6 C6 08 61-C3 0A 35 AF-EB F4 5D 5F-83 FF C0 75  ...a..5...]_...u
16A5:01D0 BA C3 51 B1-10 B8 11 11-C1 C5 04 D1-D0 73 02 D1  ..Q..........s..
16A5:01E0 CD E2 F5 95-59 EB 9C 0F-74 36 72 63-71 33 0F 00  ....Y...t6rcq3..
16A5:01F0 00 00 00 00-00 00 00 00-00 00 00 00-00 00 00 00  ................


--
Bah, and indeed Humbug.



Subject: Re: Small Tetris
From: Kerr-Mudd, John
Newsgroups: alt.lang.asm, comp.lang.asm.x86, comp.os.dos.programmer
Organization: Dis
Date: Sat, 4 Dec 2021 16:01 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86,comp.os.dos.programmer
Subject: Re: Small Tetris
Date: Sat, 4 Dec 2021 16:01:25 +0000
Organization: Dis
Lines: 48
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20211204160125.4dc4a656f7ee07f504714c04@127.0.0.1>
References: <20211121135031.93ec8b03d30970ef0c90c976@127.0.0.1>
<20211204140842.304b5e3512e1e8ef81960a3c@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="3a8649aeac2403b3bca7c1c87e7df227";
logging-data="12225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qQRUUrPQE0C5enWE4N8RonJNjRk0nugg="
Cancel-Lock: sha1:fHJsd38jl27gtZI/qcHNJkRujKA=
View all headers
On Sat, 4 Dec 2021 14:08:42 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:


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  @..h.....A.@....
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.



Subject: Re: Small Tetris
From: Kerr-Mudd, John
Newsgroups: alt.lang.asm, comp.lang.asm.x86, comp.os.msdos.programmer
Organization: Dis
Date: Sat, 4 Dec 2021 20:44 UTC
References: 1 2 3
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86,comp.os.msdos.programmer
Subject: Re: Small Tetris
Date: Sat, 4 Dec 2021 20:44:01 +0000
Organization: Dis
Lines: 49
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20211204204401.dce2c6b0cf26294f3d89dbf7@127.0.0.1>
References: <20211121135031.93ec8b03d30970ef0c90c976@127.0.0.1>
<20211204140842.304b5e3512e1e8ef81960a3c@127.0.0.1>
<20211204160125.4dc4a656f7ee07f504714c04@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="3a8649aeac2403b3bca7c1c87e7df227";
logging-data="13581"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xCgSe/PEERNaXxcj5rhBi3EZWvGnUKWc="
Cancel-Lock: sha1:Zoq09T8ISDB1KGsbrD9Vc71eGOo=
View all headers
On Sat, 4 Dec 2021 16:01:25 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sat, 4 Dec 2021 14:08:42 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:


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/

->           d 100 l100
16A5:0100 40 CD 10 68-00 B8 07 06-1F 41 E4 40-83 E0 07 BB  @..h.....A.@....
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.



Subject: Re: Small Tetris
From: Kerr-Mudd, John
Newsgroups: alt.lang.asm, comp.lang.asm.x86, comp.os.msdos.programmer
Organization: Dis
Date: Tue, 14 Dec 2021 10:25 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@nospicedham.127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.lang.asm,comp.lang.asm.x86,comp.os.msdos.programmer
Subject: Re: Small Tetris
Date: Tue, 14 Dec 2021 10:25:17 +0000
Organization: Dis
Lines: 60
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <20211214102517.e17f51e21b0fadadcf95a829@127.0.0.1>
References: <20211121135031.93ec8b03d30970ef0c90c976@127.0.0.1>
<20211204140842.304b5e3512e1e8ef81960a3c@127.0.0.1>
<20211204160125.4dc4a656f7ee07f504714c04@127.0.0.1>
<20211204204401.dce2c6b0cf26294f3d89dbf7@127.0.0.1>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="2538d382b957e8dfb4797aaeae8d33b0";
logging-data="23992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BzIlQiYrdvXwpDNRwUbhr1wtpnDrFw4s="
Cancel-Lock: sha1:Ymh5QEDbjRuiYnG8+AmvWjuK88A=
View all headers
On Sat, 4 Dec 2021 20:44:01 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sat, 4 Dec 2021 16:01:25 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sat, 4 Dec 2021 14:08:42 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:

On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <admin@nospicedham.127.0.0.1> wrote:


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


--
Bah, and indeed Humbug.



--
Bah, and indeed Humbug.



1
rocksolid light 0.7.2
clearneti2ptor