Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.0 KiB

  1. ftoobig equ 80h
  2. fbig equ 40h
  3. romstatus equ 1
  4. romread equ 2
  5. romwrite equ 3
  6. romverify equ 4
  7. romformat equ 5
  8. rsinit = 0a3h ;rs232 initialization
  9. ;9600 baud:no parity:1 stop:8 bit word
  10. lf = 10 ;line feed
  11. cr = 13 ;carriage return
  12. backsp = 8 ;backspace
  13. brkadr = 1bh * 4 ;006c 1bh break vector address
  14. timadr = 1ch * 4 ;0070 1ch timer interrupt
  15. dskadr = 1eh * 4 ;address of ptr to disk parameters
  16. sec9 = 522h ;address of disk parameters
  17. headsettle= sec9+9 ;address of head settle time
  18. normsettle= 15 ;normal head settle
  19. speedsettle= 0 ;speed up settle time
  20. initspot= 534h ;ibm wants 4 zeros here
  21. akport = 20h
  22. eoi = 20h
  23. cmdlen = 0 ;length of this command
  24. unit = 1 ;sub unit specifier
  25. cmd = 2 ;command code
  26. status = 3 ;status
  27. media = 13 ;media descriptor
  28. trans = 14 ;transfer address
  29. count = 18 ;count of blocks or characters
  30. start = 20 ;first block to transfer
  31. extra = 22 ;usually a pointer to vol id for error 15
  32. start_l = 26 ; extended start sector (low)
  33. start_h = 28 ; extended start sector (high)
  34. chrout = 29h
  35. maxerr = 5
  36. lstdrv = 504h
  37. bootbias = 200h
  38. notbusystatus = 10000000b ; not busy
  39. ackstatus = 01000000b ; acknowledge (for what?)
  40. nopaperstatus = 00100000b ; no more paper
  41. .selectedstatus = 00010000b ; the printer said it was selected
  42. ioerrstatus = 00001000b ; some kinda error
  43. reserved = 00000110b ; nops
  44. timeoutstatus = 00000001b ; time out.
  45. error_unknown_media = 7 ; for use in build bpb call
  46. DOS_FLAG_OFFSET equ 86h ; offset of DOS_FLAG var in dos data seg