From: Alan Cox Date: Sat, 8 Dec 2018 01:14:38 +0000 (+0000) Subject: 65c816: update to use makeproc X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7404dbcce66746457c41f9057dbd664a60f85449;p=FUZIX.git 65c816: update to use makeproc --- diff --git a/Kernel/lib/65c816.s b/Kernel/lib/65c816.s index 64c5c0fe..71cce952 100644 --- a/Kernel/lib/65c816.s +++ b/Kernel/lib/65c816.s @@ -13,7 +13,7 @@ .importzp ptr1 .import _platform_monitor .import _platform_idle - .import _newproc + .import _makeproc .import _nready .import _inint .import _getproc @@ -21,6 +21,8 @@ .import outcharhex .import outstring .import kstack_base + .import _udata + .import pushax .code @@ -277,9 +279,12 @@ fork_patch_3: sep #$30 ; back to 8bit mode for C .a8 .i8 + lda #<_udata + ldx #>_udata + jsr pushax lda ptr1 ldx ptr1+1 - jsr _newproc + jsr _makeproc ; We are now being the child properly lda #0 sta _runticks