changeset 2541:9619e0c54e71

Added mode byte to open/create call
author boisy
date Fri, 28 May 2010 01:47:53 +0000
parents 0b7321633fe9
children 28bfbf753ea9
files level1/modules/rfm.asm
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/level1/modules/rfm.asm	Sat May 22 11:40:18 2010 +0000
+++ b/level1/modules/rfm.asm	Fri May 28 01:47:53 2010 +0000
@@ -112,11 +112,15 @@
                subd      V.PATHNAME,x
                std       V.PATHNAMELEN,x      ; save the length
 
+* put the mode byte on the stack
+               pshs      cc
+               lda       R$A,u
+               pshs      a
+               
 * put command byte & path # on stack
                lda       V.DWCMD,x
-               ldy       2,s
+               ldy       4,s
                ldb       PD.PD,y
-               pshs      cc
                pshs      d                   ; p# PD.PD Regs
 
 * put rfm op and DW op on stack 
@@ -124,7 +128,7 @@
                pshs      a                   ; DWOP RFMOP p# PD.PD Regs
 
                leax      ,s                  ; point X to stack 
-               ldy       #3                  ; 3 bytes to send
+               ldy       #4                  ; 3 bytes to send
 
                ifgt      Level-1
                ldu       <D.DWSubAddr
@@ -134,7 +138,7 @@
 
                orcc      #IntMasks
                jsr       6,u
-               leas      3,s                 ;clean stack   PD.PD Regs
+               leas      4,s                 ;clean stack   PD.PD Regs
 
                ifgt      Level-1
 * now send path string