Subversion Repositories Kolibri OS

Rev

Rev 485 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;----------------------------------------------------------
  2. ;--------change size of memory which use program-----------
  3. ;----------------------------------------------------------
  4. GetMemory:
  5.          pushad
  6.          mov eax,64
  7.          mov ebx,1
  8.          mov ecx,[Picture_SizeX]
  9.          mov edx,[Picture_SizeY]
  10.          imul ecx,edx
  11.          lea ecx,[ecx+ecx*2]
  12.          lea ecx,[ecx+ecx*4]            ;(Picture_SizeX*Picture_SizeY*3)*5
  13.          add ecx,[ScreenPointer]
  14.          add ecx,(1200*1000)*3+50*(20*20*3)+500000+16000+0x4000
  15.          add ecx,[extended_memory]
  16.          int 0x40
  17.  
  18.          test eax,eax
  19.          jz have_new_memory
  20.  
  21.             mov esi,sound_havent_memory
  22.             call sound
  23.  
  24.             jmp still
  25.  
  26.          have_new_memory:
  27.          popad
  28.          ret
  29.