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.
d 100 l10016A5: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 ................
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 l10016A5: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..
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!/msdos/
(but only 1 byte left)
[I've copied in dos programmer]
d 100 l10016A5: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..
On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <ad...@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.
On Saturday, December 4, 2021 at 8:20:06 AM UTC-6, Kerr-Mudd, John wrote:
On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <ad...@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.
It would be more interesting, and less mangled, for you to post the .asm source instead of a binary hex dump.
u 100 l100162E:0100 40 inc ax
On Sun, 12 Dec 2021 11:58:23 -0800 (PST)
Jim Leonard <mobygamer@nospicedham.gmail.com> wrote:
On Saturday, December 4, 2021 at 8:20:06 AM UTC-6, Kerr-Mudd, John wrote: >>> On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <ad...@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.
It would be more interesting, and less mangled, for you to post the .asm source instead of a binary hex dump.
Where's the fun in that?
OK you can have a 'u' debug dump for a bit of clarity.
I've improved it slightly; I have 7 spare bytes now, so this doesn't match the previous hexdump.
Note the cunning use of /movsb/ to move through the lines; often copying in place!
also that /bright/=blockchar (8)
; assumes ax=0 ,ss=ds on entry, also that int 10 puts spaces (0x20) to screen area
u 100 l100162E:0100 40 inc ax
162E:0101 CD 10 int 10
162E:01EF 75 A8 jnz 0199
162E:01F1 C3 ret
162E:01F2 66 36 16 ss:push ss
162E:01F5 27 daa
162E:01F6 47 inc di
162E:01F7 F7 F0 div ax
Those last 8 bytes (yes, including the ret!) encode the tetris shape data
Kerr-Mudd, John wrote:
On Sun, 12 Dec 2021 11:58:23 -0800 (PST)
Jim Leonard <mobygamer@nospicedham.gmail.com> wrote:
On Saturday, December 4, 2021 at 8:20:06 AM UTC-6, Kerr-Mudd, John wrote: >>> On Sun, 21 Nov 2021 13:50:31 +0000
"Kerr-Mudd, John" <ad...@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.
It would be more interesting, and less mangled, for you to post the .asm source instead of a binary hex dump.
Where's the fun in that?
OK you can have a 'u' debug dump for a bit of clarity.
I've improved it slightly; I have 7 spare bytes now, so this doesn't match the previous hexdump.
Note the cunning use of /movsb/ to move through the lines; often copying in place!
also that /bright/=blockchar (8)
; assumes ax=0 ,ss=ds on entry, also that int 10 puts spaces (0x20) to screen area
u 100 l100162E:0100 40 inc ax
162E:0101 CD 10 int 10
[snip]
162E:01EF 75 A8 jnz 0199
162E:01F1 C3 ret
162E:01F2 66 36 16 ss:push ss
162E:01F5 27 daa
162E:01F6 47 inc di
162E:01F7 F7 F0 div ax
Those last 8 bytes (yes, including the ret!) encode the tetris shape data
That's very impressive John!
Terje
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 l100162E: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.
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/
d 100 l1001632:0100 40 CD 10 B7-B8 53 07 06-1F E4 40 83-E0 07 BB 08 @....S....@..... 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..,7..@.`..
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 76:17:13 |
Calls: | 6,489 |
Files: | 12,096 |
Messages: | 5,276,214 |