Date : Thu, 10 Jan 1991 07:15:55 GMT
From : swrinde!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!kwgst@ucsd.edu (Filip Gieszczykiewicz)
Subject: CP/M & MBASIC question
Greetings I have a Kaypro 10 and am starting to experiment
with CP/M. (My first z80 machine)
I have several questions:
1) Is there a command in Miscrosoft BASIC (M-80) that will
clear the screen and home the cursor? I have all docs but they
say nothing.
2) I have a simple CLS.COM program that is about 15 bytes long
that clears the screen. Now, I DUMPed it and converted the
hex to decimal and poked those values from within BASIC.
When I CALL it, it clears the screen and does a "Warm Boot"
[bummer]. Anyways, I got rid of the JMP 0000h (for the
warm boot) but now in hangs. [bummer^2] Arghh... Good lord,
even my Apple ][+ has a HOME command! ;-)
3) How do I load a binary file so I can use it with the
USR# function? I have an assembler (RMAC), a linker, a
BASICLIB.REL (what is that <--- ?), and MBASIC. Is this
all I need? Oh, yeah, I have a hard disk so space in not
a problem.
(I have the source for SAFETY.COM, which also clears the screen,
but even that does not work when POKEed from BASIC. Can I use
&HD000? I have no idea where empty space is in BASIC.)
Anyone?
I also don't have a text editor (WS died) so I wrote my own
in basic.... can't use the "," with INPUT... it gives a
"Redo from start" (or something similar).
4) Anyone know how to read a text file using random-access?
I tried every possible combination. I can create but I can't
read it. (Remember, you can't read a file that contains ","s
with the INPUT# statement)
Maybe I should stick to assembly..... [grin]
(Yeah, but you need an editor for that - Catch 22???)
Take care.
P.S. Please e-mail. I will archive everything. Before sending
a "send everything to me", give me a few days to organize :-)
--
Name: Karol Gieszczykiewicz Address: kwgst@unix.cis.pitt.edu
This message posted for: Filip Gieszczykiewicz (fmgst@unix.cis.pitt.edu)