• DOS Columns Game in <256 bytes

    From Kerr-Mudd, John@admin@nospicedham.127.0.0.1 to comp.lang.asm.x86,alt.lang.asm,comp.os.msdos.programmer on Mon Sep 25 18:59:46 2023
    From Newsgroup: alt.lang.asm

    DOS Columns Game in <256 bytes
    Based on Sensenstahl's u(expletive) columns, the" https://www.pouet.net/prod.php?which=88444
    but with fixed sides, cursor controls and scoring.
    Keys are Esc - Exit; Cursor Left/Right to move the stick erm Left or Right, with Cursor Up Down or Spacebar to rotate the colours.
    (All keys perform one of these actions, you might find some other
    combination is more suitable).

    Scoring is 3 points for each line of 3 matching coloured blocks
    (so 4 in a line scores 6!)
    Uses DOS int 10 to set screen mode to 40 columns, int 16 for Inkey.
    Assumes ax=bl=ch=0 at start.
    d 100 lF9
    16AF:0100 BD 50 00 40-CD 10 B7 B8-8E DB BF D0-07 88 27 88 .P.@..........'. 16AF:0110 01 4B 75 F9-B8 20 70 89-45 CE 89 45-E2 29 EF 75 .Ku.. p.E..E.).u 16AF:0120 F6 42 BF D0-07 38 2D 7D-38 8B 05 BE-04 00 2E 8A .B...8-}8....... 16AF:0130 9C F4 01 57-B1 02 01 DF-38 65 01 75-20 E2 F7 B1 ...W....8e.u ... 16AF:0140 03 88 2D 56-BE D0 07 4E-4E B8 30 0A-87 04 0C 30 ..-V...NN.0....0 16AF:0150 40 3C 3A 74-F2 88 04 5E-29 DF E2 E5-99 5F 4E 75 @<:t...^)...._Nu 16AF:0160 CD 4F 4F 75-C0 BB D0 07-8B 07 89 DE-3E 38 2A 75 .OOu........>8*u 16AF:0170 0E 89 3C 01-EE 89 04 EB-F3 83 FE D8-75 A3 C3 4B ..<.........u..K 16AF:0180 4B 75 E5 09-D2 74 9A BF-D8 FF B3 F0-E4 40 F7 E0 Ku...t.......@.. 16AF:0190 25 D0 07 0D-DB 08 89 01-29 EB 75 F0-89 FE B1 0D %.......).u..... 16AF:01A0 BA DA 03 EC-A8 08 74 FB-EC A8 08 75-FB E2 F4 39 ......t....u...9 16AF:01B0 8C 40 01 75-C4 8D 3A B3-F0 B4 01 CD-16 89 C8 74 .@.u..:........t 16AF:01C0 08 CD 16 3C-1B 74 B7 88-E0 98 48 78-0E 40 24 06 ...<.t....Hx.@$. 16AF:01D0 74 09 7A F3-83 E8 03 D1-E0 01 C7 38-29 75 D0 09 t.z........8)u.. 16AF:01E0 C0 74 0C 31-C0 87 00 89-01 29 EB 75-F6 EB AD 87 .t.1.....).u.... 16AF:01F0 05-89 01 EB A7-02 4E 50 52 ......NPR
    q
    xposted to
    comp.lang.asm.x86,alt.lang.asm,comp.os.msdos.programmer
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From wolfgang kern@nowhere@never.at to alt.lang.asm on Tue Sep 26 13:22:13 2023
    From Newsgroup: alt.lang.asm

    I removed other groups.

    On 25/09/2023 19:59, Kerr-Mudd, John wrote:
    DOS Columns Game in <256 bytes


    Based on Sensenstahl's -u(expletive) columns, the" https://www.pouet.net/prod.php?which=88444

    but with fixed sides, cursor controls and scoring.

    Keys are Esc - Exit; Cursor Left/Right to move the stick erm Left or Right, with Cursor Up Down or Spacebar to rotate the colours.
    (All keys perform one of these actions, you might find some other
    combination is more suitable).

    Scoring is 3 points for each line of 3 matching coloured blocks
    (so 4 in a line scores 6!)

    Uses DOS int 10 to set screen mode to 40 columns, int 16 for Inkey.
    Assumes ax=bl=ch=0 at start.

    JFI: these aren't DOS INTs :)
    10 is in Graphic-BIOS, 16 in ROM-BIOS.
    but I think that DOS hooks both and intercept to do DOS variables.

    d 100 lF9
    16AF:0100 BD 50 00 40-CD 10 B7 B8-8E DB BF D0-07 88 27 88 .P.@..........'. 16AF:0110 01 4B 75 F9-B8 20 70 89-45 CE 89 45-E2 29 EF 75 .Ku.. p.E..E.).u 16AF:0120 F6 42 BF D0-07 38 2D 7D-38 8B 05 BE-04 00 2E 8A .B...8-}8....... 16AF:0130 9C F4 01 57-B1 02 01 DF-38 65 01 75-20 E2 F7 B1 ...W....8e.u ... 16AF:0140 03 88 2D 56-BE D0 07 4E-4E B8 30 0A-87 04 0C 30 ..-V...NN.0....0 16AF:0150 40 3C 3A 74-F2 88 04 5E-29 DF E2 E5-99 5F 4E 75 @<:t...^)...._Nu 16AF:0160 CD 4F 4F 75-C0 BB D0 07-8B 07 89 DE-3E 38 2A 75 .OOu........>8*u 16AF:0170 0E 89 3C 01-EE 89 04 EB-F3 83 FE D8-75 A3 C3 4B ..<.........u..K 16AF:0180 4B 75 E5 09-D2 74 9A BF-D8 FF B3 F0-E4 40 F7 E0 Ku...t.......@.. 16AF:0190 25 D0 07 0D-DB 08 89 01-29 EB 75 F0-89 FE B1 0D %.......).u..... 16AF:01A0 BA DA 03 EC-A8 08 74 FB-EC A8 08 75-FB E2 F4 39 ......t....u...9 16AF:01B0 8C 40 01 75-C4 8D 3A B3-F0 B4 01 CD-16 89 C8 74 .@.u..:........t 16AF:01C0 08 CD 16 3C-1B 74 B7 88-E0 98 48 78-0E 40 24 06 ...<.t....Hx.@$. 16AF:01D0 74 09 7A F3-83 E8 03 D1-E0 01 C7 38-29 75 D0 09 t.z........8)u.. 16AF:01E0 C0 74 0C 31-C0 87 00 89-01 29 EB 75-F6 EB AD 87 .t.1.....).u.... 16AF:01F0 05-89 01 EB A7-02 4E 50 52 ......NPR
    q

    hard to see now how it works with only one mad eye :)
    __
    wolfgang (I changed email and net-provider recently)
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm on Tue Sep 26 21:37:10 2023
    From Newsgroup: alt.lang.asm

    On Tue, 26 Sep 2023 13:22:13 +0200
    wolfgang kern <nowhere@never.at> wrote:

    I removed other groups.

    On 25/09/2023 19:59, Kerr-Mudd, John wrote:
    DOS Columns Game in <256 bytes


    Uses DOS int 10 to set screen mode to 40 columns, int 16 for Inkey.
    Assumes ax=bl=ch=0 at start.

    JFI: these aren't DOS INTs :)

    Yes they are BIOS INTs. I got it wrong.

    10 is in Graphic-BIOS, 16 in ROM-BIOS.
    but I think that DOS hooks both and intercept to do DOS variables.

    []

    hard to see now how it works with only one mad eye :)

    At least you can still read Usenet.

    __
    wolfgang (I changed email and net-provider recently)

    (but didn't correct your sig separator)
    --
    Bah, and indeed Humbug.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Kerr-Mudd, John@admin@127.0.0.1 to alt.lang.asm on Sat Sep 30 16:28:43 2023
    From Newsgroup: alt.lang.asm

    On Tue, 26 Sep 2023 21:37:10 +0100
    "Kerr-Mudd, John" <admin@127.0.0.1> wrote:

    On Tue, 26 Sep 2023 13:22:13 +0200
    wolfgang kern <nowhere@never.at> wrote:

    I removed other groups.

    On 25/09/2023 19:59, Kerr-Mudd, John wrote:
    DOS Columns Game in <256 bytes


    Uses DOS int 10 to set screen mode to 40 columns, int 16 for Inkey. Assumes ax=bl=ch=0 at start.

    JFI: these aren't DOS INTs :)

    Yes they are BIOS INTs. I got it wrong.

    10 is in Graphic-BIOS, 16 in ROM-BIOS.
    but I think that DOS hooks both and intercept to do DOS variables.

    []

    hard to see now how it works with only one mad eye :)


    https://en.wikipedia.org/wiki/Columns_(game)


    At least you can still read Usenet.
    []

    --
    Bah, and indeed Humbug.
    --
    Bah, and indeed Humbug.
    --- Synchronet 3.21d-Linux NewsLink 1.2