Skip to content

Commit

Permalink
Add IDO 7.2 libc defines (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Synray authored Aug 20, 2021
1 parent d63ff01 commit 01e4307
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion libc_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
param[i] = MEM_S8(param##_addr + i); \
}

#if !defined(IDO53) && !defined(IDO71)
#if !defined(IDO53) && !defined(IDO71) && !defined(IDO72)
#define IDO71
#endif

Expand All @@ -68,6 +68,15 @@
#define LIBC_SIZE 0x3000
#endif

#ifdef IDO72
// IDO 7.2
#define IOB_ADDR 0x0fb49454
#define ERRNO_ADDR 0x0fb49290
#define CTYPE_ADDR 0x0fb46db0
#define LIBC_ADDR 0x0fb46000
#define LIBC_SIZE 0x4000
#endif

#define STDIN_ADDR IOB_ADDR
#define STDOUT_ADDR (IOB_ADDR + 0x10)
#define STDERR_ADDR (IOB_ADDR + 0x20)
Expand Down

0 comments on commit 01e4307

Please sign in to comment.