home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.asm.x86      Ahh, the lost art of x86 assembly      4,675 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,431 of 4,675   
   Terje Mathisen to John   
   Re: Small Tetris   
   13 Dec 21 15:36:25   
   
   From: terje.mathisen@nospicedham.tmsw.no   
      
   Kerr-Mudd, John wrote:   
   > On Sun, 12 Dec 2021 11:58:23 -0800 (PST)   
   > Jim Leonard  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"  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 l100   
   > 162E: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   
      
   --   
   -    
   "almost all programming can be viewed as an exercise in caching"   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca