[Z88dk-commits] CVS: z88dk/libsrc/_DEVELOPMENT/target/spectrum zx_cr

Bridge to the z88dk-commits mailing list
Post Reply
alvin

[Z88dk-commits] CVS: z88dk/libsrc/_DEVELOPMENT/target/spectrum zx_cr

Post by alvin »

Update of /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10168/spectrum

Modified Files:
__kbd_driver.asm zx_crt0.asm zx_sccz80.lst zx_sdcc.lst
zx_sdcc_rl.lst
Added Files:
zx_crt0.opt
Log Message:
first working dev target

--- NEW FILE: zx_crt0.opt ---

INCLUDE "zx_crt0.asm"

Index: __kbd_driver.asm
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum/__kbd_driver.asm,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** __kbd_driver.asm 27 Mar 2014 17:57:01 -0000 1.2
--- __kbd_driver.asm 28 Mar 2014 03:38:33 -0000 1.3
***************
*** 20,24 ****

cp STDIO_MSG_FLSH
! jp z, error_znc ; do nothing, report no error

cp STDIO_MSG_CLOS
--- 20,24 ----

cp STDIO_MSG_FLSH
! jr z, __kbd_flsh

cp STDIO_MSG_CLOS
***************
*** 29,32 ****
--- 29,43 ----
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

+ __kbd_getc:
+
+ ; return hl = char
+
+ call __kbd_getchar
+
+ ld h,0
+ ret
+
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
__kbd_eatc:

***************
*** 161,164 ****
--- 172,186 ----
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

+ __kbd_flsh:
+
+ ; just zero LASTK
+
+ xor a
+ ld (23560),a
+
+ ret ; carry reset
+
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
__kbd_getchar:


Index: zx_crt0.asm
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum/zx_crt0.asm,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** zx_crt0.asm 27 Mar 2014 17:45:52 -0000 1.5
--- zx_crt0.asm 28 Mar 2014 03:38:33 -0000 1.6
***************
*** 2,10 ****
; zx spectrum crt0 for testing purposes

! org 32768

XLIB start
XDEF _Exit

LIB _ff_ao_SoixanteQuatre, asm_memset

--- 2,24 ----
; zx spectrum crt0 for testing purposes

! ;; origin ;;;;;;;;;;;;;;;;;;;;;
!
! INCLUDE "zcc_opt.def"
!
! IF !myzorg
!
! defc myzorg = 32768
!
! ENDIF
!
! org myzorg
!
! ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

XLIB start
XDEF _Exit

+ XREF _main
+
LIB _ff_ao_SoixanteQuatre, asm_memset

***************
*** 14,17 ****
--- 28,33 ----
INCLUDE "crt_zx_defs.inc" ; crt defines varying by target

+ ;; crt configuration ;;;;;;;;;;
+
defc __heap_sz = 2048 ; malloc's heap, eliminate if not required
defc __qtbl_sz = 6 ; balloc's qtable, eliminate if not required
***************
*** 20,23 ****
--- 36,43 ----
defc __quickexit_stack_sz = 6 ; set to 0 if not required, default is 32

+ defc __HAVE_FILE_STDIN = 1 ; set to 0 if stdin not available
+ defc __HAVE_FILE_STDOUT = 1 ; set to 0 if stdout not available
+ defc __HAVE_FILE_STDERR = 1 ; set to 0 if stderr not available
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

***************
*** 61,64 ****
--- 81,89 ----
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

+ INCLUDE "../crt_vars.asm" ; crt variable declarations
+ INCLUDE "../crt_stubs.asm" ; crt stubs for unimplemented lib functions
+
+ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
__FILE_STDIN:

***************
*** 96,104 ****
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

- INCLUDE "../crt_vars.asm" ; crt variable declarations
- INCLUDE "../crt_stubs.asm" ; crt stubs for unimplemented lib functions
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
; fzx state

--- 121,124 ----
***************
*** 119,123 ****
; attributes

! ld e,0
ld hl,$5800
ld bc,768
--- 139,143 ----
; attributes

! ld e,56
ld hl,$5800
ld bc,768

Index: zx_sccz80.lst
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum/zx_sccz80.lst,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** zx_sccz80.lst 27 Mar 2014 05:56:18 -0000 1.1
--- zx_sccz80.lst 28 Mar 2014 03:38:33 -0000 1.2
***************
*** 7,10 ****
--- 7,11 ----
@font/fzx/arch/spectrum/spectrum_lr_sccz80.lst
@l/l_fast.lst
+ @l/sccz80.lst
@locale/locale.lst
@stdio/stdio_lr_sccz80.lst

Index: zx_sdcc.lst
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum/zx_sdcc.lst,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** zx_sdcc.lst 27 Mar 2014 05:56:18 -0000 1.1
--- zx_sdcc.lst 28 Mar 2014 03:38:33 -0000 1.2
***************
*** 7,10 ****
--- 7,11 ----
@font/fzx/arch/spectrum/spectrum_lr_sdcc.lst
@l/l_fast.lst
+ @l/sdcc.lst
@locale/locale.lst
@stdio/stdio_lr_sdcc.lst

Index: zx_sdcc_rl.lst
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum/zx_sdcc_rl.lst,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** zx_sdcc_rl.lst 27 Mar 2014 05:56:18 -0000 1.1
--- zx_sdcc_rl.lst 28 Mar 2014 03:38:33 -0000 1.2
***************
*** 7,10 ****
--- 7,11 ----
@font/fzx/arch/spectrum/spectrum_rl_sdcc.lst
@l/l_fast.lst
+ @l/sdcc.lst
@locale/locale.lst
@stdio/stdio_rl_sdcc.lst


------------------------------------------------------------------------------
Post Reply