From 488115513c87435e42b0b398b44b3d87f128c275 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Wed, 10 Nov 2021 17:17:29 +0100 Subject: [PATCH] [Maintenance] master.hpp transition: EMS functions Part of P0168, funded by Blue Bolt and rosenrose. --- master.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/master.hpp b/master.hpp index 854e860b..4a48ee0c 100644 --- a/master.hpp +++ b/master.hpp @@ -131,6 +131,19 @@ void MASTER_RET egc_start(void); outport(EGC_MODE_ROP_REG, mode_rop) // --- +// EMS +// --- + +unsigned MASTER_RET ems_allocate(unsigned long len); +int MASTER_RET ems_exist(void); +int MASTER_RET ems_read(unsigned handle, long offset, void far *mem, long size); +int MASTER_RET ems_setname(unsigned handle, const char MASTER_PTR * name); +unsigned long MASTER_RET ems_space(void); +int MASTER_RET ems_write( + unsigned handle, long offset, const void far *mem, long size +); +// --- + // Gaiji // -----