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.

23 lines
376 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. printf("loading boot rom\n");
  11. byte_arr_t *prgm = read_file("boot.rom");
  12. if (prgm == NULL)
  13. {
  14. fatal("couldn't load boot.rom");
  15. }
  16. boot_psx_prgm(prgm);
  17. return 0;
  18. }