[VB81] How to enter an ASM/Basic listing codes.
Posted: Fri Apr 02, 2021 10:58 am
HI all,
Reminder…
ASM listings
To enter a machine code listing, i use to load it in Vb81, in text mode.
1 REM [ HEX: AA,FF,3A ]
or
2 REM [ DEC: 1,2,3 ]
I load it in the files explorer as is in text mode (.TXT or *.BAS) with the basic commands and other lines.
To save a binary, to export in Spectrum, Amstrad… emulators...
I open the "disassembler windows" (Achtung: this isn't a CPU debugger, but a line-by-line user debugger!)
Select the REM number tab, and save the binary Between the low and the higher address in the dedicated box)
The higher or the lower value can be move [USER], but the REM line number isn't retrieved (Ram_Top, lower/higher memory…)
To load a binary, select a REM, the binary will be filled in the free REM memory room… and trimmed if le binary is too big.
If the selected room is higher than the binary, the binary will be fill at the begin of lower address selected.
To type or change a REM LINE:
Use the [TOOLS] [type in ASM #]
Select the REM line, select the Decimal or the Hexadecimal text box… and type it !
Note: in case of a new REM line, create a text file with "plenty of something", and load it has a text file.
Use the [Binary Editor #]:
Click and select the edition mode on the Left window side.
Click on the binary code, and Change the value in Hexadecimal.
1-F: Hexadecimal value.
CTRL+A : Text value "A"
CTRL+ALT+A : Inverted "A"
Select the [!] icon (left bottom icon after the green "refresh" icon"... to valid & return to the display mode.
Changes are assume in real time, but enable the "refresh" mode on demand.
To trim an ASM REM… whith too many spaces…
type (in the basic monitor)
SAVE"MYPROG.TXT"
Where SAVE="S", " = SHIFT + P …
Optional arguments:
SAVE"MYPROG.TXT;V;C;R;D"
- ':V' Save the Basic variables segment. (VARS memory)
- ':C' for CBI codes (by default Zx81 Basic functions)
- ':R' for ZxText2P ASCII chararacters codes.(by default Windows TTF Zx81_Riched font)
- ':D' to save ASM codes in decimal
To fixe the REM line to the right length, just save the Zx rem in the monitor, and edit the new text file and reload it in VB81 to save the P file using a simple SAVE"HELLO" (will be saved in the current work directory)
Reminder…
ASM listings
To enter a machine code listing, i use to load it in Vb81, in text mode.
1 REM [ HEX: AA,FF,3A ]
or
2 REM [ DEC: 1,2,3 ]
I load it in the files explorer as is in text mode (.TXT or *.BAS) with the basic commands and other lines.
To save a binary, to export in Spectrum, Amstrad… emulators...
I open the "disassembler windows" (Achtung: this isn't a CPU debugger, but a line-by-line user debugger!)
Select the REM number tab, and save the binary Between the low and the higher address in the dedicated box)
The higher or the lower value can be move [USER], but the REM line number isn't retrieved (Ram_Top, lower/higher memory…)
To load a binary, select a REM, the binary will be filled in the free REM memory room… and trimmed if le binary is too big.
If the selected room is higher than the binary, the binary will be fill at the begin of lower address selected.
To type or change a REM LINE:
Use the [TOOLS] [type in ASM #]
Select the REM line, select the Decimal or the Hexadecimal text box… and type it !
Note: in case of a new REM line, create a text file with "plenty of something", and load it has a text file.
Use the [Binary Editor #]:
Click and select the edition mode on the Left window side.
Click on the binary code, and Change the value in Hexadecimal.
1-F: Hexadecimal value.
CTRL+A : Text value "A"
CTRL+ALT+A : Inverted "A"
Select the [!] icon (left bottom icon after the green "refresh" icon"... to valid & return to the display mode.
Changes are assume in real time, but enable the "refresh" mode on demand.
To trim an ASM REM… whith too many spaces…
type (in the basic monitor)
SAVE"MYPROG.TXT"
Where SAVE="S", " = SHIFT + P …
Optional arguments:
SAVE"MYPROG.TXT;V;C;R;D"
- ':V' Save the Basic variables segment. (VARS memory)
- ':C' for CBI codes (by default Zx81 Basic functions)
- ':R' for ZxText2P ASCII chararacters codes.(by default Windows TTF Zx81_Riched font)
- ':D' to save ASM codes in decimal
To fixe the REM line to the right length, just save the Zx rem in the monitor, and edit the new text file and reload it in VB81 to save the P file using a simple SAVE"HELLO" (will be saved in the current work directory)