changeset 2121:f9e0961519bf

Fixed issue with stack and copystr routine
author boisy
date Sat, 25 Aug 2007 22:00:11 +0000
parents 73a8a7fe0151
children 055c774cb633
files level1/cmds/login.asm
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/level1/cmds/login.asm	Fri Aug 24 22:13:57 2007 +0000
+++ b/level1/cmds/login.asm	Sat Aug 25 22:00:11 2007 +0000
@@ -118,8 +118,7 @@
          bne   go@
          puls  x,pc
 
-start    leas  >linebuff,u
-         pshs  y,x
+start    pshs  y,x
          leax  <IcptRtn,pcr
          os9   F$Icpt   
          IFGT  Level-1
@@ -341,11 +340,14 @@
 
 * Entry: X = ptr to string to copy
 *        Y = length of string
-copystr  lda   ,x+
+copystr
+         cmpy  #$0000
+         beq   copyex
+         lda   ,x+
          lbsr  puta
          leay  -$01,y
          bne   copystr
-         rts   
+copyex   rts   
 
 L0347    bsr   copystr
          lbsr  writestr