Page 1 of 1

How to use Vb81 XuR text feature.

Posted: Tue Oct 17, 2017 4:32 am
by XavSnap
Hi,

Vb81 XuR able to run a text basic file as a "P" file.
...and it's cool!

Image

:shock:
But, all graphics characters are not allowed on the standard windows font.

You had to install two specials fonts to display them.
Go to the VB81_XUR directory and open the "Zx81_fonts" folder... (C:\Users\you\Desktop\Vb81_XuR\Zx81_Fonts)

Image

Install "ZX81_riched.fon" and "Zx81_Riched_V3.3[XavSnap].ttf" using "Install", on the right mouse click.
Open a text file with the note-pad, and open the font setup in the "Format>font" menu.

Image

Select "Zx81_Riched_V3.3[XavSnap].ttf" or "ZX81_riched"...
The "ZX81-Riched-ZXBASIC" is the true-type font and is recommended.

Image

To get specials Zx81 characters, open the "ASCII_TABLE.TXT" located in the font folder.

Image

Now, you can copy and paste all inverted characters...
Note, the upper-case are displayed as normal characters, and lower-case as inverted characters.
The [""] character is a special character : \" or À

Image

In case of ASM, in a REM statement, this code will be store in hexadecimal or decimal.
But the 1 REM HELLO can be use.

Image

The same line names are allowed:
0 REM
0 REM
0 REM
1 PRINT "HELLO"

The \ is the continue-line separator:
1 PRINT "ABCDEF"
can be split as
1 PRINT "AB\
CD\
EF"

The # is the comment tag (at the begin of the line)

ASM codes :
1 REM [HEX: AA,BB,CC,DD,EE,FF]
Or
2 REM [DEC: 127,128,129,255]

VB81 will check the text file to retrieve bad lines numbers in a window...
Now return to the basic editor by using the "Return to Basic" button.
The program is in the Basic memory!

Image

Note:
- SAVE"HELLO.TXT" will save the program in a text mode

SAVE "MAME.TXT:V:C:R:D"

Usage: [optional]
- ':V' Save the Basic variables segment. (VARS memory)
- ':C' for CBI codes (by default Zx81 Basic functions)
- ':R' for ZxText2P ASCII characters codes.(by default Windows TTF Zx81_Riched font)
- ':D' to save ASM codes in decimal

- In case of emulator panic (ASM bad code or ASM loop), type "esc" key to try to save your program...
- In text mode, floating-point values can be corrupt, just use VAL("0,1234566").

Have Fun…

[Edit] Use the '@' character to add a special command in a LET or a PRINT command. '@0B'= " ; '@C4'=CODE ...