[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-serv21447

Modified Files:
zx_crt0.asm
Log Message:
modify crt0 to restore important register values prior to return to the system

Index: zx_crt0.asm
===================================================================
RCS file: /cvsroot/z88dk/z88dk/libsrc/_DEVELOPMENT/target/spectrum/zx_crt0.asm,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** zx_crt0.asm 29 Mar 2014 05:02:01 -0000 1.7
--- zx_crt0.asm 31 Mar 2014 05:55:08 -0000 1.8
***************
*** 21,26 ****
XREF _main

- LIB _ff_ao_SoixanteQuatre, asm_memset
-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

--- 21,24 ----
***************
*** 44,47 ****
--- 42,49 ----
start:

+ push iy ; target requires saving iy
+ exx
+ push hl ; target requires saving hl'
+
ld (__sp),sp

***************
*** 60,63 ****
--- 62,66 ----
; initialize fzx state

+ LIB _ff_ao_SoixanteQuatre
ld hl,_ff_ao_SoixanteQuatre
ld (_fzx),hl ; initial font
***************
*** 77,80 ****
--- 80,92 ----

ld sp,(__sp)
+
+ exx
+ pop hl ; restore hl'
+ exx
+ pop iy ; restore iy
+
+ im 1
+
+ ei
ret

***************
*** 145,148 ****
--- 157,161 ----
ld bc,768

+ LIB asm_memset
call asm_memset



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