home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.whtech.com
/
ftp.whtech.com.tar
/
ftp.whtech.com
/
Geneve
/
9640news
/
CAT10
/
XBSCCRS.ARK
< prev
next >
Wrap
Text File
|
2006-10-19
|
2KB
|
106 lines
?
***********************************
* *
* CHANGING THE CURSOR PATTERN *
* IN EXTENDED BASIC *
* *
* By Jim Beersman *
* Ozark 99'er Users Group *
* *
***********************************
Below is an Extended Basic
program that "writes" an assembly
language program to redefine the the
cursor character. A brief description
of what each line is doing is also
included. To use this program you
must have one of the following
cartridges--Extended Basic,
Mini-Memory, or Editor-Assembler--and
memory expansion.
100 CALL INIT
Places the value >AA55 at address
>2006. This allows you to use a CALL
LOAD statement.
110 CALL LOAD(8196,63,248)
Tells the computer that there is
something in the REF/DEF table and the
starting address of the REF/DEF
table(>3FF8).
120 CALL LOAD(16376,67,85,82,83,79,82,
48,8)
Name of the program in low memory
expansion and the starting address of
the program (>3008,"CURSOR").
130 CALL LOAD(12288,0,0,0,0,0,0,0,255)
Character pattern to be
used("00000000000000FF") is stored in
memory location >3000 (12288
decimal).
140 CALL LOAD(12296,2,0,3,240)
Extended Basic for (LI R0,>03F0).
>03F0 is the beginning of the pattern
descriptor table in Extended Basic.
150 CALL LOAD(12300,2,1,48,0)
Extended Basic for (LI R1,>3000).
>3000 contains the pattern to be
loaded into the pattern descriptor
table.
160 CALL LOAD(12304,2,2,0,8)
Extended Basic for (LI R2,>0008).
>0008 is the number of bytes to be
loaded.
170 CALL LOAD(12308,4,32,32,36)
Extended Basic for (BLWP @ VMBW).
Loads the new pattern into the table.
180 CALL LOAD(12312,4,91)
Extended basic for RT (return).
190 CALL LINK("CURSOR")
Finds program called CURSOR in
low memory expansion and runs it.
If you would like to define your
own cursor character, the numbers
after the 12288 in line 130 are the
decimal equivalents of the hexadecimal
numbers usually used to define a
character.
Download complete. Turn off Capture File.