EasyManuals Logo

Sharp MZ-800 Technical Reference And User's Guide

Sharp MZ-800
170 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #70 background imageLoading...
Page #70 background image
Loading
or
verifying
an object
file
LD
DE,FILE,X
SVC.COUNT
SVC
.DEVFN
SVC
.LOPEN
LD
A,(ELDM)
CP
1
JP
NZ,error
LD
HL,(ELMD22)
;
Set name of object file to
be
loaded
in
DE.
;
Set
length of file name
in
B
and
returns.
; Interpret (specify) device name and file
name.
;
Open
the file.
; Set file mode of file
opened
in
ACC.
; Object file?
; Jump to error handling routine if not object file.
;
Set
load address
in
HL
SVC
.LOADF(or
SVC
.VRFYF)
;
Load
or verify the file.
FILE.
X:
DEFM
"QD:
SAMPLE"
DEFBO
Saving an
object
file
LD
DE,FILE.X
SVC.COUNT
SVC.DEVFN
LD
A,l
LD(ELMD),A
LD
HL,Iength
LD(ELMD20),HL
LD
HL
Loading-adr
LD(ELMD22),HL
LD
HL,exer-adr
LD(ELMD24), HL
LD
DE,save-adr
SVC.SAVEF
; Set the
end
of the file name to
0.
; Set the name of the file to
be
saved
in
DE.
; Set the length of the file name
in
B and returns.
; Interpret (specify) the device
name
and
file
name.
;
Set
the file mode to the object file
mode.
; Set the file length
in
bytes.
;
Set
the load address of the file.
;
Set the execution address of the file.
; Save the file.
FILE.
X:
DEFM
"QD:
SAMPLE"
DEFBO
;
Add
0 to
end
of filename.
64

Table of Contents

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals