mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Removed the HORLINE entry point
git-svn-id: svn://svn.cc65.org/cc65/trunk@2652 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
980f5b598f
commit
9b24bbc85c
@ -69,7 +69,6 @@ pages: .byte 1 ; Number of screens available
|
|||||||
.word GETDEFPALETTE
|
.word GETDEFPALETTE
|
||||||
.word SETPIXEL
|
.word SETPIXEL
|
||||||
.word GETPIXEL
|
.word GETPIXEL
|
||||||
.word HORLINE
|
|
||||||
.word LINE
|
.word LINE
|
||||||
.word BAR
|
.word BAR
|
||||||
.word CIRCLE
|
.word CIRCLE
|
||||||
@ -566,36 +565,6 @@ GETPIXEL:
|
|||||||
ldx #0
|
ldx #0
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
|
||||||
; HORLINE: Draw a horizontal line from X1/Y to X2/Y, where X1 = ptr1,
|
|
||||||
; Y = ptr2 and X2 = ptr3, using the current drawing color.
|
|
||||||
;
|
|
||||||
; This is a special line drawing entry used when the line is know to be
|
|
||||||
; horizontal, for example by the BAR emulation routine. If the driver does
|
|
||||||
; not have special code for horizontal lines, it may just copy Y to Y2 and
|
|
||||||
; proceed with the generic line drawing code.
|
|
||||||
;
|
|
||||||
; Note: Line coordinates will always be sorted (Y1 <= X2) and clipped.
|
|
||||||
;
|
|
||||||
; Must set an error code: NO
|
|
||||||
;
|
|
||||||
|
|
||||||
HORLINE:
|
|
||||||
lda X1
|
|
||||||
ldx X1+1
|
|
||||||
ldy Y1
|
|
||||||
sta r3L
|
|
||||||
stx r3H
|
|
||||||
sty r11L
|
|
||||||
lda X2
|
|
||||||
ldx X2+1
|
|
||||||
sta r4L
|
|
||||||
stx r4H
|
|
||||||
lda BITMASK
|
|
||||||
beq @L1
|
|
||||||
lda #%11111111 ; pattern
|
|
||||||
@L1: jmp HorizontalLine
|
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
; LINE: Draw a line from X1/Y1 to X2/Y2, where X1/Y1 = ptr1/ptr2 and
|
; LINE: Draw a line from X1/Y1 to X2/Y2, where X1/Y1 = ptr1/ptr2 and
|
||||||
; X2/Y2 = ptr3/ptr4 using the current drawing color.
|
; X2/Y2 = ptr3/ptr4 using the current drawing color.
|
||||||
@ -670,7 +639,7 @@ CIRCLE:
|
|||||||
; x = r;
|
; x = r;
|
||||||
lda #0
|
lda #0
|
||||||
sta XX+1
|
sta XX+1
|
||||||
sta YY
|
sta YY
|
||||||
sta YY+1
|
sta YY+1
|
||||||
sta MaxO
|
sta MaxO
|
||||||
sta MaxO+1
|
sta MaxO+1
|
||||||
|
Loading…
Reference in New Issue
Block a user