-
Notifications
You must be signed in to change notification settings - Fork 2
Plug In: ML to BASIC
ML to BASIC converts the 6502 code in a specified range to a BASIC program in the current BASIC stage. The 6502 code will be appended to the existing program, with line numbers in increments of 5.
Installation
.P "ML"
Usage
.U from to+1 [R/H/T]
where from is the start address, to is the end address, and R, H, and T are options.
If R is specified after the end address, uses the relocatable syntax. Otherwise, uses absolute addresses.
If H is specified after the end address, creates hex data entry lines instead of 6502 code.
If T is specified after the end address, creates assertion test data instead of 6502 code.
If the disassembly would extend beyond the end of the BASIC stage, the existing BASIC program (if any) is restored, and an OUT OF MEMORY error is displayed.
Enter the following machine language program:
.A 1EF0 LDA #<@&
.A 1EF2 LDY #>@&
.A 1EF4 JMP $CB1E
.A 1EF7 "HELLO"
.A 1EFC :00
.A 1EFD {RETURN}
.G 1EF0
HELLO
Now we'll use ML to BASIC to bring the code and data into a BASIC program. We'll start by installing the plug-in and adding the code:
.P "ML"
.U FROM TO+1 [R/H/T]
NEW
.U 1EF0 1EF7
READY.
.U 1EF7 1EFD H
READY.
LIST