µInflux HRC 80 software
The HRC 80 came with two utilities; GTEXTE which is a text extension to TRS-80 Basic and GBASIC which is a
graphics extension to TRS-80 Basic.
GTEXTE graphics commands
- HCLS c (0 to 7)
- Erase the screen with color c. Position the cursor at the top left corner.
- HMARGE c (0 to 7)
- Set the border color and (non-graphics) font color to c. (Generator 0, 1, 3).
- HCAR g (0 to 3)
- Select generator to g
- HMODE m (0 to 3)
- Set character size to m.
0 | normal width, normal height |
1 | normal width, double height |
2 | double width, normal height |
3 | double width, double height |
- HDISP p1 (0 to 3) ,[p2] (1 to 2)
- Mode HRC and TRS screens:
0 | no image |
1 | TRS screen on |
2 | HRC screen on |
3 | TRS screen superimposed on HRC screen |
"HDISP 4" is an equivalent of HDISP 1, 2 with the option to blink the color.
- HPAGE p1, [p2] both (0 to 24)
- Select page for display (p1) and writing (p2).
- HPRINT @p,var (0 to 999)
- Write var at HRC display location p. Similar to the TRS-80 Basic command PRINT @p,var.
- HPRINT var
- Write var to HRC display. Similar to the TRS-80 Basic command PRINT var.
The ASCII values 0 to 31 cannot be printed and have no effect. Using TAB, comma and "USING" are not
allowed.
- HINVERT
- Invert foreground and background colors.
- HCLIG
- Enable/disable blink mode.
- HPOKE p (0 to 999), c (0 to 127)
- Print ASCII value c at position p. THis command supports ASCII values 0 to 31.
- HOUP ci,g1 TO c2,g2
- Copy the pattern of character c1 of generator g1 to characterc2 of generator g2.
- HCOPY p1,p2
- Copy page p1 to page p2
- HRESTORE
- Reset the driver.
- HPUTOR, HPUTAND, HPUTNOT x1, y1 TO x2,y2,var%(1)
- Executes binary operations on the part of the screen specified with x1, y1 TO x2,y2 and the variable var%(1)
- HPAINT X,Y,C[,M]
- Fill and enclosed space with color C starting at coordinates X,Y. "M" means painted in haftone.
- HSAVE var$
- Save an image to disk with filename var$. Size of the file will be 25 GRANs.
- HLOAD var$
- Load an image from disk with filename var$.
GBASIC graphics commands
- HDISP m
- sets the video mode. Four variants:
0 | no image |
1 | TRS screen on |
2 | HRC screen on |
3 | TRS screen superimposed on HRC screen |
- HPAGE nv [,nrw]
- select the page for display and read/write access. When nrw is omitted, it will be the same as
the nv page. Values can be 0 and 1.
- HCLS c
- clears the graphical memory with the specified color c
see HCOLOR for the color coding.
- HCOLOR c
- set the color to use with draw commands. Codes:
0 | black | 4 | blue |
1 | red | 5 | magenta |
2 | green | 6 | cyan |
3 | yellow | 7 | white |
- HPOINT x,y
- returns the color of the graphical memory specified with x,y
- HCIRCLE x, y, r [,q]
- Two variations:
HCIRCLE x, y, r | draws a circle with centre ar x, y and radius r |
HCIRCLE x, y, r, q | draws 1/8 of a circle, starting at 3 0'clock, counter-clockwise. q specifies the octant.
Each bit in the value represents 1/8 of a circle (represented as "small hand" clock positions):
1 | 1:30 to 3:00 | 16 | 7:30 to 9:00; |
2 | 12:00 to 1:30 | 32 | 6:00 to 7:30; |
4 | 10:30 to 12:00 | 64 | 4:30 to 6:00; |
8 | 9:00 to 10:30 | 128 | 3:00 to 4:30. |
|
- HPLOT x1,y1 [TO x2,y2 [, B[F]]]
- Four variants:
HPLOT x1,y1 | draws a point at x1,y1 |
HPLOT x1,y1 TO x2,y2 | draws a straight line from x1,y1 TO x2,y2 |
HPLOT x1,y1 TO x2,y2, B | draws a box from x1,y1 TO x2,y2 |
HPLOT x1,y1 TO x2,y2, BF | draws a filled box from x1,y1 TO x2,y2 |
|
specifying "@,@" for x2 and y2 uses the values of the previous HPLOT command.
- HGET x1,y1 TO x2,y2 , A%(I)
- Read the contents of the graphical memory specified with x1,y1 and x2,y2 and put in the array %A[I]
- HPUT x1,y1 TO x2,y2 , A%(I)
- Write the contents of array %A[I] to the graphical memory specified by x1,y1 and x2,y2
This Basic extension is similar to the Panasonic HifiColor GBASIC.
Back to hardware description
Last update: 2012-09-14
email: fjkraan@xs4all.nl