Added em_use

git-svn-id: svn://svn.cc65.org/cc65/trunk@1719 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-12-05 18:57:53 +00:00
parent e4d25caa56
commit f7244c4e19
12 changed files with 100 additions and 13 deletions

View File

@@ -20,6 +20,7 @@ S_OBJS = em-kernel.o \
em_map.o \
em_pagecount.o \
em_unload.o \
em_use.o
all: $(C_OBJS) $(S_OBJS)

View File

@@ -23,13 +23,14 @@ _em_drv: .res 2 ; Pointer to driver
; Jump table for the driver functions.
.data
emd_vectors:
emd_install: jmp $0000
emd_deinstall: jmp $0000
emd_pagecount: jmp $0000
emd_map: jmp $0000
emd_commit: jmp $0000
emd_copyfrom: jmp $0000
emd_copyto: jmp $0000
emd_install: jmp return0
emd_deinstall: jmp return0
emd_pagecount: jmp return0
emd_map: jmp return0
emd_use: jmp return0
emd_commit: jmp return0
emd_copyfrom: jmp return0
emd_copyto: jmp return0
; Driver header signature
.rodata

17
libsrc/em/em_use.s Normal file
View File

@@ -0,0 +1,17 @@
;
; Ullrich von Bassewitz, 2002-11-29
;
; void* __fastcall__ em_use (unsigned page);
; /* Tell the driver that the memory window is associated with a given page.
; * This call is very similar to em_map. The difference is that the driver
; * does not necessarily transfer the current contents of the extended
; * memory into the returned window. If you're going to just write to the
; * window and the current contents of the window are invalid or no longer
; * use, this call may perform better than em_map.
; */
.include "em-kernel.inc"
_em_use = emd_use ; Use driver entry