mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
more GEOS Kernal replacements for common/ and runtime/ routines
git-svn-id: svn://svn.cc65.org/cc65/trunk@1833 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
b3a4777d4c
commit
31e4d80ac8
@ -4,7 +4,7 @@
|
||||
#
|
||||
# Maciej 'YTM/Elysium' Witkowiak
|
||||
|
||||
OBJ_DIRS=common conio devel disk dlgbox file graph menuicon memory mousesprite process system
|
||||
OBJ_DIRS=common conio devel disk dlgbox file graph menuicon memory mousesprite process runtime system
|
||||
|
||||
all:
|
||||
@for i in $(OBJ_DIRS); do $(MAKE) -C $$i; done
|
||||
|
@ -11,7 +11,7 @@
|
||||
@$(AS) -o $@ $(AFLAGS) $<
|
||||
|
||||
C_OBJS = _afailed.o abort.o perror.o
|
||||
S_OBJS = copydata.o memcpy.o memset.o
|
||||
S_OBJS = copydata.o memcpy.o memset.o zerobss.o
|
||||
|
||||
all: $(C_OBJS) $(S_OBJS)
|
||||
|
||||
|
27
libsrc/geos/common/zerobss.s
Normal file
27
libsrc/geos/common/zerobss.s
Normal file
@ -0,0 +1,27 @@
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
|
||||
; 23.12.2002
|
||||
;
|
||||
; Zero the bss segment.
|
||||
;
|
||||
|
||||
.export zerobss
|
||||
.import __BSS_RUN__, __BSS_SIZE__
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
.include "../inc/geossym.inc"
|
||||
|
||||
.code
|
||||
|
||||
zerobss:
|
||||
lda #<__BSS_SIZE__
|
||||
ldx #>__BSS_SIZE__
|
||||
sta r0L
|
||||
stx r0H
|
||||
lda #0
|
||||
sta r2L
|
||||
lda #<__BSS_RUN__
|
||||
ldx #>__BSS_RUN__
|
||||
sta r1L
|
||||
stx r1H
|
||||
jmp FillRam
|
21
libsrc/geos/runtime/Makefile
Normal file
21
libsrc/geos/runtime/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
#
|
||||
# Makefile for GEOS lib
|
||||
# for cc65
|
||||
#
|
||||
|
||||
%.o: %.c
|
||||
@$(CC) $(CFLAGS) $<
|
||||
@$(AS) -g -o $@ $(AFLAGS) $(*).s
|
||||
|
||||
%.o: %.s
|
||||
@$(AS) -o $@ $(AFLAGS) $<
|
||||
|
||||
C_OBJS =
|
||||
S_OBJS = call.o
|
||||
|
||||
all: $(C_OBJS) $(S_OBJS)
|
||||
|
||||
clean:
|
||||
@rm -f *.~ $(S_OBJS) core
|
||||
@rm -f $(C_OBJS:.o=.s)
|
||||
@rm -f $(C_OBJS)
|
12
libsrc/geos/runtime/call.s
Normal file
12
libsrc/geos/runtime/call.s
Normal file
@ -0,0 +1,12 @@
|
||||
;
|
||||
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
|
||||
; 23.12.2002
|
||||
;
|
||||
; CC65 runtime: call function via pointer in ax
|
||||
;
|
||||
|
||||
.include "../inc/jumptab.inc"
|
||||
|
||||
.export callax
|
||||
|
||||
callax = CallRoutine
|
Loading…
Reference in New Issue
Block a user