code size optimization
This commit is contained in:
1 parent
d1b19c8739
commit
2ea3ebe4b0
4 files changed
+28
-30
No files matched your search
@@ -394,7 +394,7 @@ $(DIR_M65)/kernal.seg_C $(DIR_M65)/KERNAL_C_combined.vs $(DIR_M65)/KERNAL_C_comb
|
|||||||
$(DIR_M65)/kernal.seg_1 $(DIR_M65)/KERNAL_1_combined.vs $(DIR_M65)/KERNAL_1_combined.sym: \
|
$(DIR_M65)/kernal.seg_1 $(DIR_M65)/KERNAL_1_combined.vs $(DIR_M65)/KERNAL_1_combined.sym: \
|
||||||
$(TOOL_ASSEMBLER) $(TOOL_BUILD_SEGMENT) $(DEP_KERNAL) $(CFG_M65) $(GEN_STR_M65) $(DIR_M65)/KERNAL_0_combined.sym
|
$(TOOL_ASSEMBLER) $(TOOL_BUILD_SEGMENT) $(DEP_KERNAL) $(CFG_M65) $(GEN_STR_M65) $(DIR_M65)/KERNAL_0_combined.sym
|
||||||
$(DIR_M65)/dos.seg_1 $(DIR_M65)/DOS_1_combined.vs $(DIR_M65)/DOS_1_combined.sym: \
|
$(DIR_M65)/dos.seg_1 $(DIR_M65)/DOS_1_combined.vs $(DIR_M65)/DOS_1_combined.sym: \
|
||||||
$(TOOL_ASSEMBLER) $(TOOL_BUILD_SEGMENT) $(DEP_DOS_M65) $(CFG_M65)
|
$(TOOL_ASSEMBLER) $(TOOL_BUILD_SEGMENT) $(DEP_DOS_M65) $(CFG_M65) $(DIR_M65)/KERNAL_0_combined.sym
|
||||||
$(DIR_M65)/mon.seg_1 $(DIR_M65)/MON_1_combined.vs $(DIR_M65)/MON_1_combined.sym: \
|
$(DIR_M65)/mon.seg_1 $(DIR_M65)/MON_1_combined.vs $(DIR_M65)/MON_1_combined.sym: \
|
||||||
$(TOOL_ASSEMBLER) $(TOOL_BUILD_SEGMENT) $(DEP_MON_M65) $(CFG_M65) $(DIR_M65)/KERNAL_0_combined.sym $(DIR_M65)/BASIC_1_combined.sym
|
$(TOOL_ASSEMBLER) $(TOOL_BUILD_SEGMENT) $(DEP_MON_M65) $(CFG_M65) $(DIR_M65)/KERNAL_0_combined.sym $(DIR_M65)/BASIC_1_combined.sym
|
||||||
$(DIR_M65)/zvm.seg_1 $(DIR_M65)/ZVM_1_combined.vs $(DIR_M65)/ZVM_1_combined.sym: \
|
$(DIR_M65)/zvm.seg_1 $(DIR_M65)/ZVM_1_combined.vs $(DIR_M65)/ZVM_1_combined.sym: \
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Implementation of ACPTR/CIOUT commands.
|
; Implementation of ACPTR command. For detailed description see 'm65dos_bridge.s' file.
|
||||||
; For detailed description see 'm65dos_bridge.s' file.
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
@@ -54,6 +53,10 @@ dos_ACPTR_eoi:
|
|||||||
clc
|
clc
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
; Retrieving bytes from the status string
|
||||||
|
|
||||||
dos_ACPTR_getsts_SD: ; get next byte of status - SD card
|
dos_ACPTR_getsts_SD: ; get next byte of status - SD card
|
||||||
|
|
||||||
ldx SD_STATUS_IDX
|
ldx SD_STATUS_IDX
|
||||||
@@ -75,35 +78,8 @@ dos_ACPTR_getsts_RD: ; get next byte of status - ram disk
|
|||||||
lda RD_STATUS_STR,x
|
lda RD_STATUS_STR,x
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|
||||||
dos_ACPTR_getsts_table:
|
dos_ACPTR_getsts_table:
|
||||||
|
|
||||||
!word dos_ACPTR_getsts_SD
|
!word dos_ACPTR_getsts_SD
|
||||||
!word dos_ACPTR_getsts_FD
|
!word dos_ACPTR_getsts_FD
|
||||||
!word dos_ACPTR_getsts_RD
|
!word dos_ACPTR_getsts_RD
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dos_CIOUT:
|
|
||||||
|
|
||||||
; XXX provide implementation
|
|
||||||
|
|
||||||
sec
|
|
||||||
rts
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
kernalstatus_EOI:
|
|
||||||
|
|
||||||
; XXX reuse original code instead
|
|
||||||
|
|
||||||
lda IOSTATUS
|
|
||||||
ora #K_STS_EOI
|
|
||||||
sta IOSTATUS
|
|
||||||
rts
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
;
|
||||||
|
; Implementation of ACPTR command. For detailed description see 'm65dos_bridge.s' file.
|
||||||
|
;
|
||||||
|
|
||||||
|
|
||||||
|
dos_CIOUT:
|
||||||
|
|
||||||
|
; XXX provide implementation
|
||||||
|
|
||||||
|
sec
|
||||||
|
rts
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
;; #IMPORT# KERNAL_0 = KERNAL_0_combined.sym
|
||||||
|
|
||||||
|
;
|
||||||
|
; Definitions for calling MEGA65 segment KERNAL_0 routines from DOS_1
|
||||||
|
;
|
||||||
|
|
||||||
|
;; #ALIAS# kernalstatus_EOI = KERNAL_0.kernalstatus_EOI
|
||||||
|
;; #ALIAS# kernalstatus_DEVICE_NOT_FOUND = KERNAL_0.kernalstatus_DEVICE_NOT_FOUND
|
||||||
|
|
||||||
Reference in new issue
Block a user