Page 1 of 1

[VB81] How to ...

Posted: Thu Sep 19, 2019 4:28 am
by XavSnap
[VB81] How to retrieve an ASM listing.

Hi,

There's any ways to export an ASM code from this emulator:

The easy way is to save the Basic program in a text file, using the SAVE"MYASM.TXT" (in HEXA.) or SAVE"MYASM.TXT:D" (in DEC.)
listing2.jpg
listing2.jpg (51.29 KiB) Viewed 4771 times
listing3.JPG


or open the "ZxPrinter" window, select the "Tools>typ in ASM" window. Select the right REM to export, and click on the printer icon to throw the listing to the printer.
The little icon at the top, select the format to display : HEX,DEC...
listing1.JPG
The second icon is to export the listing to a text file.

The last way, is to disassemble the code, and send the displayed values in the raw format.
listing20.JPG
I have forgot this function !

Have fun.

Re: [VB81] How to retrieve an ASM listing.

Posted: Thu Sep 19, 2019 5:52 am
by XavSnap
To list an ASM program…

Open the "ZxPrinter" window.

Print a screen-shoot using the Printer's icon to print the screen.
Use the previous help…
Type a LLIST.
listing10.JPG

And open the "Multi-columns" generator O'matic icon. [!!!]
listing11.JPG
Enter the game listing name and save it.

It's ready to type-ins on a TRUE Zx81!
:lol:

NOTE: There's a bug in the "type in ASM" printer feed in. The bug is fixe on the new 19/09/19 release. (on the download web page)

[VB81] How to retrieve Hex to a binary.

Posted: Thu Sep 19, 2019 8:58 am
by XavSnap
Hi,

You had to convert a text file… form a text data $AA,$BB,$CC... to a binary file.

Just create a new text file, and add the code: "mycode.bas"

Code: Select all

1 REM [HEX: \
AA,BB,CC ]
Save it.

Launch VB81, and select the "bas" file in the file explorer to load it.

Open the disassembler window, select the right REM and "save binary".
The binary is saved!

Code: Select all

1 REM [DEC: \
12,44,128 ]
… to enter a decimal listing.

Re: [VB81] How to save a splash-screen.

Posted: Thu Sep 19, 2019 9:24 am
by XavSnap
Hi,

At start-up, the basic SAVE command write the actual screen… Full or empty.
To fill (Path) a file with the famous "0/0" or a screen full of spaces…
Draw a splash screen on an expended screen (16k ram selected) with the "Easy draw" window.
Save the D_File in BIN or SCR format.
open the "File explorer"... "file>Specify tape & directory"...

Select the 'P' file to patch:
listing30.JPG
Load the scr/bin, or the "P" file D_file to copy on the target:

The "P" file now display something ...
listing32.JPG
Note:
This D_file will be clear while using a CLS or a RUN.
Just remember to change the target "P" and add something to add a timer to display it… in case of a SAVE enclosed in the Basic code.

Code: Select all

9995 SAVE "MYPRG"
9996 FOR A=1 TO 1000
9997 NEXT A
9999 GOTO 1
In case of SAVE"MYPRG" at the basic prompt (without line number), the "0/0" will be displayed on the splash-screen...
Just add a room to display the last line, and/or add : "TYPE R KEY AND N/L TO RUN THE GAME" or somethings else...