text
stringlengths
0
99.6k
C=w -> SAVE HIRES FORMAT allows you to save screen 1 in an 8K data file (33 blocks). You are then given the option of re-trying the save into screen 1 (*) or
switching the screens and saving the second screen (!).
x -> CROSSHATCH allows you to crosshatch a rectangular area marked as in 'b'ox. You are first prompted for the orientation of the crosshatch lines (horizontal
or vertical) and the spacing between lines (1 to 9 pixels). The default values are highlighted.
y -> MARK SCREEN2 Y LOCATION will put a small mark on the left edge of the second screen at the present cursor location whenever the mouse button is pressed.
Y -> MARK SCREEN2 X LOCATION will put a small mark on the bottom of the second screen at the present cursor location whenever the mouse button is pressed.
z -> DRAW BORDER will draw a single line border around both screens.
Z -> ERASE BORDER will erase a single line border around both screens.
CAD MEMORY MAP
The CAD system utilizes the C64 memory in the following manner:
$0000-$00FF Zero page
$0100-$01FF Stack
$0200-$03FF C64 operating system space
$0400-$07FF Text screen
$0800-$5FFF BASIC program area
$6000-$7FFF Hires screen 1
$8000-$8FFF SYSPKGII
$9000-$9FFF SYSPKG
$A000-$BFFF Temporary hires screen (Oops)
$C000-$CFFF USRML
$D000-$DFFF C64 I/O space
$E000-$FFFF Hires screen 2
USERML DOCUMENTATION
The package 'usrml' is used to handle all of the hires work that would consume so much time in BASIC.
The machine language file is loaded with the following command:
load"user.ml",8,1
You will need to initialize the usr jmp vector at locations 785 and 786:
poke785,0
poke786,193
This sets the usr vector to $c100.
NOTE: The 'boot' program in cad will take care of loading and initializing for you.
USAGE NOTES:
(1). The RUNSTOP/RESTORE key sequence will not properly recover to the standard BASIC map as it does not clear the bit map mode (bmm).
Add the following code to your program during developement:
60000 a=usr(0),0,1,4:a=usr(1):a=usr(17):a=usr(19):a=usr(21)
If your program crashes during debug clear the screen with (shift clr-home) and type the following.
goto60000
------------------
NOTE: There will be garbage on the screen while you are typing this so type carefully!
(2). All numbers passed to the USR program must be in the range of 0 to 65535 (decimals will be truncated) or there will be an illegal quantity error
(3). If the expected number of variables are not passed to the USR call there will be a SYNTAX ERROR.
(4). If the variable is a byte or flag type the program will automatically mask off unwanted bits.
(5). X-Y plotting will allow for positive wrap-around. X-Y may be any value between 0 and 65535 and the USR routines will automatically
plotx=mod(320,x)
ploty=mod(200,y)
(6). The SID routines maintain an internal image of the write only sid registers. This allows for simplified commands such as voice on or voice off.
CONVENTIONS
----------------
,b 0 to 255 (byte)
,db 0 to 65535 (double-byte)
,fl = 0 flag off/clr
,fl <>0 flag set/on
SYNTAX
----------------
a=usr(1) (implied function)
a=usr(32),b
a=usr(9),db
a=usr(90),b,fl,fl,fl
a=usr(0),0,1,4
a=usr(aa)
a=usr(bb(c))
a=usr(aa%)
USR COMMAND LIST
----------------
a=usr(0),b,b,b preset vic map to bank 0-3,
video mem 0-15, video base 0 to 14
step by 2
a=usr(1) execute preset map