Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.  
  2.     use32
  3.     org     0x0
  4.  
  5.     db      'MENUET01'     ; 8 byte id
  6.     dd      0x01           ; header version
  7.     dd      START          ; start of code
  8.     dd      I_END          ; size of image
  9.     dd      0x10000        ; memory for app
  10.     dd      0x10000        ; esp
  11.     dd      param_area     ; I_Param
  12.     dd      app_path       ; I_Path
  13.  
  14. include 'shell.inc'
  15. START:                     ; start of execution
  16.  
  17.  call _sc_init
  18.  
  19.  push dword s
  20.  call _sc_gets
  21.  
  22.  push dword s
  23.  call _sc_puts
  24.  
  25.  call _sc_exit
  26.  
  27.  mov eax, -1
  28.  int 0x40
  29.  
  30.  
  31. I_END:
  32.  
  33. param_area      rb  256
  34. app_path        rb  256
  35. s rb 256
  36.  
  37.