nds.inc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. (*
  2. $Id: nds.inc 25 2007-12-10 21:06:46Z p4p3r0 $
  3. ------------------------------------------------------------------------------
  4. Copyright (C) 2005
  5. Jason Rogers (dovoto)
  6. Dave Murphy (WinterMute)
  7. This software is provided 'as-is', without any express or implied
  8. warranty. In no event will the authors be held liable for any
  9. damages arising from the use of this software.
  10. Permission is granted to anyone to use this software for any
  11. purpose, including commercial applications, and to alter it and
  12. redistribute it freely, subject to the following restrictions:
  13. 1. The origin of this software must not be misrepresented; you
  14. must not claim that you wrote the original software. If you use
  15. this software in a product, an acknowledgment in the product
  16. documentation would be appreciated but is not required.
  17. 2. Altered source versions must be plainly marked as such, and
  18. must not be misrepresented as being the original software.
  19. 3. This notice may not be removed or altered from any source
  20. distribution.
  21. ------------------------------------------------------------------------------
  22. Conversion by Legolas (http://itaprogaming.free.fr) for freepascal compiler
  23. (http://www.freepascal.org)
  24. Copyright (C) 2006 Francesco Lombardi
  25. Check http://sourceforge.net/projects/libndsfpc for updates
  26. ------------------------------------------------------------------------------
  27. Use this file as inclusion if you don't want to use the nds7/nds9 ppu library:
  28. program main;
  29. {$apptype arm9} // or arm7
  30. {$define arm9} // or arm7
  31. {$mode objfpc}
  32. uses
  33. ctypes;
  34. {$include nds.inc}
  35. begin
  36. // do stuff
  37. end.
  38. ------------------------------------------------------------------------------
  39. $Log$
  40. *)
  41. *
  42. *
  43. {$ifndef NDS_INC}
  44. {$define NDS_INC}
  45. {$J+}
  46. {$INLINE ON}
  47. {$MACRO ON}
  48. {$PACKRECORDS C}
  49. {$if not defined(ARM7) and not defined (ARM9)}
  50. {$error Either ARM7 or ARM9 must be defined}
  51. {$endif}
  52. {$define NDS_INCLUSION}
  53. {$define NDS_INTERFACE}
  54. {$define NDS_IMPLEMENTATION}
  55. {$include helper.inc}
  56. {$include jtypes.inc}
  57. {$include bios.inc}
  58. {$include card.inc}
  59. {$include dma.inc}
  60. {$include interrupts.inc}
  61. {$include ipc.inc}
  62. {$include memory.inc}
  63. {$include system.inc}
  64. {$include timers.inc}
  65. {$ifdef ARM9}
  66. {$include arm9/background.inc}
  67. {$include arm9/boxtest.inc}
  68. {$include arm9/cache.inc}
  69. {$include arm9/console.inc}
  70. {$include arm9/exceptions.inc}
  71. {$include arm9/image.inc}
  72. {$include arm9/input.inc}
  73. {$include arm9/math.inc}
  74. {$include arm9/pcx.inc}
  75. { $include nds/arm9/postest.inc} // da rimuovere
  76. {$include arm9/rumble.inc}
  77. {$include arm9/sound.inc}
  78. {$include arm9/trig_lut.inc}
  79. {$include arm9/video.inc}
  80. {$include arm9/videoGL.inc}
  81. {$include arm9/sprite.inc}
  82. {$endif ARM9}
  83. {$ifdef ARM7}
  84. {$include arm7/audio.inc}
  85. {$include arm7/clock.inc}
  86. {$include arm7/serial.inc}
  87. {$include arm7/touch.inc}
  88. {$endif ARM7}
  89. {$ifdef ARM7}
  90. {$linklib libnds7.a}
  91. {$endif ARM7}
  92. {$ifdef ARM9}
  93. {$linklib libnds9.a}
  94. {$endif ARM9}
  95. {$linklib libc.a}
  96. {$linklib libgcc.a}
  97. {$linklib libsysbase.a}
  98. {$endif NDS_INC}