Subversion Repositories Kolibri OS

Rev

Rev 5305 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ; $$$$$$$$$$$$$$$$$$$ ABAKIS $$$$$$$$$$$$$$$$$$$$$
  2. ; ************** STAR^2 SOFTWARE *****************
  3. ; ????????????????????????????????????????????????
  4.  
  5. ; true portability: windows + kolibri
  6.  
  7. ; define cpu intel windows
  8.  define cpu intel kolibri
  9. ; define cpu arm mobile
  10.  
  11. ; current directory. optional '/usbhd0/1'
  12. ; prefix to assemble+run from SD in kolibri
  13.  
  14.  CD fix ''
  15. ; CD fix '/usbhd0/1/'
  16.  
  17. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  18.  
  19. MAIN.ICON fix ''
  20.  
  21. SCREEN.W   = WINDOW.W ; 1024
  22. SCREEN.H   = WINDOW.H ; 768-32
  23. SCREEN.BPP = 32
  24. SCREEN.PI  = SCREEN.W*(SCREEN.BPP/8)
  25.  
  26. match x =windows, cpu {
  27.  format PE GUI 4.0
  28.  entry !main
  29.  stack 8*KB
  30.  heap 16*KB
  31.  include CD#'/include/a.inc'
  32.  WINDOW.X=0
  33.  WINDOW.Y=0
  34. }
  35.  
  36. match x =kolibri, cpu {
  37.  format binary as ""
  38.  use32
  39.  org 0
  40.  db 'MENUET01'
  41.  dd 1, !main, end.code,\
  42.   4*MB, 32*KB, 0, 0
  43.  postpone \{ end.code: \}
  44.  include CD#'include/a.inc'
  45.  WINDOW.X=(1024/2)-(WINDOW.W/2)
  46.  WINDOW.Y=(768/2)-(WINDOW.H/2)
  47. }