]> git.sur5r.net Git - cc65/blobdiff - libsrc/c64/emd/dtv-himem.s
Merge pull request #504 from jedeoric/master
[cc65] / libsrc / c64 / emd / dtv-himem.s
index 72a6bdc7a20c828c5e765e7c66ae8e69e7c86103..6dde874f793b41be6e51a9ddfe93ee8ef25947ad 100644 (file)
@@ -6,36 +6,41 @@
 ;
 
 
-       .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
@@ -58,10 +63,10 @@ window:         .res    256             ; Memory "window"
 ; 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