From 58ab56e35e7299be835f555718b50962747c2cb2 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 11 Feb 2013 18:44:25 -0500 Subject: [PATCH] access --- mpw/mpw.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/mpw/mpw.cpp b/mpw/mpw.cpp index 95d5034..ca7b885 100644 --- a/mpw/mpw.cpp +++ b/mpw/mpw.cpp @@ -23,8 +23,22 @@ namespace { void ftrap_access(uint16_t trap) { - // should never hit... only used for opening a file + // open a file, rename a file, or delete a file. + + uint32_t sp = cpuGetAReg(7); + + // hmmm not sure if 3 or 4 parameters. + + uint32_pt name = memoryReadLong(sp + 4); + uint32_t op = memoryReadLong(sp + 8); + uint32_t parm = memoryReadLong(sp + 12); + + + MPWFile f; + + fprintf(stderr, "%04x Access()\n", trap); + cpuSetDReg(0, 0); } void ftrap_close(uint16_t trap)