zemu 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. checksums.yaml +7 -0
  2. data/lib/zemu/config.rb +312 -0
  3. data/lib/zemu/instance.rb +179 -0
  4. data/lib/zemu.rb +172 -0
  5. data/src/debug.c +118 -0
  6. data/src/debug.h +30 -0
  7. data/src/external/Z/API/Z/ABIs/generic/allocator.h +36 -0
  8. data/src/external/Z/API/Z/ABIs/generic/cipher.h +47 -0
  9. data/src/external/Z/API/Z/ABIs/generic/data codec.h +33 -0
  10. data/src/external/Z/API/Z/ABIs/generic/emulation.h +103 -0
  11. data/src/external/Z/API/Z/ABIs/generic/hash function.h +33 -0
  12. data/src/external/Z/API/Z/ABIs/generic/module.h +33 -0
  13. data/src/external/Z/API/Z/ABIs/generic/wave codec.h +40 -0
  14. data/src/external/Z/API/Z/classes/base/InitializerList.hpp +34 -0
  15. data/src/external/Z/API/Z/classes/base/OpaqueFunctionPointer.hpp +26 -0
  16. data/src/external/Z/API/Z/classes/base/OpaqueMemberFunctionPointer.hpp +26 -0
  17. data/src/external/Z/API/Z/classes/base/Pair.hpp +46 -0
  18. data/src/external/Z/API/Z/classes/base/Range.hpp +111 -0
  19. data/src/external/Z/API/Z/classes/base/SizedString.hpp +66 -0
  20. data/src/external/Z/API/Z/classes/base/Status.hpp +89 -0
  21. data/src/external/Z/API/Z/classes/base/Symbol.hpp +39 -0
  22. data/src/external/Z/API/Z/classes/base/Tuple.hpp +111 -0
  23. data/src/external/Z/API/Z/classes/base/Value2D.hpp +389 -0
  24. data/src/external/Z/API/Z/classes/base/Value3D.hpp +368 -0
  25. data/src/external/Z/API/Z/classes/buffering/RingBuffer.hpp +93 -0
  26. data/src/external/Z/API/Z/classes/buffering/TripleBuffer.hpp +68 -0
  27. data/src/external/Z/API/Z/classes/functional/Functor.hpp +265 -0
  28. data/src/external/Z/API/Z/classes/functional/MemberFunction.hpp +98 -0
  29. data/src/external/Z/API/Z/classes/functional/ObjectMemberFunction.hpp +172 -0
  30. data/src/external/Z/API/Z/classes/functional/ObjectSelector.hpp +219 -0
  31. data/src/external/Z/API/Z/classes/functional/Selector.hpp +146 -0
  32. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/AABB.hpp +81 -0
  33. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/AABR.hpp +685 -0
  34. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Box.hpp +219 -0
  35. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Circle.hpp +80 -0
  36. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Line2D.hpp +93 -0
  37. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Line3D.hpp +80 -0
  38. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Rectangle.hpp +675 -0
  39. data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Sphere.hpp +0 -0
  40. data/src/external/Z/API/Z/classes/memory/Shared.hpp +90 -0
  41. data/src/external/Z/API/Z/constants/base.h +35 -0
  42. data/src/external/Z/API/Z/constants/chemical elements.h +6385 -0
  43. data/src/external/Z/API/Z/constants/numbers.h +963 -0
  44. data/src/external/Z/API/Z/constants/version.h +15 -0
  45. data/src/external/Z/API/Z/formats/character set/ASCII.h +158 -0
  46. data/src/external/Z/API/Z/formats/character set/DOS CP437.h +159 -0
  47. data/src/external/Z/API/Z/formats/character set/DOS CP737.h +159 -0
  48. data/src/external/Z/API/Z/formats/character set/DOS CP775.h +159 -0
  49. data/src/external/Z/API/Z/formats/character set/DOS CP850.h +159 -0
  50. data/src/external/Z/API/Z/formats/character set/DOS CP852.h +159 -0
  51. data/src/external/Z/API/Z/formats/character set/DOS CP855.h +159 -0
  52. data/src/external/Z/API/Z/formats/character set/DOS CP857.h +159 -0
  53. data/src/external/Z/API/Z/formats/character set/DOS CP858.h +159 -0
  54. data/src/external/Z/API/Z/formats/character set/DOS CP860.h +159 -0
  55. data/src/external/Z/API/Z/formats/character set/DOS CP861.h +159 -0
  56. data/src/external/Z/API/Z/formats/character set/DOS CP862.h +159 -0
  57. data/src/external/Z/API/Z/formats/character set/DOS CP863.h +159 -0
  58. data/src/external/Z/API/Z/formats/character set/DOS CP864.h +159 -0
  59. data/src/external/Z/API/Z/formats/character set/DOS CP865.h +159 -0
  60. data/src/external/Z/API/Z/formats/character set/DOS CP866.h +159 -0
  61. data/src/external/Z/API/Z/formats/character set/DOS CP869.h +159 -0
  62. data/src/external/Z/API/Z/formats/character set/DOS CP872.h +159 -0
  63. data/src/external/Z/API/Z/formats/character set/DOS CP874.h +159 -0
  64. data/src/external/Z/API/Z/formats/character set/Unicode.h +30119 -0
  65. data/src/external/Z/API/Z/formats/data model/I16LP32.h +19 -0
  66. data/src/external/Z/API/Z/formats/data model/ILP32.h +19 -0
  67. data/src/external/Z/API/Z/formats/data model/ILP64.h +19 -0
  68. data/src/external/Z/API/Z/formats/data model/IP16L32.h +19 -0
  69. data/src/external/Z/API/Z/formats/data model/LLP64.h +19 -0
  70. data/src/external/Z/API/Z/formats/data model/LP32.h +19 -0
  71. data/src/external/Z/API/Z/formats/data model/LP64.h +19 -0
  72. data/src/external/Z/API/Z/formats/data model/SILP64.h +19 -0
  73. data/src/external/Z/API/Z/formats/file system/FAT12.h +61 -0
  74. data/src/external/Z/API/Z/formats/floating-point/IEEE 754.h +141 -0
  75. data/src/external/Z/API/Z/formats/floating-point/x87.h +74 -0
  76. data/src/external/Z/API/Z/formats/image/ICNS.h +39 -0
  77. data/src/external/Z/API/Z/formats/keymap/Mac OS.h +284 -0
  78. data/src/external/Z/API/Z/formats/keymap/Z.h +141 -0
  79. data/src/external/Z/API/Z/formats/multimedia/Creative Voice.h +106 -0
  80. data/src/external/Z/API/Z/formats/multimedia/Microsoft Wave.h +49 -0
  81. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/ACH.h +44 -0
  82. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/FRZ.h +54 -0
  83. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/PRG.h +33 -0
  84. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SEM.h +46 -0
  85. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SIT.h +34 -0
  86. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SNA.h +117 -0
  87. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SNP.h +37 -0
  88. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SP.h +62 -0
  89. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/Z80.h +117 -0
  90. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/ZX.h +56 -0
  91. data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/ZX82.h +70 -0
  92. data/src/external/Z/API/Z/formats/storage medium image/NES Game Pak/UNIF.h +26 -0
  93. data/src/external/Z/API/Z/formats/storage medium image/NES Game Pak/iNES.h +76 -0
  94. data/src/external/Z/API/Z/formats/storage medium image/audio/TAP.h +25 -0
  95. data/src/external/Z/API/Z/formats/storage medium image/audio/TZX.h +1185 -0
  96. data/src/external/Z/API/Z/formats/storage medium image/audio/Warajevo TAP.h +32 -0
  97. data/src/external/Z/API/Z/formats/storage medium image/floppy disk/FDI.h +45 -0
  98. data/src/external/Z/API/Z/functions/base/Z2D.h +583 -0
  99. data/src/external/Z/API/Z/functions/base/Z3D.h +712 -0
  100. data/src/external/Z/API/Z/functions/base/ZRange.h +137 -0
  101. data/src/external/Z/API/Z/functions/base/all.h +16 -0
  102. data/src/external/Z/API/Z/functions/base/casting.hpp +37 -0
  103. data/src/external/Z/API/Z/functions/base/character.h +38 -0
  104. data/src/external/Z/API/Z/functions/base/constructors.h +326 -0
  105. data/src/external/Z/API/Z/functions/base/structure.hpp +26 -0
  106. data/src/external/Z/API/Z/functions/base/type.hpp +60 -0
  107. data/src/external/Z/API/Z/functions/base/value.h +1901 -0
  108. data/src/external/Z/API/Z/functions/base/value.hpp +112 -0
  109. data/src/external/Z/API/Z/functions/buffering/ZRingBuffer.h +85 -0
  110. data/src/external/Z/API/Z/functions/buffering/ZTripleBuffer.h +65 -0
  111. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/Z2DLine.h +179 -0
  112. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/Z3DLine.h +168 -0
  113. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZAABB.h +361 -0
  114. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZAABR.h +1081 -0
  115. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZBox.h +340 -0
  116. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZCircle.h +142 -0
  117. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZRectangle.h +1267 -0
  118. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZSphere.h +156 -0
  119. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/all.h +18 -0
  120. data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/constructors.h +620 -0
  121. data/src/external/Z/API/Z/functions/time/date.h +29 -0
  122. data/src/external/Z/API/Z/hardware/CPU/architecture/6502.h +90 -0
  123. data/src/external/Z/API/Z/hardware/CPU/architecture/Z80.h +245 -0
  124. data/src/external/Z/API/Z/hardware/CPU/architecture/i4004.h +37 -0
  125. data/src/external/Z/API/Z/hardware/PSG/General Instrument/AY-3-891x.h +180 -0
  126. data/src/external/Z/API/Z/hardware/VDC/Ricoh/RP2C0x.h +625 -0
  127. data/src/external/Z/API/Z/hardware/bus/AGP.h +24 -0
  128. data/src/external/Z/API/Z/hardware/bus/USB.h +510 -0
  129. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/Inves Spectrum +.h +47 -0
  130. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/Pentagon.h +13 -0
  131. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/Scorpion.h +13 -0
  132. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum + 128K.h +158 -0
  133. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +.h +82 -0
  134. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +2.h +13 -0
  135. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +2A.h +13 -0
  136. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +3.h +13 -0
  137. data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum.h +109 -0
  138. data/src/external/Z/API/Z/hardware/machine/model/console/Nintendo Entertainment System/NES-001 (NTSC).h +29 -0
  139. data/src/external/Z/API/Z/hardware/machine/model/console/Nintendo Entertainment System/NES-001 (PAL).h +29 -0
  140. data/src/external/Z/API/Z/hardware/machine/platform/computer/ZX Spectrum.h +405 -0
  141. data/src/external/Z/API/Z/hardware/machine/platform/console/Game Boy.h +49 -0
  142. data/src/external/Z/API/Z/hardware/machine/platform/console/Nintendo Entertainment System.h +350 -0
  143. data/src/external/Z/API/Z/hardware/storage medium/ROM cartridge/SNES Game Pak.h +238 -0
  144. data/src/external/Z/API/Z/inspection/C/completion.h +178 -0
  145. data/src/external/Z/API/Z/inspection/C/modules/C11.h +41 -0
  146. data/src/external/Z/API/Z/inspection/C/modules/C18.h +13 -0
  147. data/src/external/Z/API/Z/inspection/C/modules/C89.h +19 -0
  148. data/src/external/Z/API/Z/inspection/C/modules/C90.h +13 -0
  149. data/src/external/Z/API/Z/inspection/C/modules/C94.h +15 -0
  150. data/src/external/Z/API/Z/inspection/C/modules/C99.h +29 -0
  151. data/src/external/Z/API/Z/inspection/C/modules/KR C.h +19 -0
  152. data/src/external/Z/API/Z/inspection/C++/completion.h +512 -0
  153. data/src/external/Z/API/Z/inspection/C++/modules/C++03.h +15 -0
  154. data/src/external/Z/API/Z/inspection/C++/modules/C++11.h +80 -0
  155. data/src/external/Z/API/Z/inspection/C++/modules/C++14.h +26 -0
  156. data/src/external/Z/API/Z/inspection/C++/modules/C++17.h +55 -0
  157. data/src/external/Z/API/Z/inspection/C++/modules/C++85.h +11 -0
  158. data/src/external/Z/API/Z/inspection/C++/modules/C++89.h +13 -0
  159. data/src/external/Z/API/Z/inspection/C++/modules/C++98.h +17 -0
  160. data/src/external/Z/API/Z/inspection/C++.h +78 -0
  161. data/src/external/Z/API/Z/inspection/C.h +79 -0
  162. data/src/external/Z/API/Z/inspection/CPU/completion.h +56 -0
  163. data/src/external/Z/API/Z/inspection/CPU/detection.h +714 -0
  164. data/src/external/Z/API/Z/inspection/CPU/modules/6502.h +25 -0
  165. data/src/external/Z/API/Z/inspection/CPU/modules/AArch32.h +32 -0
  166. data/src/external/Z/API/Z/inspection/CPU/modules/AArch64.h +32 -0
  167. data/src/external/Z/API/Z/inspection/CPU/modules/Z80.h +26 -0
  168. data/src/external/Z/API/Z/inspection/CPU/modules/x86-32.h +31 -0
  169. data/src/external/Z/API/Z/inspection/CPU/modules/x86-64.h +312 -0
  170. data/src/external/Z/API/Z/inspection/CPU.h +209 -0
  171. data/src/external/Z/API/Z/inspection/OS/completion.h +36 -0
  172. data/src/external/Z/API/Z/inspection/OS/detection.h +768 -0
  173. data/src/external/Z/API/Z/inspection/OS/modules/Linux.h +22 -0
  174. data/src/external/Z/API/Z/inspection/OS/modules/MS-DOS.h +16 -0
  175. data/src/external/Z/API/Z/inspection/OS/modules/Mac OS X.h +23 -0
  176. data/src/external/Z/API/Z/inspection/OS/modules/Windows.h +19 -0
  177. data/src/external/Z/API/Z/inspection/OS/modules/iPhone OS.h +23 -0
  178. data/src/external/Z/API/Z/inspection/OS.h +236 -0
  179. data/src/external/Z/API/Z/inspection/Objective-C/completion.h +8 -0
  180. data/src/external/Z/API/Z/inspection/Objective-C/modules/Objective-C v1.0.h +11 -0
  181. data/src/external/Z/API/Z/inspection/Objective-C/modules/Objective-C v2.0.h +15 -0
  182. data/src/external/Z/API/Z/inspection/Objective-C.h +51 -0
  183. data/src/external/Z/API/Z/inspection/Z.h +19 -0
  184. data/src/external/Z/API/Z/inspection/build.h +22 -0
  185. data/src/external/Z/API/Z/inspection/character set.h +66 -0
  186. data/src/external/Z/API/Z/inspection/compiler/completion.h +2885 -0
  187. data/src/external/Z/API/Z/inspection/compiler/modules/Apple LLVM.h +26 -0
  188. data/src/external/Z/API/Z/inspection/compiler/modules/Clang.h +1664 -0
  189. data/src/external/Z/API/Z/inspection/compiler/modules/GCC.h +1366 -0
  190. data/src/external/Z/API/Z/inspection/compiler/modules/SCCZ80.h +473 -0
  191. data/src/external/Z/API/Z/inspection/compiler/modules/Visual C++.h +606 -0
  192. data/src/external/Z/API/Z/inspection/compiler/modules/cc65.h +529 -0
  193. data/src/external/Z/API/Z/inspection/compiler/modules/generic.h +13 -0
  194. data/src/external/Z/API/Z/inspection/compiler/modules/template.h +650 -0
  195. data/src/external/Z/API/Z/inspection/compiler.h +299 -0
  196. data/src/external/Z/API/Z/inspection/data model/completion.h +128 -0
  197. data/src/external/Z/API/Z/inspection/data model/deduction.h +9 -0
  198. data/src/external/Z/API/Z/inspection/data model/detection.h +45 -0
  199. data/src/external/Z/API/Z/inspection/data model.h +362 -0
  200. data/src/external/Z/API/Z/inspection/floating-point/completion.h +50 -0
  201. data/src/external/Z/API/Z/inspection/floating-point.h +324 -0
  202. data/src/external/Z/API/Z/inspection/language.h +163 -0
  203. data/src/external/Z/API/Z/inspection/platform/detection.h +9 -0
  204. data/src/external/Z/API/Z/inspection/platform.h +29 -0
  205. data/src/external/Z/API/Z/keys/C++.h +27 -0
  206. data/src/external/Z/API/Z/keys/C.h +29 -0
  207. data/src/external/Z/API/Z/keys/CPU.h +80 -0
  208. data/src/external/Z/API/Z/keys/OS.h +182 -0
  209. data/src/external/Z/API/Z/keys/Objective-C.h +17 -0
  210. data/src/external/Z/API/Z/keys/chemistry.h +26 -0
  211. data/src/external/Z/API/Z/keys/compiler.h +178 -0
  212. data/src/external/Z/API/Z/keys/data model.h +32 -0
  213. data/src/external/Z/API/Z/keys/endianness.h +24 -0
  214. data/src/external/Z/API/Z/keys/language.h +21 -0
  215. data/src/external/Z/API/Z/keys/layout.h +20 -0
  216. data/src/external/Z/API/Z/keys/mathematics/geometry.h +29 -0
  217. data/src/external/Z/API/Z/keys/mathematics/number.h +21 -0
  218. data/src/external/Z/API/Z/keys/order.h +18 -0
  219. data/src/external/Z/API/Z/keys/platform.h +87 -0
  220. data/src/external/Z/API/Z/keys/program.h +39 -0
  221. data/src/external/Z/API/Z/keys/science/chemical elements.h +200 -0
  222. data/src/external/Z/API/Z/keys/science/electricity.h +18 -0
  223. data/src/external/Z/API/Z/keys/science/magnetism.h +19 -0
  224. data/src/external/Z/API/Z/keys/status.h +69 -0
  225. data/src/external/Z/API/Z/keys/text.h +27 -0
  226. data/src/external/Z/API/Z/keys/value.h +88 -0
  227. data/src/external/Z/API/Z/macros/arguments.h +25 -0
  228. data/src/external/Z/API/Z/macros/casting.h +22 -0
  229. data/src/external/Z/API/Z/macros/character.h +159 -0
  230. data/src/external/Z/API/Z/macros/date.h +14 -0
  231. data/src/external/Z/API/Z/macros/key.h +20 -0
  232. data/src/external/Z/API/Z/macros/language.h +126 -0
  233. data/src/external/Z/API/Z/macros/language.hpp +81 -0
  234. data/src/external/Z/API/Z/macros/members.h +86 -0
  235. data/src/external/Z/API/Z/macros/pasting.h +308 -0
  236. data/src/external/Z/API/Z/macros/pointer.h +33 -0
  237. data/src/external/Z/API/Z/macros/repetition.h +283 -0
  238. data/src/external/Z/API/Z/macros/structure.h +104 -0
  239. data/src/external/Z/API/Z/macros/templating.h +407 -0
  240. data/src/external/Z/API/Z/macros/tokens.h +14 -0
  241. data/src/external/Z/API/Z/macros/type enumeration.h +43 -0
  242. data/src/external/Z/API/Z/macros/type selection.hpp +76 -0
  243. data/src/external/Z/API/Z/macros/value.h +489 -0
  244. data/src/external/Z/API/Z/macros/variadic pasting.h +21 -0
  245. data/src/external/Z/API/Z/macros/variadic selection.h +56 -0
  246. data/src/external/Z/API/Z/macros/variadic.h +46 -0
  247. data/src/external/Z/API/Z/macros/version.h +17 -0
  248. data/src/external/Z/API/Z/network/3/IP.h +36 -0
  249. data/src/external/Z/API/Z/network/4/TCP.h +24 -0
  250. data/src/external/Z/API/Z/network/4/UDP.h +26 -0
  251. data/src/external/Z/API/Z/network/7/ED2K.h +104 -0
  252. data/src/external/Z/API/Z/network/7/HTTP.h +100 -0
  253. data/src/external/Z/API/Z/traits/SelectType.hpp +71 -0
  254. data/src/external/Z/API/Z/traits/TernaryType.hpp +20 -0
  255. data/src/external/Z/API/Z/traits/Type.hpp +4516 -0
  256. data/src/external/Z/API/Z/traits/TypeCount.hpp +52 -0
  257. data/src/external/Z/API/Z/traits/TypeList.hpp +376 -0
  258. data/src/external/Z/API/Z/traits/base.hpp +19 -0
  259. data/src/external/Z/API/Z/traits/filtering.hpp +30 -0
  260. data/src/external/Z/API/Z/traits/mathematics.hpp +48 -0
  261. data/src/external/Z/API/Z/types/arguments.h +19 -0
  262. data/src/external/Z/API/Z/types/base.h +1655 -0
  263. data/src/external/Z/API/Z/types/base.hpp +169 -0
  264. data/src/external/Z/API/Z/types/buffering.h +27 -0
  265. data/src/external/Z/API/Z/types/mathematics.h +135 -0
  266. data/src/external/Z/API/Z/types/time.h +23 -0
  267. data/src/external/Z/COPYING.LESSER +165 -0
  268. data/src/external/Z/development/Qt Creator/Z.pro +253 -0
  269. data/src/external/Z/distribution/CocoaPods/Zeta.podspec +18 -0
  270. data/src/external/Z/distribution/Gentoo Linux/Zeta-0.1.ebuild +22 -0
  271. data/src/external/Z/distribution/Gentoo Linux/metadata.xml +8 -0
  272. data/src/external/Z/distribution/Homebrew/Zeta.rb +11 -0
  273. data/src/external/z80/API/emulation/CPU/Z80.h +201 -0
  274. data/src/external/z80/README.md +229 -0
  275. data/src/external/z80/building/premake4.lua +33 -0
  276. data/src/external/z80/development/Xcode/Z80.xcodeproj/project.pbxproj +520 -0
  277. data/src/external/z80/sources/Z80.c +1660 -0
  278. data/src/interrupt.c +6 -0
  279. data/src/interrupt.h +3 -0
  280. data/src/io.c.erb +115 -0
  281. data/src/io.h.erb +18 -0
  282. data/src/main.c +69 -0
  283. data/src/memory.c.erb +43 -0
  284. data/src/memory.h.erb +9 -0
  285. metadata +329 -0
@@ -0,0 +1,182 @@
1
+ /* Z Kit - keys/OS.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_OS_H_
9
+ #define _Z_keys_OS_H_
10
+
11
+ #define Z_OS_UNKNOWN 0
12
+ #define Z_OS_AEGIS 1 /* Apollo Computer */
13
+ #define Z_OS_AIX 2 /* IBM */
14
+ #define Z_OS_AMIGA_OS 3 /* Commodore */
15
+ #define Z_OS_ANDROID 4 /* Google */
16
+ #define Z_OS_BE_OS 5 /* Be */
17
+ #define Z_OS_BITRIG 6
18
+ #define Z_OS_BSD_386 7
19
+ #define Z_OS_CELL_OS 8 /* Sony (PlayStation 3) */
20
+ #define Z_OS_CNK 9 /* IBM */
21
+ #define Z_OS_CONVEX_UNIX 10 /* Convex Computer */
22
+ #define Z_OS_CYGWIN 11 /* Cygnus Solutions */
23
+ #define Z_OS_DC_OSX 12 /* Pyramid Technology */
24
+ #define Z_OS_DG_UX 13 /* Data General */
25
+ #define Z_OS_DOMAIN_OS 14 /* Apollo Computer */
26
+ #define Z_OS_DRAGONFLY_BSD 15
27
+ #define Z_OS_DYNIX_PTX 16 /* Sequent Computer Systems */
28
+ #define Z_OS_ECOS 17 /* Cygnus Solutions */
29
+ #define Z_OS_FREE_BSD 18
30
+ #define Z_OS_GNU_HURD 19
31
+ #define Z_OS_HAIKU 20
32
+ #define Z_OS_HI_UX_MPP 21 /* Hitachi */
33
+ #define Z_OS_HP_UX 22 /* Hewlett-Packard */
34
+ #define Z_OS_INTEGRITY 23 /* Green Hills Software */
35
+ #define Z_OS_IPHONE_OS 24 /* Apple */
36
+ #define Z_OS_IRIX 25 /* SGI */
37
+ #define Z_OS_LINUX 26 /* Torvalds, Linus */
38
+ #define Z_OS_LYNX_OS 27 /* Lynx Software Technologies */
39
+ #define Z_OS_MAC_OS 28 /* Apple Computer */
40
+ #define Z_OS_MAC_OS_X 29 /* Apple Computer */
41
+ #define Z_OS_MINIX 30 /* Tanenbaum, Andrew Stuart */
42
+ #define Z_OS_MORPH_OS 31
43
+ #define Z_OS_MPE_XL 32 /* Hewlett-Packard */
44
+ #define Z_OS_MS_DOS 33 /* Microsoft */
45
+ #define Z_OS_NET_BSD 34
46
+ #define Z_OS_NET_WARE 35 /* Novell */
47
+ #define Z_OS_NON_STOP_OS 36 /* Hewlett-Packard */
48
+ #define Z_OS_NUCLEUS_RTOS 37 /* Mentor Graphics */
49
+ #define Z_OS_OPEN_BSD 38
50
+ #define Z_OS_ORBIS_OS 39 /* Sony (PlayStation 4) */
51
+ #define Z_OS_OS_2 40 /* IBM / Microsoft */
52
+ #define Z_OS_OS_9 41 /* Microware Systems */
53
+ #define Z_OS_OS_400 42 /* IBM */
54
+ #define Z_OS_OSF_1 43 /* OSF */
55
+ #define Z_OS_PALM_OS 44 /* Palm */
56
+ #define Z_OS_PLAN_9 45 /* Bell Labs */
57
+ #define Z_OS_PSP_SYSTEM_SOFTWARE 46 /* Sony */
58
+ #define Z_OS_QNX 47 /* Quantum Software Systems */
59
+ #define Z_OS_RTEMS 48 /* OAR Corporation (?) */
60
+ #define Z_OS_SCO_UNIX_SYSTEM_V 49 /* SCO */
61
+ #define Z_OS_SINIX 50 /* Siemens Nixdorf */
62
+ #define Z_OS_SOLARIS 51 /* Sun Microsystems */
63
+ #define Z_OS_SUN_OS 52 /* Sun Microsystems */
64
+ #define Z_OS_SYLLABLE 53
65
+ #define Z_OS_SYMBIAN 54 /* Symbian */
66
+ #define Z_OS_TVOS 55 /* Apple */
67
+ #define Z_OS_ULTRIX 56 /* DEC */
68
+ #define Z_OS_UNICOS 57 /* Cray */
69
+ #define Z_OS_UNICOS_MP 58 /* SGI (?) */
70
+ #define Z_OS_UNIX_WARE 59 /* Univel */
71
+ #define Z_OS_UTS 60 /* Amdahl */
72
+ #define Z_OS_VMS 61 /* DEC */
73
+ #define Z_OS_VOS 62 /* Stratus Technologies */
74
+ #define Z_OS_VX_WORKS 63 /* Wind River Systems */
75
+ #define Z_OS_WATCH_OS 64 /* Apple */
76
+ #define Z_OS_WINDOWS 65 /* Microsoft */
77
+ #define Z_OS_WINDOWS_CE 66 /* Microsoft */
78
+ #define Z_OS_Z_OS 67 /* IBM */
79
+
80
+ #define Z_OS_STRING_AEGIS "AEGIS"
81
+ #define Z_OS_STRING_AIX "AIX"
82
+ #define Z_OS_STRING_AMIGA_OS "AmigaOS"
83
+ #define Z_OS_STRING_ANDROID "Android"
84
+ #define Z_OS_STRING_BE_OS "BeOS"
85
+ #define Z_OS_STRING_BITRIG "Bitrig"
86
+ #define Z_OS_STRING_BSD_386 "BSD/386"
87
+ #define Z_OS_STRING_CELL_OS "CellOS"
88
+ #define Z_OS_STRING_CNK "CNK"
89
+ #define Z_OS_STRING_CONVEX_UNIX "Convex UNIX"
90
+ #define Z_OS_STRING_CYGWIN "Cygwin"
91
+ #define Z_OS_STRING_DC_OSX "DC/OSx"
92
+ #define Z_OS_STRING_DG_UX "DG/UX"
93
+ #define Z_OS_STRING_DOMAIN_OS "Domain/OS"
94
+ #define Z_OS_STRING_DRAGONFLY_BSD "DragonFly BSD"
95
+ #define Z_OS_STRING_DYNIX_PTX "DYNIX/ptx"
96
+ #define Z_OS_STRING_ECOS "eCos"
97
+ #define Z_OS_STRING_FREE_BSD "FreeBSD"
98
+ #define Z_OS_STRING_GNU_HURD "GNU Hurd"
99
+ #define Z_OS_STRING_HAIKU "Haiku"
100
+ #define Z_OS_STRING_HI_UX_MPP "HI-UX/MPP"
101
+ #define Z_OS_STRING_HP_UX "HP-UX"
102
+ #define Z_OS_STRING_INTEGRITY "INTEGRITY"
103
+ #define Z_OS_STRING_IPHONE_OS "iPhone OS"
104
+ #define Z_OS_STRING_IRIX "IRIX"
105
+ #define Z_OS_STRING_LINUX "Linux"
106
+ #define Z_OS_STRING_LYNX_OS "LynxOS"
107
+ #define Z_OS_STRING_MAC_OS "Mac OS"
108
+ #define Z_OS_STRING_MAC_OS_X "Mac OS X"
109
+ #define Z_OS_STRING_MINIX "MINIX"
110
+ #define Z_OS_STRING_MORPH_OS "MorphOS"
111
+ #define Z_OS_STRING_MPE_XL "MPE XL"
112
+ #define Z_OS_STRING_MS_DOS "MS-DOS"
113
+ #define Z_OS_STRING_NET_BSD "NetBSD"
114
+ #define Z_OS_STRING_NETWARE "NetWare"
115
+ #define Z_OS_STRING_NON_STOP_OS "NonStop OS"
116
+ #define Z_OS_STRING_NUCLEUS_RTOS "Nucleus RTOS"
117
+ #define Z_OS_STRING_OPEN_BSD "OpenBSD"
118
+ #define Z_OS_STRING_ORBIS_OS "Orbis OS"
119
+ #define Z_OS_STRING_OS_2 "OS/2"
120
+ #define Z_OS_STRING_OS_9 "OS-9"
121
+ #define Z_OS_STRING_OS_400 "OS/400"
122
+ #define Z_OS_STRING_OSF_1 "OSF/1"
123
+ #define Z_OS_STRING_PALM_OS "Palm OS"
124
+ #define Z_OS_STRING_PLAN_9 "Plan 9"
125
+ #define Z_OS_STRING_PSP_SYSTEM_SOFTWARE "PlayStation Portable System Software"
126
+ #define Z_OS_STRING_QNX "QNX"
127
+ #define Z_OS_STRING_RTEMS "RTEMS"
128
+ #define Z_OS_STRING_SCO_UNIX_SYSTEM_V "SCO UNIX System V"
129
+ #define Z_OS_STRING_SINIX "SINIX"
130
+ #define Z_OS_STRING_SOLARIS "Solaris"
131
+ #define Z_OS_STRING_SUN_OS "SunOS"
132
+ #define Z_OS_STRING_SYLLABLE "Syllable"
133
+ #define Z_OS_STRING_SYMBIAN "Symbian"
134
+ #define Z_OS_STRING_TVOS "tvOS"
135
+ #define Z_OS_STRING_ULTRIX "ULTRIX"
136
+ #define Z_OS_STRING_UNICOS "UNICOS"
137
+ #define Z_OS_STRING_UNICOS_MP "UNICOS/mp"
138
+ #define Z_OS_STRING_UNIX_WARE "UnixWare"
139
+ #define Z_OS_STRING_UTS "UTS"
140
+ #define Z_OS_STRING_VMS "VMS"
141
+ #define Z_OS_STRING_VOS "VOS"
142
+ #define Z_OS_STRING_VX_WORKS "VxWorks"
143
+ #define Z_OS_STRING_WATCH_OS "Watch OS"
144
+ #define Z_OS_STRING_WINDOWS "Windows"
145
+ #define Z_OS_STRING_WINDOWS_CE "Windows CE"
146
+ #define Z_OS_STRING_Z_OS "z/OS"
147
+
148
+ #define Z_OS_BSD_I Z_OS_BSD_386
149
+ #define Z_OS_BSD_OS Z_OS_BSD_386
150
+ #define Z_OS_CONVEX_OS Z_OS_CONVEX_UNIX
151
+ #define Z_OS_DIGITAL_UNIX Z_OS_DEC_OSF_1
152
+ #define Z_OS_I5_OS Z_OS_OS_400
153
+ #define Z_OS_IBM_I Z_OS_OS_400
154
+ #define Z_OS_IOS Z_OS_IPHONE_OS
155
+ #define Z_OS_MACOS Z_OS_MAC_OS_X
156
+ #define Z_OS_OPEN_DESKTOP Z_OS_SCO_UNIX_SYSTEM_V
157
+ #define Z_OS_OPEN_SERVER Z_OS_SCO_UNIX_SYSTEM_V
158
+ #define Z_OS_OPEN_UNIX Z_OS_UNIX_WARE
159
+ #define Z_OS_OS_X Z_OS_MAC_OS_X
160
+ #define Z_OS_RELIANT_UNIX Z_OS_SINIX
161
+ #define Z_OS_SCO_UNIX Z_OS_SCO_UNIX_SYSTEM_V
162
+ #define Z_OS_TRU64_UNIX Z_OS_DEC_OSF_1
163
+ #define Z_OS_WATCHOS Z_OS_WATCH_OS
164
+
165
+ #define Z_OS_STRING_BSD_I "BSDi"
166
+ #define Z_OS_STRING_BSD_OS "BSD/OS"
167
+ #define Z_OS_STRING_CONVEX_OS "ConvexOS"
168
+ #define Z_OS_STRING_DIGITAL_UNIX "Digital UNIX"
169
+ #define Z_OS_STRING_I5_OS "i5/OS"
170
+ #define Z_OS_STRING_IBM_I "IBM i"
171
+ #define Z_OS_STRING_IOS "iOS"
172
+ #define Z_OS_STRING_MACOS "macOS"
173
+ #define Z_OS_STRING_OPEN_DESKTOP "Open Desktop"
174
+ #define Z_OS_STRING_OPEN_SERVER "OpenServer"
175
+ #define Z_OS_STRING_OPEN_UNIX "Open UNIX"
176
+ #define Z_OS_STRING_OS_X "OS X"
177
+ #define Z_OS_STRING_RELIANT_UNIX "Reliant UNIX"
178
+ #define Z_OS_STRING_SCO_UNIX "SCO UNIX"
179
+ #define Z_OS_STRING_TRU64_UNIX "Tru64 UNIX"
180
+ #define Z_OS_STRING_WATCHOS "watchOS"
181
+
182
+ #endif /* _Z_keys_OS_H_ */
@@ -0,0 +1,17 @@
1
+ /* Z Kit - keys/Objective-C.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_Objective_C_H_
9
+ #define _Z_keys_Objective_C_H_
10
+
11
+ #define Z_OBJECTIVE_C_1_0 1
12
+ #define Z_OBJECTIVE_C_2_0 2
13
+
14
+ #define Z_OBJECTIVE_C_STRING_OBJECTIVE_C_1_0 "Objective-C v1.0"
15
+ #define Z_OBJECTIVE_C_STRING_OBJECTIVE_C_2_0 "Objective-C v2.0"
16
+
17
+ #endif /* _Z_keys_Objective_C_H_ */
@@ -0,0 +1,26 @@
1
+ /* Z Kit - keys/chemistry.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_chemistry_H_
9
+ #define _Z_keys_chemistry_H_
10
+
11
+ #define Z_ELECTRICAL_TYPE_CONDUCTOR 0
12
+ #define Z_ELECTRICAL_TYPE_SEMICONDUCTOR 1
13
+ #define Z_ELECTRICAL_TYPE_INSULATOR 2
14
+
15
+ #define Z_KEY_BITS_ELECTRICAL_TYPE 8
16
+ #define Z_KEY_LAST_ELECTRICAL_TYPE Z_ELECTRICAL_TYPE_INSULATOR
17
+
18
+ #define Z_MAGNETIC_TYPE_DIAMAGNETIC 0
19
+ #define Z_MAGNETIC_TYPE_PARAMAGNETIC 1
20
+ #define Z_MAGNETIC_TYPE_ANTIFERROMAGNETIC 2
21
+ #define Z_MAGNETIC_TYPE_FERROMAGNETIC 3
22
+
23
+ #define Z_KEY_BITS_ELECTRICAL_TYPE 8
24
+ #define Z_KEY_LAST_MAGNETIC_TYPE Z_MAGNETIC_TYPE_FERROMAGNETIC
25
+
26
+ #endif /* _Z_keys_chemistry_H_ */
@@ -0,0 +1,178 @@
1
+ /* Z Kit - keys/compiler.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_compiler_H_
9
+ #define _Z_keys_compiler_H_
10
+
11
+ #define Z_COMPILER_UNKNOWN 0
12
+ #define Z_COMPILER_GCC 1
13
+ #define Z_COMPILER_CLANG 2
14
+ #define Z_COMPILER_VISUAL_CPP 3
15
+ #define Z_COMPILER_ACC 4
16
+ #define Z_COMPILER_ALTIUM_MICROBLAZE_C 5
17
+ #define Z_COMPILER_ALTIUM_C_TO_HARDWARE 6
18
+ #define Z_COMPILER_AMSTERDAM_COMPILER_KIT 7
19
+ #define Z_COMPILER_APPLE_LLVM 8
20
+ #define Z_COMPILER_ARM_C_CPP_COMPILER 9
21
+ #define Z_COMPILER_ARM_COMPILER 10
22
+ #define Z_COMPILER_AZTEC_C 11
23
+ #define Z_COMPILER_BORLAND_CPP 12
24
+ #define Z_COMPILER_CC65 13
25
+ #define Z_COMPILER_CODE_WARRIOR 14
26
+ #define Z_COMPILER_COMEAU_CPP 15
27
+ #define Z_COMPILER_COMPAQ_C_CPP 16
28
+ #define Z_COMPILER_COMPCERT 17
29
+ #define Z_COMPILER_CONVEX_C 18
30
+ #define Z_COMPILER_COVERITY_C_CPP_STATIC_ANALYZER 19
31
+ #define Z_COMPILER_CRAY_C 20
32
+ #define Z_COMPILER_DIAB_C_CPP 21
33
+ #define Z_COMPILER_DICE_C 22
34
+ #define Z_COMPILER_DIGITAL_MARS 23
35
+ #define Z_COMPILER_DIGNUS_SYSTEMS_C 24
36
+ #define Z_COMPILER_DIGNUS_SYSTEMS_CPP Z_COMPILER_DIGNUS_SYSTEMS_C /* Check this */
37
+ #define Z_COMPILER_DJGPP 25
38
+ #define Z_COMPILER_EDG_CPP_FRONTEND 26
39
+ #define Z_COMPILER_EKOPATH 27
40
+ #define Z_COMPILER_FUJITSU_CPP 28
41
+ #define Z_COMPILER_GREEN_HILL_C_CPP 29
42
+ #define Z_COMPILER_HP_ACPP 30
43
+ #define Z_COMPILER_HP_ANSI_C 31
44
+ #define Z_COMPILER_HP_UPC 32
45
+ #define Z_COMPILER_IAR_C_CPP 33
46
+ #define Z_COMPILER_IBM_XL_C_CPP 34
47
+ #define Z_COMPILER_VISUAL_AGE_CPP Z_COMPILER_IBM_XL_C_CPP
48
+ #define Z_COMPILER_IBM_Z_OS_C_CPP 35
49
+ #define Z_COMPILER_IMAGECRAFT_C 36
50
+ #define Z_COMPILER_INTEL_CPP 37
51
+ #define Z_COMPILER_KAI_CPP 38
52
+ #define Z_COMPILER_KEIL_C166 39
53
+ #define Z_COMPILER_KEIL_C51 40
54
+ #define Z_COMPILER_KEIL_CARM 41
55
+ #define Z_COMPILER_LCC 42
56
+ #define Z_COMPILER_METAWARE_HIGH_C_CPP 43
57
+ #define Z_COMPILER_MICROTEC_C_CPP 44
58
+ #define Z_COMPILER_MICROWAY_NDP_C 45
59
+ #define Z_COMPILER_MINGW 46
60
+ #define Z_COMPILER_MIPS_PRO 47
61
+ #define Z_COMPILER_MIRACLE_C 48
62
+ #define Z_COMPILER_MPW_CPP 49
63
+ #define Z_COMPILER_NORCROFT_C 50
64
+ #define Z_COMPILER_NWCC 51
65
+ #define Z_COMPILER_OPEN64 52
66
+ #define Z_COMPILER_ORACLE_PRO_C_PRECOMPILER 53
67
+ #define Z_COMPILER_ORACLE_SOLARIS_STUDIO 54
68
+ #define Z_COMPILER_SUN_STUDIO Z_COMPILER_ORACLE_SOLARIS_STUDIO
69
+ #define Z_COMPILER_SUN_WORK_SHOP Z_COMPILER_ORACLE_SOLARIS_STUDIO
70
+ #define Z_COMPILER_FORTE_DEVELOPER Z_COMPILER_ORACLE_SOLARIS_STUDIO
71
+ #define Z_COMPILER_SUN_PRO_COMPILERS Z_COMPILER_ORACLE_SOLARIS_STUDIO
72
+ #define Z_COMPILER_PACIFIC_C 55
73
+ #define Z_COMPILER_PALM_C_CPP 56
74
+ #define Z_COMPILER_PELLES_C 57
75
+ #define Z_COMPILER_PGI_C_CPP 58
76
+ #define Z_COMPILER_RENESAS_C_CPP 59
77
+ #define Z_COMPILER_SAS_C 60
78
+ #define Z_COMPILER_SCCZ80 61 /* Z88DK */
79
+ #define Z_COMPILER_SCO_OPEN_SERVER 62
80
+ #define Z_COMPILER_SDCC 63
81
+ #define Z_COMPILER_SN_COMPILER 64
82
+ #define Z_COMPILER_STRATUS_VOS_C 65
83
+ #define Z_COMPILER_SYMANTEC_CPP 66
84
+ #define Z_COMPILER_TENDRA_C_CPP 67
85
+ #define Z_COMPILER_TEXAS_INSTRUMENTS_C_CPP_COMPILER 68
86
+ #define Z_COMPILER_THINK_C 69
87
+ #define Z_COMPILER_TINY_C 70
88
+ #define Z_COMPILER_TURBO_C_CPP 71
89
+ #define Z_COMPILER_ULTIMATE_C_CPP 72
90
+ #define Z_COMPILER_USL_C 73
91
+ #define Z_COMPILER_VBCC 74
92
+ #define Z_COMPILER_WATCOM_C_CPP 75
93
+ #define Z_COMPILER_ZORTECH_CPP 76
94
+
95
+ #define Z_COMPILER_STRING_GCC "GCC"
96
+ #define Z_COMPILER_STRING_CLANG "Clang"
97
+ #define Z_COMPILER_STRING_VISUAL_CPP "Visual C++"
98
+ #define Z_COMPILER_STRING_ACC "ACC"
99
+ #define Z_COMPILER_STRING_ALTIUM_MICROBLAZE_C "Altium MicroBlaze C"
100
+ #define Z_COMPILER_STRING_ALTIUM_C_TO_HARDWARE "Altium C-to-Hardware"
101
+ #define Z_COMPILER_STRING_AMSTERDAM_COMPILER_KIT "Amsterdam Compiler Kit"
102
+ #define Z_COMPILER_STRING_APPLE_LLVM "Apple LLVM"
103
+ #define Z_COMPILER_STRING_ARM_C_CPP_COMPILER "ARM C/C++ Compiler" /* Previously known as ARM RealView C/C++ Compiler */
104
+ #define Z_COMPILER_STRING_ARM_COMPILER "ARM Compiler"
105
+ #define Z_COMPILER_STRING_AZTEC_C "Aztec C"
106
+ #define Z_COMPILER_STRING_BORLAND_CPP "Borland C++"
107
+ #define Z_COMPILER_STRING_CC65 "cc65"
108
+ #define Z_COMPILER_STRING_CODE_WARRIOR "CodeWarrior"
109
+ #define Z_COMPILER_STRING_COMEAU_CPP "Comeau C++ "
110
+ #define Z_COMPILER_STRING_COMPAQ_C_CPP "Compaq C/C++"
111
+ #define Z_COMPILER_STRING_COMPCERT "CompCert"
112
+ #define Z_COMPILER_STRING_CONVEX_C "Convex C"
113
+ #define Z_COMPILER_STRING_COVERITY_C_CPP_STATIC_ANALYZER "Coverity C/C++ Static Analyzer"
114
+ #define Z_COMPILER_STRING_CRAY_C "Cray C"
115
+ #define Z_COMPILER_STRING_DIAB_C_CPP "Diab C/C++"
116
+ #define Z_COMPILER_STRING_DICE_C "DICE C"
117
+ #define Z_COMPILER_STRING_DIGITAL_MARS "Digital Mars"
118
+ #define Z_COMPILER_STRING_DIGNUS_SYSTEMS_C "Dignus Systems/C"
119
+ #define Z_COMPILER_STRING_DIGNUS_SYSTEMS_CPP "Dignus Systems/C++"
120
+ #define Z_COMPILER_STRING_DJGPP "DJGPP"
121
+ #define Z_COMPILER_STRING_EDG_CPP_FRONTEND "EDG C++ Frontend"
122
+ #define Z_COMPILER_STRING_EKOPARH "EKOPath"
123
+ #define Z_COMPILER_STRING_FUJITSU_CPP "Fujitsu C++"
124
+ #define Z_COMPILER_STRING_GREEN_HILL_C_CPP "Green Hill C/C++"
125
+ #define Z_COMPILER_STRING_HP_ACPP "HP aC++"
126
+ #define Z_COMPILER_STRING_HP_ANSI_C "HP ANSI C"
127
+ #define Z_COMPILER_STRING_HP_UPC "HP UPC"
128
+ #define Z_COMPILER_STRING_IAR_C_CPP "IAR C/C++"
129
+ #define Z_COMPILER_STRING_IBM_XL_C_CPP "IBM XL C/C++"
130
+ #define Z_COMPILER_STRING_VISUAL_AGE_CPP "VisualAge C++" /* Renamed to IBM XL C/C++ */
131
+ #define Z_COMPILER_STRING_IBM_Z_OS_C_CPP "IBM z/OS C/C++"
132
+ #define Z_COMPILER_STRING_IMAGECRAFT_C "ImageCraft C"
133
+ #define Z_COMPILER_STRING_INTEL_CPP "Intel C++"
134
+ #define Z_COMPILER_STRING_KAI_CPP "KAI C++"
135
+ #define Z_COMPILER_STRING_KEIL_C166 "KEIL C166"
136
+ #define Z_COMPILER_STRING_KEIL_C51 "KEIL C51"
137
+ #define Z_COMPILER_STRING_KEIL_CARM "KEIL CARM" /* Discontinued – Replaced by ARM RealView C/C++ Compiler */
138
+ #define Z_COMPILER_STRING_LCC "LLC"
139
+ #define Z_COMPILER_STRING_METAWARE_HIGH_C_CPP "MetaWare High C/C++"
140
+ #define Z_COMPILER_STRING_MICROTEC_C_CPP "Microtec C/C++"
141
+ #define Z_COMPILER_STRING_MICROWAY_NDP_C "Microway NDP C"
142
+ #define Z_COMPILER_STRING_MINGW "MinGW"
143
+ #define Z_COMPILER_STRING_MIPS_PRO "MIPSpro"
144
+ #define Z_COMPILER_STRING_MIRACLE_C "Miracle C"
145
+ #define Z_COMPILER_STRING_MPW_CPP "MPW C++"
146
+ #define Z_COMPILER_STRING_NORCROFT_C "Norcroft C"
147
+ #define Z_COMPILER_STRING_NWCC "NWCC"
148
+ #define Z_COMPILER_STRING_OPEN64 "Open64"
149
+ #define Z_COMPILER_STRING_ORACLE_PRO_C_PRECOMPILER "Oracle Pro*C Precompiler"
150
+ #define Z_COMPILER_STRING_ORACLE_SOLARIS_STUDIO "Oracle Solaris Studio"
151
+ #define Z_COMPILER_STRING_SUN_STUDIO "Sun Studio"
152
+ #define Z_COMPILER_STRING_SUN_WORK_SHOP "Sun WorkShop"
153
+ #define Z_COMPILER_STRING_FORTE_DEVELOPER "Forte Developer"
154
+ #define Z_COMPILER_STRING_SUN_PRO_COMPILERS "SunPro Compilers"
155
+ #define Z_COMPILER_STRING_PACIFIC_C "Pacific C"
156
+ #define Z_COMPILER_STRING_PALM_C_CPP "Palm C/C++"
157
+ #define Z_COMPILER_STRING_PELLES_C "Pelles C"
158
+ #define Z_COMPILER_STRING_PGI_C_CPP "PGI C/C++"
159
+ #define Z_COMPILER_STRING_RENESAS_C_CPP "Renesas C/C++"
160
+ #define Z_COMPILER_STRING_SAS_C "SAS/C"
161
+ #define Z_COMPILER_STRING_SCCZ80 "SCCZ80"
162
+ #define Z_COMPILER_STRING_SCO_OPEN_SERVER "SCO OpenServer"
163
+ #define Z_COMPILER_STRING_SDCC "SDCC" /* Small Device C Compiler */
164
+ #define Z_COMPILER_STRING_SN_COMPILER "SN Compiler"
165
+ #define Z_COMPILER_STRING_STRATUS_VOS_C "Stratus VOS C"
166
+ #define Z_COMPILER_STRING_SYMANTEC_CPP "Symantec C++"
167
+ #define Z_COMPILER_STRING_TENDRA_C_CPP "TenDRA C - C++"
168
+ #define Z_COMPILER_STRING_TEXAS_INSTRUMENTS_C_CPP_COMPILER "Texas Instruments C/C++ Compiler"
169
+ #define Z_COMPILER_STRING_THINK_C "THINK C"
170
+ #define Z_COMPILER_STRING_TINY_C "Tiny C"
171
+ #define Z_COMPILER_STRING_TURBO_C_CPP "Turbo C/C++"
172
+ #define Z_COMPILER_STRING_ULTIMATE_C_CPP "Ultimate C/C++"
173
+ #define Z_COMPILER_STRING_USL_C "USL C"
174
+ #define Z_COMPILER_STRING_VBCC "VBCC"
175
+ #define Z_COMPILER_STRING_WATCOM_C_CPP "Watcom C/C++"
176
+ #define Z_COMPILER_STRING_ZORTECH_CPP "Zortech C++"
177
+
178
+ #endif /* _Z_keys_compiler_H_ */
@@ -0,0 +1,32 @@
1
+ /* Z Kit - keys/data model.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_data_model_H_
9
+ #define _Z_keys_data_model_H_
10
+
11
+ #define Z_DATA_MODEL_IP16L32 1
12
+ #define Z_DATA_MODEL_I16LP32 2
13
+ #define Z_DATA_MODEL_LP32 3
14
+ #define Z_DATA_MODEL_ILP32 4
15
+ #define Z_DATA_MODEL_LLP64 5
16
+ #define Z_DATA_MODEL_LP64 6
17
+ #define Z_DATA_MODEL_ILP64 7
18
+ #define Z_DATA_MODEL_SILP64 8
19
+
20
+ #define Z_KEY_BITS_DATA_MODEL 8
21
+ #define Z_KEY_LAST_DATA_MODEL Z_DATA_MODEL_SILP64
22
+
23
+ #define Z_DATA_MODEL_STRING_IP16L32 "IP16L32"
24
+ #define Z_DATA_MODEL_STRING_I16LP32 "I16LP32"
25
+ #define Z_DATA_MODEL_STRING_LP32 "LP32"
26
+ #define Z_DATA_MODEL_STRING_ILP32 "ILP32"
27
+ #define Z_DATA_MODEL_STRING_LP64 "LP64"
28
+ #define Z_DATA_MODEL_STRING_LLP64 "LLP64"
29
+ #define Z_DATA_MODEL_STRING_ILP64 "ILP64"
30
+ #define Z_DATA_MODEL_STRING_SILP64 "SILP64"
31
+
32
+ #endif /* _Z_keys_data_model_H_ */
@@ -0,0 +1,24 @@
1
+ /* Z Kit - keys/endianness.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_endianness_H_
9
+ #define _Z_keys_endianness_H_
10
+
11
+ #define Z_ENDIANNESS_BIG 0
12
+ #define Z_ENDIANNESS_LITTLE 1
13
+ #define Z_ENDIANNESS_PDP 2
14
+ #define Z_ENDIANNESS_MIXED 4
15
+
16
+ #define Z_KEY_BITS_ENDIANNESS 8
17
+ #define Z_KEY_LAST_ENDIANNESS Z_ENDIANNESS_MIXED
18
+
19
+ #define Z_ENDIANNESS_STRING_BIG "big-endian"
20
+ #define Z_ENDIANNESS_STRING_LITTLE "little-endian"
21
+ #define Z_ENDIANNESS_STRING_PDP "PDP-endian"
22
+ #define Z_ENDIANNESS_STRING_MIXED "mixed-endian"
23
+
24
+ #endif /* _Z_keys_endianness_H_ */
@@ -0,0 +1,21 @@
1
+ /* Z Kit - keys/language.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_language_H_
9
+ #define _Z_keys_language_H_
10
+
11
+ #define Z_LANGUAGE_C 1
12
+ #define Z_LANGUAGE_CPP 3
13
+ #define Z_LANGUAGE_OBJECTIVE_C 5
14
+ #define Z_LANGUAGE_OBJECTIVE_CPP 7
15
+
16
+ #define Z_LANGUAGE_STRING_C "C"
17
+ #define Z_LANGUAGE_STRING_CPP "C++"
18
+ #define Z_LANGUAGE_STRING_OBJECTIVE_C "Objective-C"
19
+ #define Z_LANGUAGE_STRING_OBJECTIVE_CPP "Objective-C++"
20
+
21
+ #endif /* _Z_keys_language_H_ */
@@ -0,0 +1,20 @@
1
+ /* Z Kit - keys/layout.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_layout_H_
9
+ #define _Z_keys_layout_H_
10
+
11
+ #define Z_SCALING_SAME 0
12
+ #define Z_SCALING_NONE 1
13
+ #define Z_SCALING_FIT 2
14
+ #define Z_SCALING_FILL 3
15
+ #define Z_SCALING_EXPAND 4
16
+
17
+ #define Z_KEY_BITS_SCALING 8
18
+ #define Z_KEY_LAST_SCALING Z_SCALING_EXPAND
19
+
20
+ #endif /* _Z_keys_layout_H_ */
@@ -0,0 +1,29 @@
1
+ /* Z Kit - keys/mathematics/geometry.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_mathematics_geometry_H_
9
+ #define _Z_keys_mathematics_geometry_H_
10
+
11
+ #define Z_BRAVAIS_LATTICE_TRICLINIC_P 1
12
+ #define Z_BRAVAIS_LATTICE_MONOCLINIC_P 2
13
+ #define Z_BRAVAIS_LATTICE_MONOCLINIC_C 3
14
+ #define Z_BRAVAIS_LATTICE_ORTHORHOMBIC_P 4
15
+ #define Z_BRAVAIS_LATTICE_ORTHORHOMBIC_C 5
16
+ #define Z_BRAVAIS_LATTICE_ORTHORHOMBIC_I 6
17
+ #define Z_BRAVAIS_LATTICE_ORTHORHOMBIC_F 7
18
+ #define Z_BRAVAIS_LATTICE_TETRAGONAL_P 8
19
+ #define Z_BRAVAIS_LATTICE_TETRAGONAL_I 9
20
+ #define Z_BRAVAIS_LATTICE_RHOMBOHEDRAL_P 10
21
+ #define Z_BRAVAIS_LATTICE_HEXAGONAL_P 11
22
+ #define Z_BRAVAIS_LATTICE_CUBIC_P 12
23
+ #define Z_BRAVAIS_LATTICE_CUBIC_I 13
24
+ #define Z_BRAVAIS_LATTICE_CUBIC_F 14
25
+
26
+ #define Z_KEY_BITS_BRAVAIS_LATTICE 8
27
+ #define Z_KEY_LAST_BRAVAIS_LATTICE Z_BRAVAIS_LATTICE_CUBIC_F
28
+
29
+ #endif /* _Z_keys_mathematics_geometry_H_ */
@@ -0,0 +1,21 @@
1
+ /* Z Kit - keys/mathematics/number.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_mathematics_number_H_
9
+ #define _Z_keys_mathematics_number_H_
10
+
11
+ #define Z_NUMBER_SET_N 1
12
+ #define Z_NUMBER_SET_Z 3
13
+ #define Z_NUMBER_SET_Q 4
14
+ #define Z_NUMBER_SET_R 5
15
+ #define Z_NUMBER_SET_I 6
16
+ #define Z_NUMBER_SET_C 7
17
+
18
+ #define Z_KEY_BITS_NUMBER_SET 8
19
+ #define Z_KEY_LAST_NUMBER_SET Z_NUMBER_SET_C
20
+
21
+ #endif /* _Z_keys_mathematics_number_H_ */
@@ -0,0 +1,18 @@
1
+ /* Z Kit - keys/order.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_order_H_
9
+ #define _Z_keys_order_H_
10
+
11
+ #define Z_ORDER_DESCENDING -1
12
+ #define Z_ORDER_EQUAL 0
13
+ #define Z_ORDER_ASCENDING 1
14
+
15
+ #define Z_ORDER_NORMAL 0
16
+ #define Z_ORDER_REVERSED 1
17
+
18
+ #endif /* _Z_keys_order_H_ */
@@ -0,0 +1,87 @@
1
+ /* Z Kit - keys/platform.h
2
+ _____ _______________
3
+ /_ /_/ -_/_ _/ _ |
4
+ /____/\___/ /__//___/_| Kit
5
+ Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
6
+ Released under the terms of the GNU Lesser General Public License v3. */
7
+
8
+ #ifndef _Z_keys_platform_H_
9
+ #define _Z_keys_platform_H_
10
+
11
+ #define Z_PLATFORM_UNKNOWN 0
12
+
13
+ /* Calculators */
14
+
15
+ /* Computers */
16
+
17
+ #define Z_PLATFORM_ABC_80 2001 /* Luxor */
18
+ #define Z_PLATFORM_ABC_800 2002 /* Luxor */
19
+ #define Z_PLATFORM_ALPHATRONIC_PC 2003 /* Triumph-Adler */
20
+ #define Z_PLATFORM_AMIGA 2004 /* Commodore */
21
+ #define Z_PLATFORM_APPLE_II 2005 /* Apple Computer */
22
+ #define Z_PLATFORM_AQUARIUS 2006 /* Mattel */
23
+ #define Z_PLATFORM_COMMODORE_16 2007 /* Commodore */
24
+ #define Z_PLATFORM_COMMODORE_64 2008 /* Commodore */
25
+ #define Z_PLATFORM_COMMODORE_128 2009 /* Commodore */
26
+ #define Z_PLATFORM_CPC 2010 /* Amstrad */
27
+ #define Z_PLATFORM_GALAKSIJA 2011 /* Voja Antonić */
28
+ #define Z_PLATFORM_JUPITER_ACE 2012 /* Jupiter Cantab */
29
+ #define Z_PLATFORM_M5 2013 /* SORD */
30
+ #define Z_PLATFORM_MSX 2014 /* Microsoft and others */
31
+ #define Z_PLATFORM_QL 2015 /* Sinclair Research */
32
+ #define Z_PLATFORM_PET 2016 /* Commodore */
33
+ #define Z_PLATFORM_RX_78 2017 /* Bandai */
34
+ #define Z_PLATFORM_SORCERER 2018 /* Exidy */
35
+ #define Z_PLATFORM_ST 2019 /* Atari */
36
+ #define Z_PLATFORM_VIC_20 2020 /* Commodore */
37
+ #define Z_PLATFORM_X_07 2021 /* Canon */
38
+ #define Z_PLATFORM_X1 2022 /* Sharp */
39
+ #define Z_PLATFORM_Z88 2023 /* Cambridge Computer */
40
+ #define Z_PLATFORM_ZX80 2024 /* Sinclair Research */
41
+ #define Z_PLATFORM_ZX81 2025 /* Sinclair Research */
42
+ #define Z_PLATFORM_ZX_SPECTRUM 2026 /* Sinclair Research */
43
+
44
+ /* Video game consoles */
45
+
46
+ #define Z_PLATFORM_3DO 1001 /* The 3DO Company */
47
+ #define Z_PLATFORM_ATARI_2600 1002 /* Atari */
48
+ #define Z_PLATFORM_ATARI_5200 1003 /* Atari */
49
+ #define Z_PLATFORM_ATARI_7800 1004 /* Atari */
50
+ #define Z_PLATFORM_CD_I 1005 /* Philips */
51
+ #define Z_PLATFORM_COLECO_VISION 1006 /* Coleco Industries */
52
+ #define Z_PLATFORM_DREAMCAST 1007 /* Sega */
53
+ #define Z_PLATFORM_GAME_BOY 1008 /* Nintendo */
54
+ #define Z_PLATFORM_GAME_BOY_ADVANCE 1009 /* Nintendo */
55
+ #define Z_PLATFORM_GAME_GEAR 1010 /* Sega */
56
+ #define Z_PLATFORM_JAGUAR 1011 /* Atari */
57
+ #define Z_PLATFORM_LYNX 1012 /* Atari */
58
+ #define Z_PLATFORM_MASTER_SYSTEM 1013 /* Sega */
59
+ #define Z_PLATFORM_MEGA_DRIVE 1014 /* Sega */
60
+ #define Z_PLATFORM_NEO_GEO 1015 /* SNK */
61
+ #define Z_PLATFORM_NEO_GEO_POCKET 1016 /* SNK */
62
+ #define Z_PLATFORM_NES 1017 /* Nintendo */
63
+ #define Z_PLATFORM_NINTENDO_64 1018 /* Nintendo */
64
+ #define Z_PLATFORM_NINTENDO_DS 1019 /* Nintendo */
65
+ #define Z_PLATFORM_NINTENDO_GAME_CUBE 1020 /* Nintendo */
66
+ #define Z_PLATFORM_NINTENDO_SWITCH 1021 /* Nintendo */
67
+ #define Z_PLATFORM_PC_ENGINE 1022 /* NEC */
68
+ #define Z_PLATFORM_PLAYDIA 1023 /* Bandai */
69
+ #define Z_PLATFORM_PSX 1024 /* Sony */
70
+ #define Z_PLATFORM_PS2 1025 /* Sony */
71
+ #define Z_PLATFORM_PS3 1026 /* Sony */
72
+ #define Z_PLATFORM_PS4 1027 /* Sony */
73
+ #define Z_PLATFORM_PSP 1028 /* Sony */
74
+ #define Z_PLATFORM_PS_VITA 1029 /* Sony */
75
+ #define Z_PLATFORM_SEGA_SATURN 1030 /* Sega */
76
+ #define Z_PLATFORM_SNES 1031 /* Nintendo */
77
+ #define Z_PLATFORM_SUPERVISION 1032 /* Watara */
78
+ #define Z_PLATFORM_VECTREX 1033 /* MB / GCE */
79
+ #define Z_PLATFORM_VIRTUAL_BOY 1034 /* Nintendo */
80
+ #define Z_PLATFORM_WII 1035 /* Nintendo */
81
+ #define Z_PLATFORM_WII_U 1036 /* Nintendo */
82
+ #define Z_PLATFORM_WONDER_SWAN 1037 /* Bandai */
83
+ #define Z_PLATFORM_XBOX 1038 /* Microsoft */
84
+ #define Z_PLATFORM_XBOX_360 1039 /* Microsoft */
85
+ #define Z_PLATFORM_XBOX_ONE 1040 /* Microsoft */
86
+
87
+ #endif /* _Z_keys_platform_H_ */