]> git.sur5r.net Git - cc65/commitdiff
Removed the HORLINE entry point
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 12 Nov 2003 15:54:41 +0000 (15:54 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 12 Nov 2003 15:54:41 +0000 (15:54 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2646 b7a2c559-68d2-44c3-8de9-860c34a00d81

asminc/tgi-kernel.inc
include/tgi/tgi-kernel.h
libsrc/c64/c64-320-200-2.s
libsrc/tgi/tgi-kernel.s

index 4a6712d5da94bf9315e20830a2364b12bcfbd93c..00f7e5c127653c34ce4cf734e81347ab7415e36d 100644 (file)
@@ -7,7 +7,7 @@
 ;*                                                                           */
 ;*                                                                           */
 ;* (C) 2002-2003 Ullrich von Bassewitz                                       */
-;*               Römerstrasse 52                                             */
+;*               Römerstraße 52                                              */
 ;*               D-70794 Filderstadt                                         */
 ;* EMail:        uz@cc65.org                                                 */
 ;*                                                                           */
@@ -62,14 +62,13 @@ TGI_HDR_GETPALETTE      = TGI_HDR_JUMPTAB+22    ; GETPALETTE routine
 TGI_HDR_GETDEFPALETTE   = TGI_HDR_JUMPTAB+24    ; GETDEFPALETTE routine
 TGI_HDR_SETPIXEL        = TGI_HDR_JUMPTAB+26    ; SETPIXEL routine
 TGI_HDR_GETPIXEL        = TGI_HDR_JUMPTAB+28    ; GETPIXEL routine
-TGI_HDR_HORLINE         = TGI_HDR_JUMPTAB+30    ; HORLINE routine
-TGI_HDR_LINE            = TGI_HDR_JUMPTAB+32    ; LINE routine
-TGI_HDR_BAR             = TGI_HDR_JUMPTAB+34    ; BAR routine
-TGI_HDR_CIRCLE          = TGI_HDR_JUMPTAB+36    ; CIRCLE routine
-TGI_HDR_TEXTSTYLE       = TGI_HDR_JUMPTAB+39    ; TEXTSTYLE routine
-TGI_HDR_OUTTEXT         = TGI_HDR_JUMPTAB+42    ; OUTTEXT routine
+TGI_HDR_LINE            = TGI_HDR_JUMPTAB+30    ; LINE routine
+TGI_HDR_BAR             = TGI_HDR_JUMPTAB+32    ; BAR routine
+TGI_HDR_CIRCLE          = TGI_HDR_JUMPTAB+34    ; CIRCLE routine
+TGI_HDR_TEXTSTYLE       = TGI_HDR_JUMPTAB+36    ; TEXTSTYLE routine
+TGI_HDR_OUTTEXT         = TGI_HDR_JUMPTAB+38    ; OUTTEXT routine
 
-TGI_HDR_JUMPCOUNT       = 21            ; Number of jump vectors
+TGI_HDR_JUMPCOUNT       = 20                   ; Number of jump vectors
 
 ;------------------------------------------------------------------------------
 ; The TGI API version, stored at TGI_HDR_VERSION
@@ -119,7 +118,6 @@ TGI_TEXT_VERTICAL       = 1
         .global tgi_getdefpalette
         .global tgi_setpixel
         .global tgi_getpixel
-        .global tgi_horline
         .global tgi_line
         .global tgi_bar
         .global tgi_circle
@@ -178,4 +176,3 @@ TGI_TEXT_VERTICAL       = 1
         .global _tgi_outtextxy
 
 
-
index e8982d1995b896a9c15174a6edb6b96f9788303a..8a23e33119326fde65671ac6a5c62f92c9653322 100644 (file)
@@ -7,7 +7,7 @@
 /*                                                                           */
 /*                                                                           */
 /* (C) 2002-2003 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
+/*               Römerstraße 52                                              */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 /*                                                                           */
@@ -46,7 +46,7 @@
 
 /* A structure that describes the header of a graphics driver loaded into
  * memory.
- */                                          
+ */
 typedef struct {
 
     /* Data that describes the capabilities of the driver */
@@ -74,7 +74,6 @@ typedef struct {
     void*               getdefpalette;  /* GETDEFPALETTE routine */
     void*               setpixel;       /* SETPIXEL routine */
     void*               getpixel;       /* GETPIXEL routine */
-    void*               horline;        /* HORLINE routine */
     void*               line;           /* LINE routine */
     void*               bar;            /* BAR routine */
     void*               circle;         /* CIRCLE routine */
index b6301a89488549f7f38ab6de7af3819214f627ff..5b4c367b2694b2b23bc2f3fc016a17ef3ef78ad5 100644 (file)
@@ -53,7 +53,6 @@
         .word   GETDEFPALETTE
         .word   SETPIXEL
         .word   GETPIXEL
-        .word   HORLINE
         .word   LINE
         .word   BAR
         .word   CIRCLE
@@ -819,6 +818,10 @@ FIXY:   cpy     #255         ;Y=255 or Y=8
 ;
 ; Must set an error code: NO
 ;
+                 
+; Note: This function needs optimization. It's just a cheap translation of 
+; the original C wrapper and could be written much smaller (besides that, 
+; calling LINE is not a good idea either).
 
 BAR:   lda     Y2
         sta     Y2SAVE
@@ -840,7 +843,11 @@ BAR:       lda     Y2
         lda     X1+1
         sta     X1SAVE+1
 
-@L1:    jsr     HORLINE
+@L1:   lda     Y1
+        sta     Y2
+        lda     Y1+1
+        sta     Y2+1
+       jsr     LINE
 
         lda     Y1SAVE
         cmp     Y2SAVE
index 86e551ab41c4adf514a9cc5dd998d35b425ec69c..a78a45581f14a7bd65c4e1fa5fb21dfb2ff9af05 100644 (file)
@@ -56,7 +56,6 @@ tgi_getpalette:     jmp     $0000
 tgi_getdefpalette:  jmp     $0000
 tgi_setpixel:       jmp     $0000
 tgi_getpixel:       jmp     $0000
-tgi_horline:        jmp     $0000
 tgi_line:           jmp     $0000
 tgi_bar:            jmp     $0000
 tgi_circle:         jmp     $0000