home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
canada-remote-systems
/
cpower
/
reutools.sda
/
READ.ME,U,W
< prev
next >
Wrap
Text File
|
2019-04-13
|
6KB
|
214 lines
àü ╙╒╨┼╥-├ ╥┼╒ ┴├├┼╙╙
BY ╦ ╟RAY
╘HE ╩UNE 1989 ╘RANSACTOR ARTICLE
EXPLAINED HOW TO MAKE ╥┴═─╧╙ WORK
WITH ╙UPER-├. ╘HESE ╥┼╒ PROGRAMS
ARE INTENDED TO EXPAND ON THAT
IDEA.
₧├ONTENTS OF THE ╥┼╒ PROGRAM PACKAGE:
ƒREAD.ME -- THE DOCUMENTATION.
ƒREU.C -- ├ SOURCE CODE FOR DIRECT
ƒ MANIPULATION OF THE ╥┼╒
ƒ FROM ╙UPER-├, COMPATIBLE
ƒ WITH ╥┴═─╧╙ V4.
ƒREU.H -- A HEADER FILE DEFINING
ƒ EXTERNAL FUNCTIONS FROM
ƒ REU.C, FOR USE WHEN REU.C
ƒ IS COMPILED SEPARATELY.
ƒINSTALL.STUB -- ═ACHINE ╠ANGUAGE
ƒ OBJECT CODE FOR THE NEW
ƒ AND IMPROVED ╥┴═─╧╙
ƒ INSTALLER PROGRAM.
ƒRVIEW.C -- A DEMONSTRATION PROGRAM
ƒ SHOWING HOW THE ╥┼╒ FUNCTIONS
ƒ CAN BE USED TO CREATE A
ƒ ╥┴═─╧╙ COMPATIBLE ╥┼╒
ƒ MEMORY VIEWER.
₧╒SING REU.C
╘HERE ARE FIVE USER-CALLABLE
FUNCTIONS. ╘HEY ARE:
ü FETCH
CALLING SEQUENCE:
STATUS=FETCH(SIZE,C64ADDR,╥┼╒ADDR);
STATUS= THE CONTENTS OF THE
╥┼╒ STATUS REGISTER
AFTER THE FETCH. (INT)
SIZE= ╬UMBER OF BYTES TO FETCH. (INT)
C64ADDR= ╙TARTING ADDRESS IN ├-64
MEMORY WHERE FETCHED DATA
WILL BE STORED. (CHAR*)
╥┼╒ADDR= ╙TARTING ADDRESS IN ╥┼╒
MEMORY WHERE FETCHED DATA
IS TAKEN. (LONG)
ü STASH
CALLING SEQUENCE:
STATUS=STASH(SIZE,C64ADDR,╥┼╒ADDR);
STATUS= THE CONTENTS OF THE
╥┼╒ STATUS REGISTER
AFTER THE STASH. (INT)
SIZE= ╬UMBER OF BYTES TO STASH. (INT)
C64ADDR= ╙TARTING ADDRESS IN ├-64
MEMORY WHERE STASHED DATA
WILL BE TAKEN. (CHAR*)
╥┼╒ADDR= ╙TARTING ADDRESS IN ╥┼╒
MEMORY WHERE STASHED DATA
IS STORED. (LONG)
ü SWAP
CALLING SEQUENCE:
STATUS=SWAP(SIZE,C64ADDR,╥┼╒ADDR);
STATUS= THE CONTENTS OF THE
╥┼╒ STATUS REGISTER
AFTER THE SWAP. (INT)
SIZE= ╬UMBER OF BYTES TO SWAP. (INT)
C64ADDR= ╙TARTING ADDRESS IN ├-64
MEMORY WHERE SWAPPED DATA
WILL BE EXCHANGED. (CHAR*)
╥┼╒ADDR= ╙TARTING ADDRESS IN ╥┼╒
MEMORY WHERE SWAPPED DATA
IS EXCHANGED. (LONG)
ü RALLOC
CALLING SEQUENCE:
╥┼╒ADDR=RALLOC(SIZE)
╥┼╒ADDR= ┴DDRESS IN ╥┼╒ MEMORY WHERE
ALLOCATED BLOCK BEGINS. ╔F
INSUFFICIENT MEMORY IS AVAIL-
ABLE, THE RESULT WILL BE SET
TO 0╠. (LONG)
SIZE= ╙IZE OF THE ALLOCATED
BLOCK IN BYTES. (INT)
ü RFREE
CALLING SEQUENCE:
╥┼╒ADDR=RFREE(SIZE)
╥┼╒ADDR= ┴DDRESS IN ╥┼╒ MEMORY WHERE
FREED BLOCK ENDS. ╔F ALL
MEMORY HAS BEEN FREED, THE
RESULT WILL BE SET TO THE
SIZE OF ╥┼╒ MEMORY. (LONG)
SIZE= ╙IZE OF THE ALLOCATED
BLOCK IN BYTES. (INT)
┘OU CAN MAKE USE OF THESE FUNCTIONS
IN YOUR PROGRAM IN EITHER OF TWO
WAYS. ┘OU CAN #INCLUDE THE SOURCE
FILE IN YOUR APPLICATION; OR YOU
CAN COMPILE REU.C SEPARATELY,
#INCLUDE THE HEADER FILE REU.H
IN YOUR APPLICATION, AND ENTER THE
NAME OF THE COMPILED REU.C IN
THE LINKER.
₧╒SING REU.H
╘O USE THIS FILE, COMPILE REU.C
BY ITSELF. ╔N YOUR APPLICATION,
START WITH '#INCLUDE "REU.H".'
╘HIS WILL DEFINE THE FIVE FUNCTIONS.
╫HEN YOU LINK YOUR PROGRAM, INCLUDE
THE NAME OF THE COMPILED REU.C
IN YOUR LIST OF LINK MODULES.
₧╒SING INSTALL.STUB
╘HIS FILE IS THE STUB OF THE NEW
╥┴═─╧╙ LOADER. ╔T WILL NOT WORK
AS IS. ╘O PREPARE IT FOR USE,
YOU MUST FIRST:
1) ╨LACE BOTH INSTALL.STUB AND
THE ╥┴═─╧╙ PROGRAM (YOU SHOULD
USE ╥┴═─╧╙64.┬╔╬4.2) ON THE
SAME FLOPPY DISK (DO NOT USE
THE ╥┴═DISK).
2) ╞ROM ╙UPER-├ ENTER THE COMMAND:
COM C0:INSTALL=INSTALL.STUB,RAMDOS64.BIN4.2
╧R, FROM ┬┴╙╔├, ENTER THE COMMAND:
╧╨┼╬ 1,8,15,"├0:╔╬╙╘┴╠╠=╔╬╙╘┴╠╠.╙╘╒┬,╥┴═─╧╙64.┬╔╬4.2":├╠╧╙┼ 1
╘HIS WILL COMBINE THE STUB AND
THE ╥┴═─╧╙ CODE INTO A SINGLE
FILE THAT WILL BE MUCH SIMPLER
TO USE.
╧NCE YOU HAVE THUS PREPARED THE NEW
INSTALL PROGRAM, IT IS READY TO USE.
╘HE CALLING SYNTAX FROM ╙UPER-├ IS:
INSTALL
OR
INSTALL I
┼NTERING JUST "INSTALL" WILL INSTALL
╥┴═─╧╙ WITHOUT INITIALIZING IT. ─O
THIS WHEN ╥┴═─╧╙ HAS BEEN DISABLED
BY A HARWARE RESET OR ALTERATION OF
THE SYSTEM VECTORS. ╬EVER USE IT
AFTER YOU HAVE TURNED THE COMPUTER
OFF.
┼NTERING "INSTALL I" WILL RUN THE
USUAL STARTUP CALL TO GET ╥┴═─╧╙
RUNNING ON A COLD MACHINE. ╘HE
╥┴═─╧╙ WILL BE INSTALLED AND
INITIALIZED AS AN EMPTY ╥┴═DISK.
╘HE NEW INSTALL CARRIES A COPY OF
╥┴═─╧╙ WITH IT ALWAYS, AND CAN BE
RUN OFF ANY DISK WITHOUT THE NEED
TO KEEP A SEPARATE COPY OF THE
╥┴═─╧╙ PROGRAM.
₧╒SING RVIEW.C
╘HIS IS NOT A TERRIBLY USEFUL
PROGRAM, BUT IT DEMONSTRATES HOW
THE ╥┼╒ FUNCTIONS CAN BE USED.
╔T IS A NON-DESTRUCTIVE ╥┼╒
MEMORY VIEWER. ╙IMPLY ENTER AN
╥┼╒ ADDRESS AND THE PROGRAM WILL
DISPLAY THE CONTENTS OF ╥┼╒
MEMORY AT THAT POINT. ┴MBITIOUS
PROGRAMMERS COULD EXPAND THIS
INTO A FULL-FLEDGED ╥┼╒ MEMORY
EDITOR.
₧─EVELOPING PROGRAMS WITH ╥┴═─╧╙
╘O USE THE DEVICE CONFIGURATION
PROGRAM "DEVICE" (INCLUDED ON YOUR
ORIGINAL ╙UPER-├ DISK) YOU MUST
MAKE THESE CHANGES TO THE ├ SOURCE
CODE AND RECOMPILE "DEVICE.C"
╠INE 76 (IN FUNCTION "SETDEV")
READS NOW:
STATIC CHAR STRING2[]="UIH";
SHOULD READ:
STATIC CHAR STRING2[]="U0>.";
╠INE 97 (IN FUNCTION "SETDEV")
READS NOW:
█ STRING2[2]=NEW+'A'-8;
SHOULD READ:
█ STRING2[3]=NEW;
╠INE 98 (IN FUNCTION "SETDEV")
READS NOW:
FPUTF(STRING2,3,COMCH);
SHOULD READ:
FPUTF(STRING2,4,COMCH);
╘HE EDITOR CE REQUIRES THAT THE
FILE NAME BE APPENDED WITH ",W"
WHEN SAVING A FILE TO ╥┴═DISK.
╒SE THE EDITOR "F" COMMAND TO
ADD THE ",W" TO THE NAME OF THE
FILE WHEN YOU WANT TO SAVE IT.
╘HE LINKER CL REQUIRES THE FILE
NAME OF THE OBJECT FILE TO BE
APPENDED WITH ",P,W" WHEN LINKING
A PROGRAM ONTO THE ╥┴═DISK.