Renamed the old geos target to geos-cbm.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5343 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
21
libsrc/geos-cbm/graph/Makefile
Normal file
21
libsrc/geos-cbm/graph/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# Makefile for GEOS lib
|
||||
# for cc65
|
||||
#
|
||||
#
|
||||
|
||||
%.o: %.s
|
||||
@$(AS) -o $@ $(AFLAGS) $<
|
||||
|
||||
|
||||
S_OBJS = drawline.o drawpoint.o framerectangle.o hlineregs.o horizontalline.o\
|
||||
imprintrectangle.o invertline.o invertrectangle.o pointregs.o recoverline.o\
|
||||
recoverrectangle.o rectangle.o initdrawwindow.o setpattern.o testpoint.o verticalline.o\
|
||||
put_char.o putdecimal.o putstring.o usesystemfont.o\
|
||||
getcharwidth.o loadcharset.o bitmapup.o bitmapregs.o bitmapclip.o bitotherclip.o\
|
||||
graphicsstring.o getintcharint.o
|
||||
|
||||
all: $(S_OBJS)
|
||||
|
||||
clean:
|
||||
@$(RM) *.~ $(S_OBJS) core
|
||||
25
libsrc/geos-cbm/graph/bitmapclip.s
Normal file
25
libsrc/geos-cbm/graph/bitmapclip.s
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 21.12.99
|
||||
|
||||
; void BitmapClip (char skipl, char skipr, int skipy, struct iconpic *myGfx);
|
||||
|
||||
.import popa, popax
|
||||
.import BitmapRegs
|
||||
.export _BitmapClip
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_BitmapClip:
|
||||
jsr BitmapRegs
|
||||
jsr popax
|
||||
sta r12L
|
||||
stx r12H
|
||||
jsr popa
|
||||
sta r11H
|
||||
jsr popa
|
||||
sta r11L
|
||||
jmp BitmapClip
|
||||
22
libsrc/geos-cbm/graph/bitmapregs.s
Normal file
22
libsrc/geos-cbm/graph/bitmapregs.s
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 21.12.99
|
||||
|
||||
.importzp ptr4
|
||||
|
||||
.export BitmapRegs
|
||||
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
BitmapRegs: ;a/x is a struct iconpic*
|
||||
sta ptr4
|
||||
stx ptr4+1
|
||||
ldy #0
|
||||
bmpLp: lda (ptr4),y
|
||||
sta r0L,y
|
||||
iny
|
||||
cpy #6
|
||||
bne bmpLp
|
||||
rts
|
||||
17
libsrc/geos-cbm/graph/bitmapup.s
Normal file
17
libsrc/geos-cbm/graph/bitmapup.s
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 21.12.99
|
||||
|
||||
; void BitmapUp (struct iconpic *myGfx);
|
||||
|
||||
|
||||
.import BitmapRegs
|
||||
.export _BitmapUp
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_BitmapUp:
|
||||
jsr BitmapRegs
|
||||
jmp BitmapUp
|
||||
37
libsrc/geos-cbm/graph/bitotherclip.s
Normal file
37
libsrc/geos-cbm/graph/bitotherclip.s
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 21.12.99
|
||||
|
||||
; void BitOtherClip (void *proc1, void* proc2, char skipl, char skipr, int skipy,
|
||||
; struct iconpic *myGfx);
|
||||
|
||||
; both proc1, proc2 should be: char __fastcall something (void);
|
||||
; proc1 is called before reading a byte (.A returns next data)
|
||||
; proc2 is called before reading each byte which is not pattern (code >219)
|
||||
|
||||
|
||||
.import popa, popax
|
||||
.import BitOtherRegs
|
||||
.export _BitOtherClip
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_BitOtherClip:
|
||||
jsr BitOtherRegs
|
||||
jsr popax
|
||||
sta r12L
|
||||
stx r12H
|
||||
jsr popa
|
||||
sta r11H
|
||||
jsr popa
|
||||
sta r11L
|
||||
jsr popax
|
||||
sta r14L
|
||||
stx r14H
|
||||
jsr popax
|
||||
sta r13L
|
||||
stx r13H
|
||||
jmp BitOtherClip
|
||||
31
libsrc/geos-cbm/graph/drawline.s
Normal file
31
libsrc/geos-cbm/graph/drawline.s
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 29.10.99, 5.03.2003
|
||||
|
||||
; void DrawLine (char mode, struct window *mywindow);
|
||||
|
||||
.import _InitDrawWindow
|
||||
.import popa
|
||||
.importzp tmp1
|
||||
.export _DrawLine
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
.include "../inc/geosmac.ca65.inc"
|
||||
|
||||
_DrawLine:
|
||||
tay
|
||||
PushW r2
|
||||
tya
|
||||
jsr _InitDrawWindow
|
||||
MoveW r2, r11
|
||||
PopW r2
|
||||
jsr popa
|
||||
sta tmp1
|
||||
clc
|
||||
bit tmp1
|
||||
bvc @1
|
||||
sec
|
||||
@1: jmp DrawLine
|
||||
25
libsrc/geos-cbm/graph/drawpoint.s
Normal file
25
libsrc/geos-cbm/graph/drawpoint.s
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 29.10.99, 05.3.2003
|
||||
|
||||
; void DrawPoint (char mode, struct pixel *mypixel);
|
||||
|
||||
|
||||
.import PointRegs
|
||||
.import popa
|
||||
.importzp tmp1
|
||||
.export _DrawPoint
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_DrawPoint:
|
||||
jsr PointRegs
|
||||
jsr popa
|
||||
sta tmp1
|
||||
clc
|
||||
bit tmp1
|
||||
bvc @1
|
||||
sec
|
||||
@1: jmp DrawPoint
|
||||
13
libsrc/geos-cbm/graph/framerectangle.s
Normal file
13
libsrc/geos-cbm/graph/framerectangle.s
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void FrameRectangle (char pattern);
|
||||
|
||||
.export _FrameRectangle
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_FrameRectangle = FrameRectangle
|
||||
16
libsrc/geos-cbm/graph/getcharwidth.s
Normal file
16
libsrc/geos-cbm/graph/getcharwidth.s
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 21.12.1999, 2.1.2003
|
||||
|
||||
; char GetCharWidth (char character);
|
||||
|
||||
.export _GetCharWidth
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_GetCharWidth:
|
||||
jsr GetCharWidth
|
||||
ldx #0
|
||||
rts
|
||||
21
libsrc/geos-cbm/graph/getintcharint.s
Normal file
21
libsrc/geos-cbm/graph/getintcharint.s
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 11.03.2000
|
||||
|
||||
.import popa, popax
|
||||
.export getintcharint
|
||||
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
getintcharint:
|
||||
sta r11L
|
||||
stx r11H
|
||||
jsr popa
|
||||
sta r1H
|
||||
jsr popax
|
||||
sta r0L
|
||||
stx r0H
|
||||
rts
|
||||
|
||||
17
libsrc/geos-cbm/graph/graphicsstring.s
Normal file
17
libsrc/geos-cbm/graph/graphicsstring.s
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 25.12.99
|
||||
|
||||
; void GraphicsString (char *myString);
|
||||
|
||||
.export _GraphicsString
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_GraphicsString:
|
||||
sta r0L
|
||||
stx r0H
|
||||
jmp GraphicsString
|
||||
22
libsrc/geos-cbm/graph/hlineregs.s
Normal file
22
libsrc/geos-cbm/graph/hlineregs.s
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
|
||||
.import popax, popa
|
||||
|
||||
.export HLineRegs
|
||||
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
HLineRegs:
|
||||
stx r4H
|
||||
sta r4L
|
||||
jsr popax
|
||||
stx r3H
|
||||
sta r3L
|
||||
jsr popa
|
||||
sta r11L
|
||||
rts
|
||||
19
libsrc/geos-cbm/graph/horizontalline.s
Normal file
19
libsrc/geos-cbm/graph/horizontalline.s
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void HorizontalLine (char pattern, char y, int xstart, int xend);
|
||||
|
||||
.import popa
|
||||
.import HLineRegs
|
||||
|
||||
.export _HorizontalLine
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_HorizontalLine:
|
||||
jsr HLineRegs
|
||||
jsr popa
|
||||
jmp HorizontalLine
|
||||
14
libsrc/geos-cbm/graph/imprintrectangle.s
Normal file
14
libsrc/geos-cbm/graph/imprintrectangle.s
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 21.12.99
|
||||
|
||||
; void ImprintRectangle (void);
|
||||
|
||||
.export _ImprintRectangle
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_ImprintRectangle = ImprintRectangle
|
||||
|
||||
25
libsrc/geos-cbm/graph/initdrawwindow.s
Normal file
25
libsrc/geos-cbm/graph/initdrawwindow.s
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
; 11.03.2000
|
||||
|
||||
; void InitDrawWindow (struct window *myWindow);
|
||||
|
||||
.importzp ptr4
|
||||
|
||||
.export _InitDrawWindow
|
||||
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_InitDrawWindow: ;a/x is a struct window*
|
||||
sta ptr4
|
||||
stx ptr4+1
|
||||
ldy #0
|
||||
copyWin: lda (ptr4),y
|
||||
sta r2L,y
|
||||
iny
|
||||
cpy #6
|
||||
bne copyWin
|
||||
rts
|
||||
16
libsrc/geos-cbm/graph/invertline.s
Normal file
16
libsrc/geos-cbm/graph/invertline.s
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void InvertLine (char y, int xstart, int xend);
|
||||
|
||||
.import HLineRegs
|
||||
.export _InvertLine
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_InvertLine:
|
||||
jsr HLineRegs
|
||||
jmp InvertLine
|
||||
14
libsrc/geos-cbm/graph/invertrectangle.s
Normal file
14
libsrc/geos-cbm/graph/invertrectangle.s
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void InvertRectangle (void);
|
||||
|
||||
.export _InvertRectangle
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_InvertRectangle = InvertRectangle
|
||||
|
||||
17
libsrc/geos-cbm/graph/loadcharset.s
Normal file
17
libsrc/geos-cbm/graph/loadcharset.s
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 21.12.99
|
||||
|
||||
; void LoadCharSet (struct fontdesc *myFont);
|
||||
|
||||
.export _LoadCharSet
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_LoadCharSet:
|
||||
sta r0L
|
||||
stx r0H
|
||||
jmp LoadCharSet
|
||||
25
libsrc/geos-cbm/graph/pointregs.s
Normal file
25
libsrc/geos-cbm/graph/pointregs.s
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
.importzp ptr4
|
||||
|
||||
.export PointRegs
|
||||
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
PointRegs: ;a/x is a struct pixel*
|
||||
sta ptr4
|
||||
stx ptr4+1
|
||||
ldy #0
|
||||
lda (ptr4),y
|
||||
sta r3L
|
||||
iny
|
||||
lda (ptr4),y
|
||||
sta r3H
|
||||
iny
|
||||
lda (ptr4),y
|
||||
sta r11L
|
||||
rts
|
||||
21
libsrc/geos-cbm/graph/put_char.s
Normal file
21
libsrc/geos-cbm/graph/put_char.s
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 30.10.99
|
||||
|
||||
; void PutChar (char character, char y, int x);
|
||||
|
||||
.import popa
|
||||
.export _PutChar
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_PutChar:
|
||||
sta r11L
|
||||
stx r11H
|
||||
jsr popa
|
||||
sta r1H
|
||||
jsr popa
|
||||
jmp PutChar
|
||||
18
libsrc/geos-cbm/graph/putdecimal.s
Normal file
18
libsrc/geos-cbm/graph/putdecimal.s
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 30.10.99, 17.8.2003
|
||||
|
||||
; void PutDecimal (char style, unsigned value, char y, int x);
|
||||
|
||||
.import popa, popax
|
||||
.import getintcharint
|
||||
.export _PutDecimal
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_PutDecimal:
|
||||
jsr getintcharint
|
||||
jsr popa
|
||||
jmp PutDecimal
|
||||
17
libsrc/geos-cbm/graph/putstring.s
Normal file
17
libsrc/geos-cbm/graph/putstring.s
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 30.10.99
|
||||
|
||||
; void PutString (char *mytxt, char y, int x);
|
||||
|
||||
.import popax, popa
|
||||
.import getintcharint
|
||||
.export _PutString
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_PutString:
|
||||
jsr getintcharint
|
||||
jmp PutString
|
||||
18
libsrc/geos-cbm/graph/recoverline.s
Normal file
18
libsrc/geos-cbm/graph/recoverline.s
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void RecoverLine (char y, int xstart, int xend);
|
||||
|
||||
.import HLineRegs
|
||||
|
||||
.export _RecoverLine
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_RecoverLine:
|
||||
jsr HLineRegs
|
||||
jmp RecoverLine
|
||||
|
||||
14
libsrc/geos-cbm/graph/recoverrectangle.s
Normal file
14
libsrc/geos-cbm/graph/recoverrectangle.s
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void RecoverRectangle (void);
|
||||
|
||||
.export _RecoverRectangle
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_RecoverRectangle = RecoverRectangle
|
||||
|
||||
13
libsrc/geos-cbm/graph/rectangle.s
Normal file
13
libsrc/geos-cbm/graph/rectangle.s
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void Rectangle (void);
|
||||
|
||||
.export _Rectangle
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_Rectangle = Rectangle
|
||||
13
libsrc/geos-cbm/graph/setpattern.s
Normal file
13
libsrc/geos-cbm/graph/setpattern.s
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void SetPattern (char pattern);
|
||||
|
||||
.export _SetPattern
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_SetPattern = SetPattern
|
||||
20
libsrc/geos-cbm/graph/testpoint.s
Normal file
20
libsrc/geos-cbm/graph/testpoint.s
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak
|
||||
;
|
||||
; 29.10.1999, 2.1.2003
|
||||
|
||||
; char TestPoint (struct pixel *mypixel);
|
||||
|
||||
.import PointRegs
|
||||
.import return0, return1
|
||||
.export _TestPoint
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_TestPoint:
|
||||
jsr PointRegs
|
||||
jsr TestPoint
|
||||
bcc goFalse
|
||||
jmp return1
|
||||
goFalse: jmp return0
|
||||
13
libsrc/geos-cbm/graph/usesystemfont.s
Normal file
13
libsrc/geos-cbm/graph/usesystemfont.s
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 30.10.99
|
||||
|
||||
; void UseSystemFont (void);
|
||||
|
||||
.export _UseSystemFont
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
_UseSystemFont = UseSystemFont
|
||||
24
libsrc/geos-cbm/graph/verticalline.s
Normal file
24
libsrc/geos-cbm/graph/verticalline.s
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
;
|
||||
; Maciej 'YTM/Alliance' Witkowiak
|
||||
;
|
||||
; 29.10.99
|
||||
|
||||
; void VerticalLine (char pattern, char ystart, char yend, int x);
|
||||
|
||||
.import popa
|
||||
|
||||
.export _VerticalLine
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
_VerticalLine:
|
||||
stx r4H
|
||||
sta r4L
|
||||
jsr popa
|
||||
sta r3H
|
||||
jsr popa
|
||||
sta r3L
|
||||
jsr popa
|
||||
jmp VerticalLine
|
||||
Reference in New Issue
Block a user