]> git.sur5r.net Git - cc65/blobdiff - libsrc/atmos/tgi/atmos-228-200-3.s
Merge pull request #279 from greg-king5/atmos-reconfig
[cc65] / libsrc / atmos / tgi / atmos-228-200-3.s
index f00f502f761b8e1aec2f4ec3fe7f5500218b5e9a..ae9b0f77532c9194c820f1c19732ceb0180cda72 100644 (file)
@@ -2,7 +2,7 @@
 ; Graphics driver for the 228x200x3 palette mode on the Atmos
 ;
 ; Stefan Haubenthal <polluks@sdf.lonestar.org>
-; 2013-07-15, Greg King <gregdk@users.sf.net>
+; 2014-09-10, Greg King <gregdk@users.sf.net>
 ;
 
         .include        "zeropage.inc"
@@ -12,6 +12,7 @@
         .include        "atmos.inc"
 
         .macpack        generic
+        .macpack        module
 
 XSIZE   =       6               ; System font width
 YSIZE   =       8               ; System font height
@@ -19,7 +20,7 @@ YSIZE   =       8               ; System font height
 ; ------------------------------------------------------------------------
 ; Header. Includes jump table and constants.
 
-.segment        "HEADER"
+        module_header   _atmos_228_200_3_tgi
 
 ; The first part of the header is a structure that has a signature,
 ; and defines the capabilities of the driver.
@@ -274,7 +275,7 @@ mymode: sta     PARAM3
         lda     X1
         add     #2 * XSIZE      ; Skip screen attribute columns
         sta     PARAM1
-        lda     #0
+        lda     #>$0000
         sta     PARAM1+1
         sta     PARAM2+1
         sta     PARAM3+1
@@ -290,13 +291,13 @@ GETPIXEL:
         sta     PARAM1
         lda     Y1
         sta     PARAM2
-        lda     #0
+        lda     #>$0000
         sta     PARAM1+1
         sta     PARAM2+1
         jsr     POINT
         lda     PARAM1
         and     #%00000001
-        ldx     #0
+        ldx     #>$0000
         rts
 
 ; ------------------------------------------------------------------------
@@ -322,7 +323,7 @@ LINE:
         sta     PARAM2+1
         lda     MODE
         sta     PARAM3
-        ldx     #>0
+        ldx     #>$0000
         stx     PARAM3+1
         jmp     DRAW
 
@@ -358,7 +359,7 @@ BAR:
 
 ; ------------------------------------------------------------------------
 ; TEXTSTYLE: Set the style used when calling OUTTEXT. Text scaling in the x
-; and y directions is passend in X/Y, the text direction is passed in A.
+; and y directions is passed in X/Y, the text direction is passed in A.
 ;
 ; Must set an error code: NO
 ;
@@ -368,7 +369,7 @@ TEXTSTYLE:
 
 
 ; ------------------------------------------------------------------------
-; OUTTEXT: Output text at X/Y = ptr1/ptr2 using the current color and the
+; OUTTEXT: Output text at x/y = ptr1/ptr2, using the current color and the
 ; current text style. The text to output is given as a zero-terminated
 ; string with its address in ptr3.
 ;