;
- .include "zeropage.inc"
+ .include "zeropage.inc"
- .include "em-kernel.inc"
+ .include "em-kernel.inc"
.include "em-error.inc"
- .import _get_ostype
+ .import _get_ostype
.macpack generic
+ .macpack module
; ------------------------------------------------------------------------
; Header. Includes jump table
-.segment "JUMPTABLE"
+ module_header _dtv_himem_emd
; Driver signature
.byte $65, $6d, $64 ; "emd"
- .byte EMD_API_VERSION ; EM API version number
+ .byte EMD_API_VERSION ; EM API version number
-; Jump table.
+; Library reference
- .word INSTALL
- .word UNINSTALL
- .word PAGECOUNT
- .word MAP
- .word USE
- .word COMMIT
- .word COPYFROM
- .word COPYTO
+ .addr $0000
+
+; Jump table
+
+ .addr INSTALL
+ .addr UNINSTALL
+ .addr PAGECOUNT
+ .addr MAP
+ .addr USE
+ .addr COMMIT
+ .addr COPYFROM
+ .addr COPYTO
; ------------------------------------------------------------------------
; Constants
; The MAP and COMMIT entries will actually call COPYFROM/COPYTO with
; a pointer to the following data structure:
-dma_params: .word window ; Host address
+dma_params: .word window ; Host address
.byte 0 ; Offset in page
-curpage: .word $0000 ; Page
- .word .sizeof (window); # bytes to move, lo, hi
+curpage: .word $0000 ; Page
+ .word .sizeof (window); # bytes to move, lo, hi
.code