types.h 427 B

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