types.h 492 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Base type definitions - The TI-NESulator Project
  3. * types.h - Taken from the Quick6502 project
  4. *
  5. * Created by Manoel Trapier on 18/09/06.
  6. * Copyright (c) 2003-2016 986-Studio. All rights reserved.
  7. *
  8. * $LastChangedDate$
  9. * $Author$
  10. * $HeadURL$
  11. * $Revision$
  12. *
  13. */
  14. #ifndef TYPES_H
  15. #define TYPES_H
  16. #include <stdint.h>
  17. #ifndef BYTE_TYPE_DEFINED
  18. #define BYTE_TYPE_DEFINED
  19. typedef uint8_t byte;
  20. #endif
  21. typedef uint8_t bool;
  22. #define true (0)
  23. #define false (!true)
  24. #endif