psx emulator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
344 B

  1. #include "boot.h"
  2. #include "insn.h"
  3. #include "util.h"
  4. #include <stdio.h>
  5. int main()
  6. {
  7. // uint32_t x = 0xffcdefab;
  8. // const insn_t insn = *(insn_t *)&x;
  9. // printf("%u", insn.insn_reg.op);
  10. byte_arr_t *prgm = read_file("boot.rom");
  11. if (prgm == NULL)
  12. {
  13. fatal("couldn't load boot.rom");
  14. }
  15. boot_psx_prgm(prgm);
  16. return 0;
  17. }