[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] from Python+Pygame to C+SDL, Any experiences?



On Thursday, Mar 20, 2003, at 23:22 America/New_York, theGREENzebra wrote:

Is DOS faster because of direct hardware? Games run smooth for Linux, too.
Or is Pygame not suitable?
>Back in the good old days of mode 13 and mode X!!!

Procedure Pixel    ( X, Y, Z: Integer );    Near; Assembler;
  Asm
    Mov  ax     , $A000
    Mov  es     , ax
    Mov  bx     , 320
    Mov  ax     , Y
    Mul  bx
    Add  ax     , X
    Mov  si     , ax
    Mov  ax     , Z
    Mov  es:[si], al
  End;
Even better, use the shift trick to multiply, (y<<6 + y<<8) == y * 320