From 5c2eebcda1af1be7f756dba151cf02697293c7e3 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 23 Apr 2005 14:12:19 +0000 Subject: [PATCH] The 65C02 code didn't work git-svn-id: svn://svn.cc65.org/cc65/trunk@3488 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/putenv.s | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/libsrc/common/putenv.s b/libsrc/common/putenv.s index 9584348f6..219b59dd1 100644 --- a/libsrc/common/putenv.s +++ b/libsrc/common/putenv.s @@ -15,8 +15,6 @@ .include "errno.inc" - .macpack cpu - .code ;---------------------------------------------------------------------------- @@ -43,14 +41,9 @@ ; Remember the offset of the equal sign and replace it by a zero. -.if (.cpu .bitand ::CPU_ISET_65SC02) - phy - stz (ptr1),y -.else sty tmp1 lda #$00 sta (ptr1),y -.endif ; Search for the string in the environment. searchenv will set the N flag if ; the string is not found, otherwise X contains the index of the entry, ptr2 @@ -61,11 +54,7 @@ ; Before doing anything else, restore the old environment string. -.if (.cpu .bitand ::CPU_ISET_65SC02) - ply -.else ldy tmp1 -.endif lda #'=' sta (ptr1),y -- 2.39.5