DOS 3.30 source code leak
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.

90 lines
2.3 KiB

5 years ago
  1. TITLE SORT Messages
  2. false equ 0
  3. true equ not false
  4. msver equ true
  5. ibm equ false
  6. internat equ true
  7. ;include version.inc
  8. msg Macro lbl,msg
  9. local a
  10. public lbl,lbl&len
  11. lbl&len dw a - lbl
  12. lbl db msg
  13. a label byte
  14. endm
  15. CONST SEGMENT PUBLIC BYTE
  16. PUBLIC BADVER
  17. include messages.inc
  18. if internat
  19. public table
  20. ;This table defibes the coalating sequence to be used for
  21. ;international characters. This table also equates
  22. ;lower case character to upper case unlike a straight ASCII sort.
  23. ;If your character set is like the IBM PC simply turn
  24. ;on the IBM conditional. If it is different simply modify the
  25. ;table appropriately. Note: to insert a foreign language character
  26. ;between two ASCII characters it will be necessary to
  27. ;"shift" all the ASCII characters to make room for a new character.
  28. ;If this is done be sure to equate the foreign characters to the new
  29. ;values instead of the old values which have been set here to the
  30. ;upper case ASCII values.
  31. table db 0,1,2,3,4,5,6,7
  32. db 8,9,10,11,12,13,14,15
  33. db 16,17,18,19,20,21,22,23
  34. db 24,25,26,27,28,29,30,31
  35. db " ","!",'"',"#","$","%","&","'"
  36. db "(",")","*","+",",","-",".","/"
  37. db "0","1","2","3","4","5","6","7"
  38. db "8","9",":",";","<","=",">","?"
  39. db "@","A","B","C","D","E","F","G"
  40. db "H","I","J","K","L","M","N","O"
  41. db "P","Q","R","S","T","U","V","W"
  42. db "X","Y","Z","[","\","]","^","_"
  43. db "`","A","B","C","D","E","F","G"
  44. db "H","I","J","K","L","M","N","O"
  45. db "P","Q","R","S","T","U","V","W"
  46. db "X","Y","Z","{","|","}","~",127
  47. if msver
  48. db 128,129,130,131,132,133,134,135
  49. db 136,137,138,139,140,141,142,143
  50. db 144,145,146,147,148,149,150,151
  51. db 152,153,154,155,156,157,158,159
  52. db 160,161,162,163,164,165,166,167
  53. db 168,169,170,171,172,173,174,175
  54. endif
  55. if ibm
  56. db "C","U","E","A","A","A","A","C"
  57. db "E","E","E","I","I","I","A","A"
  58. db "E","A","A","O","O","O","U","U"
  59. db "Y","O","U","$","$","$","$","$"
  60. db "A","I","O","U","N","N",166,167
  61. db "?",169,170,171,172,"!",'"','"'
  62. endif
  63. db 176,177,178,179,180,181,182,183
  64. db 184,185,186,187,188,189,190,191
  65. db 192,193,194,195,196,197,198,199
  66. db 200,201,202,203,204,205,206,207
  67. db 208,209,210,211,212,213,214,215
  68. db 216,217,218,219,220,221,222,223
  69. if ibm
  70. db 224,"S"
  71. endif
  72. if msver
  73. db 224,225
  74. endif
  75. db 226,227,228,229,230,231
  76. db 232,233,234,235,236,237,238,239
  77. db 240,241,242,243,244,245,246,247
  78. db 248,249,250,251,252,253,254,255
  79. endif
  80. CONST ENDS
  81. END
  82.