changeset 2452:ed77cceb175c

Almost there
author boisy
date Fri, 26 Feb 2010 23:21:40 +0000
parents 771ed399d2cd
children 3bb4f67bc934
files level1/modules/rfm.asm
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/rfm.asm	Fri Feb 26 23:02:07 2010 +0000
+++ b/level1/modules/rfm.asm	Fri Feb 26 23:21:40 2010 +0000
@@ -73,6 +73,8 @@
                ldu       4,s                 ; get pointer to caller's registers
                ldy       R$X,u
                sty       V.PATHNAME,x
+* MOVE THIS UP ONE LINE AND NO CRASH ON 'list /y0/test'
+ lbra openerr
                tfr       y,x
 prsloop        os9       F$PrsNam
                bcs       open2
@@ -165,8 +167,7 @@
                beq       open2
 
 openerr        coma                          ; set error
-open2          leas      6,s                 ; clean stack
-               rts
+open2          puls      x,y,u,pc
 
 makdir         lda       #DW.makdir
                lbra      sendit