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,22 @@
1
+ /* Z Kit - inspection/modules/OS/Linux.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_inspection_modules_OS_Linux_H_
9
+ #define _Z_inspection_modules_OS_Linux_H_
10
+
11
+ #define Z_OS_STRING Z_OS_STRING_LINUX
12
+
13
+ #define Z_OS_HAS_POSIX_THREADING TRUE
14
+ #define Z_OS_HAS_NETWORKING TRUE
15
+ #define Z_OS_HAS_TLS TRUE
16
+ #define Z_OS_IS_POSIX_LIKE TRUE
17
+ #define Z_OS_IS_UNIX_LIKE TRUE
18
+
19
+ #define Z_OS_PATH_SLASH_CHARACTER '/'
20
+ #define Z_OS_PATH_SLASH_STRING "/"
21
+
22
+ #endif /* _Z_inspection_modules_OS_Linux_H_ */
@@ -0,0 +1,16 @@
1
+ /* Z Kit - inspection/modules/OS/MS-DOS.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_inspection_modules_OS_MS_DOS_H_
9
+ #define _Z_inspection_modules_OS_MS_DOS_H_
10
+
11
+ #define Z_OS_STRING Z_OS_STRING_MS_DOS
12
+
13
+ #define Z_OS_PATH_SLASH_CHARACTER '\\'
14
+ #define Z_OS_PATH_SLASH_STRING "\\"
15
+
16
+ #endif /* _Z_inspection_modules_OS_MS_DOS_H_ */
@@ -0,0 +1,23 @@
1
+ /* Z Kit - inspection/modules/OS/Mac OS X.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_inspection_modules_OS_Mac_OS_X_H_
9
+ #define _Z_inspection_modules_OS_Mac_OS_X_H_
10
+
11
+ #define Z_OS_STRING Z_OS_STRING_MAC_OS_X
12
+
13
+ #define Z_OS_HAS_POSIX_THREADING TRUE
14
+ #define Z_OS_HAS_NETWORKING TRUE
15
+ #define Z_OS_IS_POSIX TRUE
16
+ #define Z_OS_IS_POSIX_LIKE TRUE
17
+ #define Z_OS_IS_UNIX TRUE
18
+ #define Z_OS_IS_UNIX_LIKE TRUE
19
+
20
+ #define Z_OS_PATH_SLASH_CHARACTER '/'
21
+ #define Z_OS_PATH_SLASH_STRING "/"
22
+
23
+ #endif /* _Z_inspection_modules_OS_Mac_OS_X_H_ */
@@ -0,0 +1,19 @@
1
+ /* Z Kit - inspection/modules/OS/Windows.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_inspection_modules_OS_Windows_H_
9
+ #define _Z_inspection_modules_OS_Windows_H_
10
+
11
+ #define Z_OS_STRING Z_OS_STRING_WINDOWS
12
+
13
+ #define Z_OS_HAS_NETWORKING TRUE
14
+ #define Z_OS_HAS_TLS TRUE
15
+
16
+ #define Z_OS_PATH_SLASH_CHARACTER '\\'
17
+ #define Z_OS_PATH_SLASH_STRING "\\"
18
+
19
+ #endif /* _Z_inspection_modules_OS_Windows_H_ */
@@ -0,0 +1,23 @@
1
+ /* Z Kit - inspection/modules/OS/iPhone 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_inspection_modules_OS_iPhone_OS_H_
9
+ #define _Z_inspection_modules_OS_iPhone_OS_H_
10
+
11
+ #define Z_OS_STRING Z_OS_STRING_IPHONE_OS
12
+
13
+ #define Z_OS_HAS_POSIX_THREADING TRUE
14
+ #define Z_OS_HAS_NETWORKING TRUE
15
+ #define Z_OS_IS_POSIX TRUE
16
+ #define Z_OS_IS_POSIX_LIKE TRUE
17
+ #define Z_OS_IS_UNIX TRUE
18
+ #define Z_OS_IS_UNIX_LIKE TRUE
19
+
20
+ #define Z_OS_PATH_SLASH_CHARACTER '/'
21
+ #define Z_OS_PATH_SLASH_STRING "/"
22
+
23
+ #endif /* _Z_inspection_modules_OS_iPhone_OS_H_ */
@@ -0,0 +1,236 @@
1
+ /* Z Kit - inspection/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_inspection_OS_H_
9
+ #define _Z_inspection_OS_H_
10
+
11
+ #include <Z/keys/OS.h>
12
+
13
+ #ifdef Z_OS
14
+ # include <Z/constants/base.h>
15
+ #else
16
+ # include <Z/inspection/compiler.h>
17
+
18
+ # ifdef Z_COMPILER_OS
19
+ # define Z_OS Z_COMPILER_OS
20
+ # else
21
+ # include <Z/inspection/OS/detection.h>
22
+ # endif
23
+ #endif
24
+
25
+ #ifndef Z_OS
26
+ # define Z_OS Z_OS_UNKNOWN
27
+
28
+ #elif Z_OS == Z_OS_AEGIS
29
+ # include <Z/inspection/OS/modules/AEGIS.h>
30
+
31
+ #elif Z_OS == Z_OS_AIX
32
+ # include <Z/inspection/OS/modules/AIX.h>
33
+
34
+ #elif Z_OS == Z_OS_AMIGA_OS
35
+ # include <Z/inspection/OS/modules/AmigaOS.h>
36
+
37
+ #elif Z_OS == Z_OS_ANDROID
38
+ # include <Z/inspection/OS/modules/Android.h>
39
+
40
+ #elif Z_OS == Z_OS_BE_OS
41
+ # include <Z/inspection/OS/modules/BeOS.h>
42
+
43
+ #elif Z_OS == Z_OS_BITRIG
44
+ # include <Z/inspection/OS/modules/Bitrig.h>
45
+
46
+ #elif Z_OS == Z_OS_BSD_386
47
+ # include <Z/inspection/OS/modules/BSD-386.h>
48
+
49
+ #elif Z_OS == Z_OS_CELL_OS
50
+ # include <Z/inspection/OS/modules/CellOS.h>
51
+
52
+ #elif Z_OS == Z_OS_CNK
53
+ # include <Z/inspection/OS/modules/CNK.h>
54
+
55
+ #elif Z_OS == Z_OS_CONVEX_UNIX
56
+ # include <Z/inspection/OS/modules/Convex UNIX.h>
57
+
58
+ #elif Z_OS == Z_OS_CYGWIN
59
+ # include <Z/inspection/OS/modules/Cygwin.h>
60
+
61
+ #elif Z_OS == Z_OS_DC_OSX
62
+ # include <Z/inspection/OS/modules/DC-OSx.h>
63
+
64
+ #elif Z_OS == Z_OS_DG_UX
65
+ # include <Z/inspection/OS/modules/DG-UX.h>
66
+
67
+ #elif Z_OS == Z_OS_DOMAIN_OS
68
+ # include <Z/inspection/OS/modules/Domain-OS.h>
69
+
70
+ #elif Z_OS == Z_OS_DRAGONFLY_BSD
71
+ # include <Z/inspection/OS/modules/DragonFly BSD.h>
72
+
73
+ #elif Z_OS == Z_OS_DYNIX_PTX
74
+ # include <Z/inspection/OS/modules/DYNIX-ptx.h>
75
+
76
+ #elif Z_OS == Z_OS_ECOS
77
+ # include <Z/inspection/OS/modules/eCos.h>
78
+
79
+ #elif Z_OS == Z_OS_FREE_BSD
80
+ # include <Z/inspection/OS/modules/FreeBSD.h>
81
+
82
+ #elif Z_OS == Z_OS_GNU_HURD
83
+ # include <Z/inspection/OS/modules/GNU Hurd.h>
84
+
85
+ #elif Z_OS == Z_OS_HAIKU
86
+ # include <Z/inspection/OS/modules/Haiku.h>
87
+
88
+ #elif Z_OS == Z_OS_HI_UX_MPP
89
+ # include <Z/inspection/OS/modules/HI-UX-MPP.h>
90
+
91
+ #elif Z_OS == Z_OS_HP_UX
92
+ # include <Z/inspection/OS/modules/HP-UX.h>
93
+
94
+ #elif Z_OS == Z_OS_INTEGRITY
95
+ # include <Z/inspection/OS/modules/INTEGRITY.h>
96
+
97
+ #elif Z_OS == Z_OS_IPHONE_OS
98
+ # include <Z/inspection/OS/modules/iPhone OS.h>
99
+
100
+ #elif Z_OS == Z_OS_IRIX
101
+ # include <Z/inspection/OS/modules/IRIX.h>
102
+
103
+ #elif Z_OS == Z_OS_LINUX
104
+ # include <Z/inspection/OS/modules/Linux.h>
105
+
106
+ #elif Z_OS == Z_OS_LYNX_OS
107
+ # include <Z/inspection/OS/modules/LynxOS.h>
108
+
109
+ #elif Z_OS == Z_OS_MAC_OS
110
+ # include <Z/inspection/OS/modules/Mac OS.h>
111
+
112
+ #elif Z_OS == Z_OS_MAC_OS_X
113
+ # include <Z/inspection/OS/modules/Mac OS X.h>
114
+
115
+ #elif Z_OS == Z_OS_MINIX
116
+ # include <Z/inspection/OS/modules/MINIX.h>
117
+
118
+ #elif Z_OS == Z_OS_MORPH_OS
119
+ # include <Z/inspection/OS/modules/MorphOS.h>
120
+
121
+ #elif Z_OS == Z_OS_MPE_XL
122
+ # include <Z/inspection/OS/modules/MPE XL.h>
123
+
124
+ #elif Z_OS == Z_OS_MS_DOS
125
+ # include <Z/inspection/OS/modules/MS-DOS.h>
126
+
127
+ #elif Z_OS == Z_OS_NET_BSD
128
+ # include <Z/inspection/OS/modules/NetBSD.h>
129
+
130
+ #elif Z_OS == Z_OS_NET_WARE
131
+ # include <Z/inspection/OS/modules/NetWare.h>
132
+
133
+ #elif Z_OS == Z_OS_NON_STOP_OS
134
+ # include <Z/inspection/OS/modules/NonStop OS.h>
135
+
136
+ #elif Z_OS == Z_OS_NUCLEUS_RTOS
137
+ # include <Z/inspection/OS/modules/Nucleus RTOS.h>
138
+
139
+ #elif Z_OS == Z_OS_OPEN_BSD
140
+ # include <Z/inspection/OS/modules/OpenBSD.h>
141
+
142
+ #elif Z_OS == Z_OS_ORBIS_OS
143
+ # include <Z/inspection/OS/modules/Orbis OS.h>
144
+
145
+ #elif Z_OS == Z_OS_OS_2
146
+ # include <Z/inspection/OS/modules/OS-2.h>
147
+
148
+ #elif Z_OS == Z_OS_OS_9
149
+ # include <Z/inspection/OS/modules/OS-9.h>
150
+
151
+ #elif Z_OS == Z_OS_OS_400
152
+ # include <Z/inspection/OS/modules/OS-400.h>
153
+
154
+ #elif Z_OS == Z_OS_OSF_1
155
+ # include <Z/inspection/OS/modules/OSF-1.h>
156
+
157
+ #elif Z_OS == Z_OS_PALM_OS
158
+ # include <Z/inspection/OS/modules/Palm OS.h>
159
+
160
+ #elif Z_OS == Z_OS_PLAN_9
161
+ # include <Z/inspection/OS/modules/Plan 9.h>
162
+
163
+ #elif Z_OS == Z_OS_PSP_SYSTEM_SOFTWARE
164
+ # include <Z/inspection/OS/modules/PSP System Software.h>
165
+
166
+ #elif Z_OS == Z_OS_QNX
167
+ # include <Z/inspection/OS/modules/QNX.h>
168
+
169
+ #elif Z_OS == Z_OS_RTEMS
170
+ # include <Z/inspection/OS/modules/RTEMS.h>
171
+
172
+ #elif Z_OS == Z_OS_SCO_UNIX_SYSTEM_V
173
+ # include <Z/inspection/OS/modules/SCO UNIX System V.h>
174
+
175
+ #elif Z_OS == Z_OS_SINIX
176
+ # include <Z/inspection/OS/modules/SINIX.h>
177
+
178
+ #elif Z_OS == Z_OS_SOLARIS
179
+ # include <Z/inspection/OS/modules/Solaris.h>
180
+
181
+ #elif Z_OS == Z_OS_SUN_OS
182
+ # include <Z/inspection/OS/modules/SunOS.h>
183
+
184
+ #elif Z_OS == Z_OS_SYLLABLE
185
+ # include <Z/inspection/OS/modules/Syllable.h>
186
+
187
+ #elif Z_OS == Z_OS_SYMBIAN
188
+ # include <Z/inspection/OS/modules/Symbian.h>
189
+
190
+ #elif Z_OS == Z_OS_TVOS
191
+ # include <Z/inspection/OS/modules/tvOS.h>
192
+
193
+ #elif Z_OS == Z_OS_ULTRIX
194
+ # include <Z/inspection/OS/modules/ULTRIX.h>
195
+
196
+ #elif Z_OS == Z_OS_UNICOS
197
+ # include <Z/inspection/OS/modules/UNICOS.h>
198
+
199
+ #elif Z_OS == Z_OS_UNICOS_MP
200
+ # include <Z/inspection/OS/modules/UNICOS-mp.h>
201
+
202
+ #elif Z_OS == Z_OS_UNIX_WARE
203
+ # include <Z/inspection/OS/modules/UnixWare.h>
204
+
205
+ #elif Z_OS == Z_OS_UTS
206
+ # include <Z/inspection/OS/modules/UTS.h>
207
+
208
+ #elif Z_OS == Z_OS_VMS
209
+ # include <Z/inspection/OS/modules/VMS.h>
210
+
211
+ #elif Z_OS == Z_OS_VOS
212
+ # include <Z/inspection/OS/modules/VOS.h>
213
+
214
+ #elif Z_OS == Z_OS_VX_WORKS
215
+ # include <Z/inspection/OS/modules/VxWorks.h>
216
+
217
+ #elif Z_OS == Z_OS_WATCH_OS
218
+ # include <Z/inspection/OS/modules/Watch OS.h>
219
+
220
+ #elif Z_OS == Z_OS_WINDOWS
221
+ # include <Z/inspection/OS/modules/Windows.h>
222
+
223
+ #elif Z_OS == Z_OS_WINDOWS_CE
224
+ # include <Z/inspection/OS/modules/Windows CE.h>
225
+
226
+ #elif Z_OS == Z_OS_Z_OS
227
+ # include <Z/inspection/OS/modules/z-OS.h>
228
+
229
+ #endif
230
+
231
+ #include <Z/inspection/OS/completion.h>
232
+
233
+ #define Z_OS_HAS(WHAT) Z_OS_HAS_##WHAT
234
+ #define Z_OS_IS( WHAT) Z_OS_IS_##WHAT
235
+
236
+ #endif /* _Z_inspection_OS_H_ */
@@ -0,0 +1,8 @@
1
+ /* Z Kit - inspection/Objective-C/completion.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
+ /* inspection/Objective-C/completion.h EOF */
@@ -0,0 +1,11 @@
1
+ /* Z Kit - inspection/Objective-C/modules/Objective-C v1.0.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_inspection_Objective_C_modules_Objective_C_1_0_H_
9
+ #define _Z_inspection_Objective_C_modules_Objective_C_1_0_H_
10
+
11
+ #endif /* _Z_inspection_Objective_C_modules_Objective_C_1_0_H_ */
@@ -0,0 +1,15 @@
1
+ /* Z Kit - inspection/Objective-C/modules/Objective-C v2.0.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_inspection_Objective_C_modules_Objective_C_2_0_H_
9
+ #define _Z_inspection_Objective_C_modules_Objective_C_2_0_H_
10
+
11
+ /* MARK: - Inherited */
12
+
13
+ #include <Z/inspection/Objective-C/modules/Objective-C v1.0.h>
14
+
15
+ #endif /* _Z_inspection_Objective_C_modules_Objective_C_2_0_H_ */
@@ -0,0 +1,51 @@
1
+ /* Z Kit - inspection/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_inspection_Objective_C_H_
9
+ #define _Z_inspection_Objective_C_H_
10
+
11
+ #include <Z/constants/base.h>
12
+ #include <Z/keys/Objective-C.h>
13
+
14
+ #ifndef Z_OBJECTIVE_C
15
+ # if defined(__OBJC2__)
16
+ # define Z_OBJECTIVE_C Z_OBJECTIVE_C_2_0
17
+ # elif defined(__OBJC__)
18
+ # define Z_OBJECTIVE_C Z_OBJECTIVE_C_1_0
19
+ # endif
20
+ #endif
21
+
22
+ #ifdef Z_OBJECTIVE_C
23
+
24
+ # if Z_OBJECTIVE_C == Z_OBJECTIVE_C_2_0
25
+
26
+ # include <Z/inspection/Objective-C/modules/Objective-C v2.0.h>
27
+
28
+ # define Z_OBJECTIVE_C_STRING Z_OBJECTIVE_C_STRING_OBJECTIVE_C_2_0
29
+
30
+ # elif Z_OBJECTIVE_C == Z_OBJECTIVE_C_1_0
31
+
32
+ # include <Z/inspection/Objective-C/modules/Objective-C v1.0.h>
33
+
34
+ # define Z_OBJECTIVE_C_STRING Z_OBJECTIVE_C_STRING_OBJECTIVE_C_1_0
35
+
36
+ # endif
37
+
38
+ #endif
39
+
40
+ #include <Z/inspection/Objective-C/completion.h>
41
+
42
+ #define Z_OBJECTIVE_C_HAS( WHAT ) Z_OBJECTIVE_C_HAS_##WHAT
43
+ #define Z_OBJECTIVE_C_HAS_ATTRIBUTE( WHICH) Z_OBJECTIVE_C_HAS_ATTRIBUTE_##WHICH
44
+ #define Z_OBJECTIVE_C_HAS_LITERAL( WHICH) Z_OBJECTIVE_C_HAS_LITERAL_##WHICH
45
+ #define Z_OBJECTIVE_C_HAS_OPERATOR( WHICH) Z_OBJECTIVE_C_HAS_OPERATOR_##WHICH
46
+ #define Z_OBJECTIVE_C_HAS_SPECIFIER( WHICH) Z_OBJECTIVE_C_HAS_SPECIFIER_##WHICH
47
+ #define Z_OBJECTIVE_C_HAS_STORAGE_CLASS( WHICH) Z_OBJECTIVE_C_HAS_STORAGE_CLASS_##WHICH
48
+ #define Z_OBJECTIVE_C_HAS_TYPE( WHICH) Z_OBJECTIVE_C_HAS_TYPE_##WHICH
49
+ #define Z_OBJECTIVE_C_HAS_TYPE_QUALIFIER(WHICH) Z_OBJECTIVE_C_HAS_TYPE_QUALIFIER_##WHICH
50
+
51
+ #endif /* _Z_inspection_Objective_C_H_ */
@@ -0,0 +1,19 @@
1
+ /* Z Kit - inspection/Z.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_inspection_Z_H_
9
+ #define _Z_inspection_Z_H_
10
+
11
+ #define Z_HAS( WHAT ) Z_HAS_##WHAT
12
+ #define Z_HAS_CLASS( Which) Z_HAS_CLASS_##Which
13
+ #define Z_HAS_TRAIT( Which) Z_HAS_TRAIT_##Which
14
+ #define Z_HAS_TRAIT_ALIAS(which) Z_HAS_TRAIT_ALIAS_##which
15
+ #define Z_HAS_TYPE( Which) Z_HAS_TYPE_##Which
16
+
17
+ #define Z_TRAIT_HAS(Trait, what) Z_TRAIT_##Trait##_HAS_##what
18
+
19
+ #endif /* _Z_inspection_Z_H_ */
@@ -0,0 +1,22 @@
1
+ /* Z Kit - inspection/build.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_inspection_build_H_
9
+ #define _Z_inspection_build_H_
10
+
11
+ #ifdef Z_BUILD_TIME
12
+
13
+ # define Z_BUILD_YEAR (Z_BUILD_TIME / 10000000000)
14
+ # define Z_BUILD_MONTH ((Z_BUILD_TIME - ((Z_BUILD_TIME / 10000000000) * 10000000000)) / 100000000)
15
+ # define Z_BUILD_DAY ((Z_BUILD_TIME - ((Z_BUILD_TIME / 100000000) * 100000000)) / 1000000)
16
+ # define Z_BUILD_HOUR ((Z_BUILD_TIME - ((Z_BUILD_TIME / 1000000) * 1000000)) / 10000)
17
+ # define Z_BUILD_MINUTES ((Z_BUILD_TIME - ((Z_BUILD_TIME / 10000) * 10000)) / 100)
18
+ # define Z_BUILD_SECONDS (Z_BUILD_TIME - ((Z_BUILD_TIME / 100) * 100))
19
+
20
+ #endif
21
+
22
+ #endif /* _Z_inspection_build_H_ */
@@ -0,0 +1,66 @@
1
+ /* Z Kit - inspection/character set.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_inspection_character_set_H_
9
+ #define _Z_inspection_character_set_H_
10
+
11
+ #define Z_CHARACTER_SET_DIGITS_ARE_CONSECUTIVE \
12
+ ( ('0' < '9') \
13
+ && ('0' + 1 == '1') && ('1' + 1 == '2') && ('2' + 1 == '3') \
14
+ && ('3' + 1 == '4') && ('4' + 1 == '5') && ('5' + 1 == '6') \
15
+ && ('6' + 1 == '7') && ('7' + 1 == '8') && ('8' + 1 == '9'))
16
+
17
+ #define Z_CHARACTER_SET_UPPERCASE_LETTERS_ARE_CONSECUTIVE \
18
+ ( ('A' < 'Z') \
19
+ && ('A' + 1 == 'B') && ('B' + 1 == 'C') && ('C' + 1 == 'D') \
20
+ && ('D' + 1 == 'E') && ('E' + 1 == 'F') && ('F' + 1 == 'G') \
21
+ && ('G' + 1 == 'H') && ('H' + 1 == 'I') && ('I' + 1 == 'J') \
22
+ && ('J' + 1 == 'K') && ('K' + 1 == 'L') && ('L' + 1 == 'M') \
23
+ && ('M' + 1 == 'N') && ('N' + 1 == 'O') && ('O' + 1 == 'P') \
24
+ && ('P' + 1 == 'Q') && ('Q' + 1 == 'R') && ('R' + 1 == 'S') \
25
+ && ('S' + 1 == 'T') && ('T' + 1 == 'U') && ('U' + 1 == 'V') \
26
+ && ('V' + 1 == 'W') && ('W' + 1 == 'X') && ('X' + 1 == 'Y') \
27
+ && ('Y' + 1 == 'Z'))
28
+
29
+ #define Z_CHARACTER_SET_LOWERCASE_LETTERS_ARE_CONSECUTIVE \
30
+ ( ('a' < 'z') \
31
+ && ('a' + 1 == 'b') && ('b' + 1 == 'c') && ('c' + 1 == 'd') \
32
+ && ('d' + 1 == 'e') && ('e' + 1 == 'f') && ('f' + 1 == 'g') \
33
+ && ('g' + 1 == 'h') && ('h' + 1 == 'i') && ('i' + 1 == 'j') \
34
+ && ('j' + 1 == 'k') && ('k' + 1 == 'l') && ('l' + 1 == 'm') \
35
+ && ('m' + 1 == 'n') && ('n' + 1 == 'o') && ('o' + 1 == 'p') \
36
+ && ('p' + 1 == 'q') && ('q' + 1 == 'r') && ('r' + 1 == 's') \
37
+ && ('s' + 1 == 't') && ('t' + 1 == 'u') && ('u' + 1 == 'v') \
38
+ && ('v' + 1 == 'w') && ('w' + 1 == 'x') && ('x' + 1 == 'y') \
39
+ && ('y' + 1 == 'z'))
40
+
41
+ #define Z_CHARACTER_SET_IS_ASCII \
42
+ ( (' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
43
+ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
44
+ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
45
+ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
46
+ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
47
+ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
48
+ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
49
+ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
50
+ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
51
+ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
52
+ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
53
+ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
54
+ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
55
+ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
56
+ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
57
+ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
58
+ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
59
+ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
60
+ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
61
+ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
62
+ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
63
+ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
64
+ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
65
+
66
+ #endif /* _Z_inspection_character_set_H_ */